/* Onboarding wizard: three steps to the first outfit. Never paywalled. */

.wizard-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
}
.wizard-top .skip { justify-self: end; }
.wizard-top .stepper { justify-self: center; }

.wizard-step { padding: var(--space-7) 0 calc(var(--space-12) + 40px); }
.wizard-head { max-width: 640px; margin-bottom: var(--space-8); }
.wizard-head h1 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display-serif);
  line-height: 1.04;
}
.wizard-head p { margin-top: var(--space-3); font-size: var(--text-lg); color: var(--color-ink-2); }

.add-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: var(--space-6);
  align-items: start;
}

.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--space-3);
  min-height: 360px;
  padding: var(--space-7);
  border: 2px dashed var(--color-line-control);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.dropzone:hover,
.dropzone:focus-within { border-color: var(--color-green-ink); background: #fbfefb; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon-box {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-green-tint);
  color: var(--color-green-ink);
}
.dropzone .icon-box .icon { width: 32px; height: 32px; }
.dropzone strong { font-size: var(--text-lg); }
.dropzone p { color: var(--color-ink-2); font-size: var(--text-sm); max-width: 30ch; }

.examples h2 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.examples > p { color: var(--color-ink-2); margin-bottom: var(--space-5); font-size: var(--text-sm); }
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: var(--space-4) var(--space-3);
}
.examples-grid .select-tile span { font-size: var(--text-sm); font-weight: var(--weight-medium); }

.wizard-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-header);
  background: rgb(255 255 255 / .94);
  box-shadow: 0 -1px 0 rgb(10 25 11 / .06), 0 -10px 30px rgb(10 25 11 / .06);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.wizard-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 76px;
  padding-bottom: env(safe-area-inset-bottom);
}
.wizard-count { display: flex; align-items: center; gap: var(--space-3); font-weight: var(--weight-medium); }
.wizard-count .meter { width: 120px; }

.compose {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: var(--space-7);
  align-items: start;
}
.compose-side { display: grid; gap: var(--space-6); }
/* the whole first outfit stays above the wizard bar: paper height (1.25 x width) fits the viewport */
.compose .canvas-paper { width: min(100%, max(260px, min(520px, calc((100dvh - 380px) * .8)))); }
.tips { display: grid; gap: var(--space-3); padding: 0; list-style: none; }
.tips li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--color-ink-2); }
.tips .icon { margin-top: 2px; color: var(--color-green-ink); }

.done {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.done .collage { width: min(340px, 100%); box-shadow: var(--shadow-lg); }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.done-burst {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-ink);
  animation: burst var(--dur-slow) var(--ease-out) both;
}
.done-burst .icon { width: 30px; height: 30px; }
@keyframes burst { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }

@media (max-width: 900px) {
  .add-grid,
  .compose { grid-template-columns: minmax(0, 1fr); }
  .dropzone { min-height: 220px; }
  .wizard-top { grid-template-columns: 1fr auto; }
  .wizard-top .stepper { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}

@media (max-width: 520px) {
  .stepper li span:not(.dot) { display: none; }
  .wizard-count .meter { display: none; }
}
