:root {
  color: #1f1830;
  background: #fff7ed;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #1f1830;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 213, 141, 0.72), transparent 25rem),
    radial-gradient(circle at 86% 18%, rgba(255, 154, 190, 0.42), transparent 26rem),
    linear-gradient(180deg, #fffaf4, #fff1dd);
}

a {
  color: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 88vh;
  margin: 0 auto;
  padding: 42px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  gap: 44px;
  align-items: center;
}

.app-shell--compact {
  grid-template-columns: minmax(0, 500px);
  justify-content: center;
}

.preview-panel {
  display: grid;
  gap: 26px;
}

.preview-panel__media {
  position: relative;
  min-height: 620px;
}

.preview-panel__media > img {
  position: absolute;
  left: 18%;
  top: 8px;
  width: min(340px, 56vw);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 10px solid #1f1830;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(39, 23, 55, 0.18);
  rotate: 0deg;
}

.preview-panel__badge {
  display: none;
}

.preview-panel__badge span,
.eyebrow {
  display: block;
  margin: 0 0 8px;
  color: #d64678;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-panel__badge strong {
  display: block;
  font-size: 28px;
  line-height: 0.95;
}

.preview-panel__copy h1,
.maker-panel h2,
.success-cta h3,
.preview-panel__copy p {
  margin-top: 0;
}

.preview-panel__copy h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 0.94;
  letter-spacing: 0;
}

.preview-panel__copy p {
  max-width: 560px;
  color: #5a4d64;
  font-size: 19px;
  line-height: 1.48;
}

.maker-panel {
  border: 1px solid rgba(31, 24, 48, 0.1);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 70px rgba(43, 24, 63, 0.1);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.stepper li {
  min-height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 6px;
  color: #786c82;
  background: #f5edf0;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.stepper li.is-active {
  color: #fff;
  background: #271a3a;
}

.stepper li.is-complete {
  color: #271a3a;
  background: #ffe6a8;
}

.wizard {
  display: grid;
  gap: 20px;
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: grid;
  gap: 18px;
}

.wizard-step h2 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.05;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
}

label span {
  font-size: 14px;
  font-weight: 900;
}

input[type="email"],
input[type="number"],
input[type="text"],
textarea {
  width: 100%;
  border: 1px solid #cec4d5;
  border-radius: 8px;
  padding: 12px 14px;
  color: #1f1830;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

input[type="email"],
input[type="number"],
input[type="text"] {
  height: 50px;
}

textarea {
  resize: vertical;
}

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
}

.consent span {
  color: #51465d;
  font-weight: 700;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.details-grid__full {
  grid-column: 1 / -1;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.template-card {
  position: relative;
  cursor: pointer;
}

.template-card input {
  position: absolute;
  opacity: 0;
}

.template-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 3px solid transparent;
  border-radius: 8px;
  display: block;
}

.template-card span {
  margin-top: 8px;
  display: block;
  text-align: center;
}

.template-card input:checked + img {
  border-color: #271a3a;
}

.review-box {
  border: 1px solid rgba(31, 24, 48, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: #fffaf1;
}

.review-box dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.review-box div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}

.review-box dt {
  color: #786c82;
  font-weight: 900;
}

.review-box dd {
  margin: 0;
}

.small-copy {
  margin: 0;
  color: #665a70;
  line-height: 1.45;
}

.result-frame {
  min-height: 320px;
  border: 1px dashed rgba(31, 24, 48, 0.28);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #fffaf1;
}

.result-frame img {
  max-width: 100%;
  max-height: 560px;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(31, 24, 48, 0.14);
}

.wizard-actions {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}

button,
.download-link {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(90deg, #1f1732, #34214f);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary-button {
  color: #271a3a;
  background: #f1e8ec;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: #2d6f54;
  font-weight: 900;
}

.form-message[data-error="true"] {
  color: #b4233f;
}

.success-cta {
  border: 1px solid rgba(31, 24, 48, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: #fffaf0;
}

.success-cta h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.success-cta p {
  margin-top: 0;
  color: #5c5267;
}

.success-links {
  display: grid;
  gap: 8px;
}

.success-links a {
  border: 1px solid rgba(31, 24, 48, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

footer {
  width: min(500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 46px;
  color: #665a70;
  font-size: 14px;
}

footer p {
  margin: 0 0 8px;
}

.legal {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 20px;
  }

  .maker-panel {
    order: 1;
    padding: 20px;
  }

  .preview-panel {
    order: 2;
  }

  .preview-panel__media {
    min-height: 430px;
  }

  .preview-panel__media > img {
    left: 50%;
    width: 230px;
    translate: -50% 0;
  }

  .preview-panel__badge {
    left: 5%;
    width: 150px;
  }

  .preview-panel__copy h1 {
    font-size: 44px;
  }

  .stepper {
    grid-template-columns: repeat(5, 1fr);
  }

  .stepper li {
    font-size: 10px;
  }

  .details-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }

  .wizard-actions {
    grid-template-columns: 1fr;
  }
}
