:root {
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --soft: #f4f4f5;
  --bg: #fafafa;
  --card: #fff;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --ring: rgb(79 70 229 / .14);
  --danger: #dc2626;
  --radius: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }

/* Header */

.top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgb(250 250 250 / .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
.step-count { color: var(--muted); font-size: 14px; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.bar { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

/* Page */

main { max-width: 640px; margin: 0 auto; padding: 40px 24px 24px; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 650; }
.lead { color: var(--muted); margin: 0 0 32px; font-size: 16px; line-height: 1.5; }

/* Fields */

.field { display: block; margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.label { display: block; padding: 0; margin-bottom: 8px; font-weight: 560; font-size: 15px; }
.label em { margin-left: 6px; font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); }
.hint { margin: -2px 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

input[type=text], input[type=email], input[type=tel], input[type=number], textarea {
  width: 100%; padding: 11px 13px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #a1a1aa; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stack { display: grid; gap: 10px; }

/* Choice cards */

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
.choice {
  position: relative; display: flex; padding: 14px 16px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice strong { display: block; font-weight: 600; font-size: 15px; }
.choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.choice:hover { border-color: #c7c7cf; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--ring); }

/* Platforms */

.platforms { display: grid; gap: 10px; }
.platform {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 8px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.platform:has(.toggle input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.toggle { flex: 1; display: flex; align-items: center; gap: 12px; align-self: stretch; font-weight: 560; cursor: pointer; }
.toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.per-week { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.per-week input { width: 72px; padding: 7px 8px; text-align: center; }
.platform:not(:has(.toggle input:checked)) .per-week { display: none; }

/* Uploads */

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 26px 20px; text-align: center; cursor: pointer;
  color: var(--muted); font-size: 14px;
  background: var(--card); border: 1.5px dashed #d4d4d8; border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.drop strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.logo-preview { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.logo-preview img {
  max-width: 180px; max-height: 84px; padding: 10px; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
  display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
}

/* Colors */

.colors { display: flex; flex-wrap: wrap; gap: 10px; }
.colors:not(:empty) { margin-bottom: 12px; }
.color {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.color input[type=color] { width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; }
.color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color input[type=color]::-webkit-color-swatch { border: 1px solid rgb(0 0 0 / .1); border-radius: 7px; }
.color input[type=color]::-moz-color-swatch { border: 1px solid rgb(0 0 0 / .1); border-radius: 7px; }
.color input.hex {
  width: 96px; padding: 6px 8px; font-size: 14px; text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.color button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 17px; cursor: pointer; }
.color button:hover { background: var(--soft); color: var(--ink); }

/* Buttons */

button { font: inherit; }
.actions {
  position: sticky; bottom: 0; display: flex; gap: 12px;
  margin-top: 8px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 75%, rgb(250 250 250 / 0));
}
.primary {
  margin-left: auto; padding: 12px 24px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #fff;
  background: var(--ink); border: 0; border-radius: 10px;
  transition: background .15s;
}
.primary:hover { background: #3f3f46; }
.primary:disabled { opacity: .6; cursor: default; }
.ghost {
  padding: 12px 18px; cursor: pointer;
  font-size: 15px; font-weight: 560; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.ghost:hover { background: var(--soft); }
.link { padding: 0; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 560; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* Errors */

.invalid input:not([type=radio]):not([type=checkbox]), .invalid textarea { border-color: var(--danger); }
.invalid .choice, .invalid .platform { border-color: #fca5a5; }
.error { margin: 8px 0 0; color: var(--danger); font-size: 13.5px; }
.notice { margin: 0 0 24px; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: #3730a3; background: var(--accent-soft); border: 1px solid #c7d2fe; border-radius: 10px; }
.form-error { margin: 0 0 12px; padding: 12px 14px; color: var(--danger); background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; font-size: 14px; }

/* Review */

.review-section { margin-bottom: 14px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.review-section header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.review-section h2 { margin: 0; font-size: 16px; font-weight: 620; }
.review-section dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; font-size: 14.5px; line-height: 1.45; }
.review-section dt { color: var(--muted); }
.review-section dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-section .empty { color: var(--muted); font-size: 14px; margin: 0; }
.swatch { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.review-logo { max-width: 120px; max-height: 48px; object-fit: contain; }

/* Done */

.done { padding-top: 56px; text-align: center; }
.done .lead { max-width: 460px; margin-left: auto; margin-right: auto; }
.check { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 22px; color: var(--accent); background: var(--accent-soft); border-radius: 50%; }
.dev-note { max-width: 460px; margin: 28px auto 0; padding: 14px 16px; text-align: left; font-size: 14px; line-height: 1.45; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; }

@media (max-width: 560px) {
  main { padding-top: 28px; }
  h1 { font-size: 24px; }
  .two, .row { grid-template-columns: 1fr; gap: 10px; }
  .two { gap: 0; }
  .choices.three { grid-template-columns: 1fr 1fr 1fr; }
  .review-section dl { grid-template-columns: 1fr; gap: 2px; }
  .review-section dd { margin-bottom: 10px; }
}
