:root {
  /* Light theme: warm off-white page, grayish-black type, amber kept for fills and accents */
  --ink: #2b2b2e;          /* text on amber */
  --bg: #f6f2eb;
  --bg-deep: #efe9df;
  --amber: #ffba42;        /* fills: buttons, selections, the flow line */
  --amber-deep: #e89a1c;
  --amber-text: #955b05;   /* amber for small text and focus rings, readable on light */
  --cream: #2b2b2e;        /* primary text (grayish black) */
  --mist: #55555b;
  --faint: #74747b;
  --line: rgba(43, 43, 46, 0.14);
  /* Frosted glass: near-opaque white, blurred backdrop, a bright top edge and a soft drop */
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  --glass-hi: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  --glass-edge: inset 0 1px 0 #ffffff, 0 1px 2px rgba(43, 43, 46, 0.05), 0 8px 24px -14px rgba(43, 43, 46, 0.22);
  --glass-blur: blur(16px) saturate(140%);
  --danger: #b4321f;

  --head: "Sora", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--cream);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

/* Soft amber and peach light at the top, a cool wash at the bottom */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 50% at 12% -10%, rgba(255, 186, 66, 0.4), transparent 70%),
    radial-gradient(55% 40% at 88% -5%, rgba(255, 150, 110, 0.22), transparent 70%),
    radial-gradient(80% 60% at 50% 115%, rgba(150, 175, 230, 0.3), transparent 70%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 55%, var(--bg-deep) 100%);
}

a { color: var(--amber-text); }

:focus-visible {
  outline: 2px solid var(--amber-text);
  outline-offset: 3px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.brand img { display: block; height: 36px; width: auto; }
.studio-badge {
  font: 400 13px/1 var(--mono);
  color: var(--ink);
  background: var(--amber);
  padding: 8px 12px;
  border-radius: 999px;
}

/* ---------- Layout ---------- */
.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.shell.is-flow { grid-template-columns: 240px minmax(0, 1fr); }

.stage { max-width: 760px; width: 100%; }
.shell:not(.is-flow) .stage { max-width: 760px; margin: 0 auto; }

/* ---------- The flow rail ---------- */
.rail {
  position: sticky;
  top: 40px;
  align-self: start;
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 18px;
}
.rail-line {
  position: relative;
  width: 2px;
  margin-left: 6px;
  background: var(--line);
  border-radius: 2px;
  grid-row: 1;
  grid-column: 1;
  height: calc(100% - 22px);
  top: 11px;
}
.rail-fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--fill, 0%);
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 186, 66, 0.55);
  transition: height 600ms var(--ease);
}
.rail-steps {
  grid-row: 1;
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.rail-steps button {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 18px;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  font: 500 15px/1.2 var(--body);
  color: var(--faint);
  cursor: default;
}
.rail-steps button::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 2px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(43, 43, 46, 0.25);
  transition: background 300ms, border-color 300ms, transform 300ms var(--ease);
}
.rail-steps .is-done button { color: var(--mist); cursor: pointer; }
.rail-steps .is-done button:hover { color: var(--cream); }
.rail-steps .is-done button::before { background: var(--amber); border-color: var(--amber); }
.rail-steps .is-current button { color: var(--cream); font-weight: 700; }
.rail-steps .is-current button::before {
  border-color: var(--amber);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(255, 186, 66, 0.18);
}
.rail-steps button:focus-visible { outline-offset: 4px; border-radius: 6px; }

/* ---------- Mobile progress ---------- */
.mobile-progress { display: none; }

/* ---------- Step content ---------- */
.step { animation: step-in 420ms var(--ease) both; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.step-count {
  font: 400 14px/1 var(--mono);
  color: var(--amber-text);
  margin: 0 0 16px;
}
.step h1, .step h2 {
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  outline: none;
}
.step h2 { font-size: clamp(32px, 4.2vw, 44px); }
.step-intro {
  margin: 14px 0 40px;
  color: var(--mist);
  max-width: 56ch;
}

.fields { display: grid; gap: 34px; }

.field { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field[hidden] { display: none; }
.primary-field:not([hidden]),
.is-conditional:not([hidden]) { animation: step-in 360ms var(--ease) both; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.field > label, .field > legend {
  font: 600 17px/1.35 var(--head);
  color: var(--cream);
  padding: 0;
}
.field .hint {
  margin: -4px 0 2px;
  font-size: 15px;
  color: var(--faint);
}
.optional { font: 400 14px var(--body); color: var(--faint); margin-left: 6px; }

input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  font: 400 17px/1.4 var(--body);
  color: var(--cream);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
  box-shadow: var(--glass-edge);
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
}
textarea { min-height: 104px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a8a91; }
input:hover, textarea:hover { border-color: rgba(43, 43, 46, 0.32); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--glass-hi);
  box-shadow: var(--glass-edge), 0 0 0 3px rgba(255, 186, 66, 0.2);
}

/* Every glass surface gets the same frosted backdrop and top highlight */
input[type="text"], input[type="email"], input[type="url"], textarea,
.chip span, .option-body, .seg, .dropzone, .file-card, .review-group, .welcome .status {
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
}
.chip span, .option-body, .seg, .file-card, .review-group { box-shadow: var(--glass-edge); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.error {
  margin: 0;
  font-size: 15px;
  color: var(--danger);
}
.error:empty { display: none; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; }

/* ---------- Chips (multi select) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input, .option input, .vibe input, .seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--mist);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background 180ms, color 180ms, border-color 180ms, transform 180ms var(--ease);
}
.chip span:hover { border-color: rgba(43, 43, 46, 0.3); color: var(--cream); }
.chip input:checked + span {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.chip input:active + span { transform: scale(0.97); }
.chip input:focus-visible + span,
.option input:focus-visible + .option-body,
.vibe input:focus-visible + .vibe-card,
.seg input:focus-visible + span {
  outline: 2px solid var(--amber-text);
  outline-offset: 3px;
}
.chip input:disabled + span { opacity: 0.35; cursor: not-allowed; }
.chip-custom input:checked + span { background: var(--cream); border-color: var(--cream); color: #ffffff; }

.field-label { font: 600 17px/1.35 var(--head); color: var(--cream); }

/* ---------- Logo upload ---------- */
.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 18px 20px;
  border: 1.5px dashed rgba(43, 43, 46, 0.26);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--mist);
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--amber); background: rgba(255, 186, 66, 0.06); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 2px solid var(--amber-text); outline-offset: 3px; }
.dz-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 186, 66, 0.12);
  color: var(--amber-text);
}
.dz-icon svg { width: 22px; height: 22px; }
.dz-text b { color: var(--cream); font-weight: 600; }

.file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.file-card img, .file-badge {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: contain;
  background: repeating-conic-gradient(rgba(43, 43, 46, 0.07) 0 25%, transparent 0 50%) 0 0 / 14px 14px, #ffffff;
  padding: 6px;
}
.file-badge { display: grid; place-items: center; font: 400 13px var(--mono); color: var(--amber-text); }
.file-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.file-name { color: var(--cream); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 14px; color: var(--faint); }

/* ---------- Brand colors ---------- */
.colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.color-field { display: grid; gap: 8px; min-width: 0; }
.color-field > label { font-size: 15px; color: var(--mist); font-weight: 500; }
.color-row { display: flex; gap: 8px; }
.color-row input[type="text"] { min-width: 0; font-family: var(--mono); font-size: 15px; text-transform: uppercase; }
.color-row input[type="text"]::placeholder { text-transform: none; }
.swatch {
  position: relative;
  flex: none;
  width: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--swatch, transparent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.swatch.is-empty {
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), rgba(43, 43, 46, 0.35) 50%, transparent calc(50% + 1px)),
    var(--glass);
}
.swatch input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.swatch:focus-within { outline: 2px solid var(--amber-text); outline-offset: 3px; }

/* "Add your own" row under a chip group */
.custom-add {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  max-width: 460px;
}
.custom-add input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; }
.btn.btn-small { min-height: 46px; padding: 0 20px; font-size: 14px; flex: none; }

/* ---------- Options (single select rows) ---------- */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option { position: relative; display: block; }
.option-body {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--mist);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 180ms, background 180ms, color 180ms;
}
.option-body::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(43, 43, 46, 0.3);
  transition: border 180ms, background 180ms;
}
.option-body:hover { border-color: rgba(43, 43, 46, 0.3); color: var(--cream); }
.option input:checked + .option-body {
  border-color: var(--amber-deep);
  background: rgba(255, 186, 66, 0.16);
  color: var(--cream);
}
.option input:checked + .option-body::before {
  border: 5px solid var(--amber);
  background: #ffffff;
}
/* Multi-select rows use a square check instead of a radio dot */
.option.is-multi .option-body::before { border-radius: 5px; }
.option.is-multi input:checked + .option-body::before {
  border: 2px solid var(--amber);
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23030712' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Segmented (motion level) ---------- */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 5px;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
}
.seg label { position: relative; }
.seg span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  font-weight: 500;
  font-size: 15px;
  color: var(--mist);
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.seg input:checked + span { background: var(--amber); color: var(--ink); }
.seg.seg-wrap { display: flex; flex-wrap: wrap; border-radius: 26px; }
.seg.seg-wrap label { flex: 1 1 auto; }
.seg.seg-wrap span { padding: 8px 18px; }

/* ---------- Vibe cards, each drawn in its own style ---------- */
.vibes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 12px; }
.vibe-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vibe { position: relative; display: block; flex: 1; }
.vibe-eg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  padding: 4px 2px;
  border-radius: 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.vibe-eg svg { width: 13px; height: 13px; flex: none; color: var(--amber-text); }
.vibe-eg:hover { color: var(--amber-text); text-decoration: underline; text-underline-offset: 3px; }
.vibe-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
  min-height: 148px;
  padding: 18px;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms;
}
.vibe-card:hover { transform: translateY(-3px); }
.vibe-name { font-size: 19px; line-height: 1.08; overflow-wrap: break-word; }
.vibe-desc { font-size: 14px; line-height: 1.35; }
.vibe input:checked + .vibe-card {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--amber);
}
.vibe-tick {
  align-self: flex-end;
  width: 24px;
  height: 24px;
  margin-top: -6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--ink);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 200ms, transform 260ms var(--ease);
}
.vibe input:checked + .vibe-card .vibe-tick { opacity: 1; transform: none; }
.vibe-tick svg { width: 14px; height: 14px; }

.v-swiss { background: #f7f6f2; color: #111; border-radius: 2px; font-family: Arial, Helvetica, sans-serif; }
.v-swiss .vibe-name { font-weight: 700; letter-spacing: -0.03em; }
.v-swiss .vibe-name::before { content: ""; display: block; width: 18px; height: 18px; background: #e0321b; margin-bottom: 14px; }
.v-swiss .vibe-desc { color: #444; }

.v-lux { background: #0c0c0c; color: #e8d6b0; border: 1px solid #2a251c; border-radius: 4px; font-family: Georgia, "Times New Roman", serif; }
.v-lux .vibe-name { font-style: italic; font-size: 22px; }
.v-lux .vibe-desc { color: #b9ab8e; font-family: var(--body); }

.v-saas { background: #f6f7fb; color: #1b2040; border-radius: 18px; font-family: var(--body); }
.v-saas .vibe-name { font-weight: 700; letter-spacing: -0.02em; }
.v-saas .vibe-name::before { content: "New"; display: block; width: max-content; font: 600 11px/1 var(--body); color: #fff; background: #5b5bd6; padding: 5px 9px; border-radius: 999px; margin-bottom: 12px; }
.v-saas .vibe-desc { color: #5a607a; }

.v-brutal { background: #f5df4d; color: #111; border: 3px solid #111; box-shadow: 6px 6px 0 #111; border-radius: 0; font-family: "Courier New", monospace; }
.v-brutal .vibe-name { font-weight: 700; }
.vibe input:checked + .v-brutal { box-shadow: 6px 6px 0 #111, 0 0 0 4px var(--bg), 0 0 0 7px var(--amber); }

.v-organic { background: linear-gradient(160deg, #efe3d0, #d8c3a5); color: #3c2f22; border-radius: 28px 28px 28px 6px; font-family: Georgia, serif; }
.v-organic .vibe-desc { color: #5d4b38; font-family: var(--body); }

.v-bold { background: #121212; color: #fff; border-radius: 6px; font-family: var(--head); overflow: hidden; }
.v-bold .vibe-name { font-weight: 800; font-size: 21px; text-transform: uppercase; letter-spacing: -0.04em; color: #ff5a36; }
.v-bold .vibe-desc { color: #c9c9c9; font-family: var(--body); }

.v-soft { background: linear-gradient(150deg, #fdf2f8, #e8f0ff); color: #36324a; border-radius: 22px; font-family: var(--body); }
.v-soft .vibe-name { font-weight: 500; }
.v-soft .vibe-desc { color: #6a6580; }

.v-tech {
  background: radial-gradient(120% 80% at 80% 0%, rgba(124, 92, 255, 0.45), transparent 60%), #08090f;
  color: #eceeff;
  border: 1px solid #23253a;
  border-radius: 10px;
  font-family: var(--body);
}
.v-tech .vibe-name { font-weight: 600; letter-spacing: -0.02em; }
.v-tech .vibe-desc { color: #9a9dbb; }

.v-cinema {
  background:
    linear-gradient(180deg, #000 0 10px, transparent 10px calc(100% - 10px), #000 calc(100% - 10px)),
    radial-gradient(90% 70% at 30% 40%, #e2843c, transparent 60%),
    radial-gradient(80% 80% at 90% 90%, #1f5c6e, transparent 60%), #111;
  color: #fff;
  border-radius: 4px;
  font-family: var(--head);
  padding-top: 24px;
  padding-bottom: 24px;
}
.v-cinema .vibe-name { font-weight: 800; letter-spacing: -0.03em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.v-cinema .vibe-desc { color: #f1ece4; font-family: var(--body); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }

.v-quiet { background: #ecebe5; color: #2b2a27; border-radius: 0; font-family: Georgia, "Times New Roman", serif; border-top: 1px solid #2b2a27; }
.v-quiet .vibe-name { font-weight: 400; letter-spacing: 0.01em; }
.v-quiet .vibe-desc { color: #5f5d57; }

.v-bright { background: #ffe01b; color: #241c15; border-radius: 22px; font-family: var(--head); }
.v-bright .vibe-name { font-weight: 800; letter-spacing: -0.03em; }
.v-bright .vibe-desc { color: #3d3226; font-family: var(--body); }

.v-illus {
  background: radial-gradient(circle at 104% 104%, #ffc94d 0 40px, transparent 41px), radial-gradient(circle at -6% 112%, #ff9a5c 0 34px, transparent 35px), #f47c2f;
  color: #fff;
  border-radius: 28px;
  font-family: var(--body);
}
.v-illus .vibe-name { font-weight: 700; }
.v-illus .vibe-desc { color: #fff4ea; }

.v-retro { background: #ffd8a8; color: #2b2118; border: 2px solid #2b2118; border-radius: 6px; font-family: var(--mono); padding-top: 30px; position: relative; }
.v-retro::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14px;
  background: repeating-linear-gradient(180deg, #2b2118 0 2px, transparent 2px 4px);
  border-bottom: 2px solid #2b2118;
}
.v-retro .vibe-name { font-weight: 700; font-size: 17px; }
.v-retro .vibe-desc { color: #4a3a2b; font-size: 13px; }

.v-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)), linear-gradient(150deg, #3b1d5e, #12325a);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  font-family: var(--body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.v-glass .vibe-name { font-weight: 600; }
.v-glass .vibe-desc { color: rgba(255, 255, 255, 0.78); }

.v-corp { background: #f8fafd; color: #0b2a4a; border-radius: 8px; border-left: 5px solid #1f6feb; font-family: var(--body); }
.v-corp .vibe-name { font-weight: 700; }
.v-corp .vibe-desc { color: #4a5d75; }

.v-unsure { background: transparent; color: var(--mist); border: 1px dashed rgba(43, 43, 46, 0.3); border-radius: var(--radius); font-family: var(--body); }
.v-unsure .vibe-name { font-family: var(--head); font-weight: 700; color: var(--cream); }

/* ---------- Inspiration rows ---------- */
.links { display: grid; gap: 14px; }
.link-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: start;
}
.icon-btn {
  all: unset;
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--faint);
  cursor: pointer;
  border: 1px solid transparent;
}
.icon-btn:hover { color: var(--cream); border-color: var(--line); }
.icon-btn:focus-visible { outline: 2px solid var(--amber-text); }
.icon-btn svg { width: 18px; height: 18px; }
.add-link {
  all: unset;
  justify-self: start;
  cursor: pointer;
  color: var(--amber-text);
  font-weight: 600;
  padding: 10px 2px;
}
.add-link:focus-visible { outline: 2px solid var(--amber-text); border-radius: 6px; }
.add-link[hidden] { display: none; }

/* ---------- Inspiration screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shot-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--glass-edge);
  overflow: hidden;
}
.shot-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.shot-body { display: flex; gap: 6px; align-items: center; padding: 8px; }
.shot-body input[type="text"] { flex: 1; min-width: 0; padding: 11px 12px; font-size: 15px; box-shadow: none; }
.shot-body .icon-btn { width: 44px; height: 44px; flex: none; }
.dropzone.shot-drop { min-height: 100%; align-self: stretch; }
.shots .shot-drop:only-child { grid-column: 1 / -1; }
.dz-text small { color: var(--faint); font-size: 13px; }

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.actions .spacer { flex: 1; }
.btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 600 16px/1 var(--head);
  cursor: pointer;
  transition: transform 160ms var(--ease), background 200ms, box-shadow 200ms, color 200ms;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--amber-text); outline-offset: 3px; }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(214, 140, 20, 0.6); }
.btn-primary:hover { background: #ffc864; }
.btn-ghost { color: var(--cream); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--glass-hi); }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.kbd-hint { font-size: 14px; color: var(--faint); }

/* ---------- Welcome ---------- */
.welcome { padding-top: 6vh; }
.welcome .status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass-hi);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--mist);
  margin: 0 0 28px;
}
.welcome .status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}
.welcome h1 {
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.welcome h1 em { font-style: italic; font-weight: 800; }
/* Amber as a highlighter stroke behind the word, so it stays readable on light */
.welcome h1 .grow {
  background: linear-gradient(180deg, transparent 56%, var(--amber) 56%, var(--amber) 90%, transparent 90%);
  padding: 0 0.06em;
  margin: 0 -0.06em;
}
.welcome h1 .line { display: block; }
.welcome .lede { font-size: 19px; color: var(--mist); max-width: 52ch; margin: 28px 0 0; }
.welcome-path {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  color: var(--faint);
  font-size: 15px;
}
.welcome-path li { display: inline-flex; align-items: center; }
.welcome-path li + li::before {
  content: "";
  width: 22px;
  height: 1px;
  margin: 0 10px;
  background: linear-gradient(90deg, var(--line), var(--amber));
}
.welcome .actions { border-top: 0; padding-top: 0; margin-top: 44px; }

/* one orchestrated load: the headline lines rise in sequence */
.welcome .line { animation: rise 800ms var(--ease) both; }
.welcome .line:nth-child(2) { animation-delay: 90ms; }
.welcome .line:nth-child(3) { animation-delay: 180ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(0.4em); }
  to { opacity: 1; transform: none; }
}

/* ---------- Review ---------- */
.review { display: grid; gap: 14px; }
.review-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  padding: 22px 24px;
}
.review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.review-head h3 { margin: 0; font: 700 18px/1.2 var(--head); }
.review-head button {
  all: unset;
  cursor: pointer;
  color: var(--amber-text);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 2px;
}
.review-head button:focus-visible { outline: 2px solid var(--amber-text); border-radius: 6px; }
.review dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 8px 18px; }
.review dt { color: var(--faint); font-size: 15px; }
.review dd { margin: 0; font-size: 15px; color: var(--cream); overflow-wrap: anywhere; white-space: pre-line; }
.review .empty { color: var(--faint); }

.send-error {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(180, 50, 31, 0.35);
  background: rgba(180, 50, 31, 0.07);
  color: var(--cream);
}
.send-error[hidden] { display: none; }

/* ---------- Done ---------- */
.done h2 { font-size: clamp(36px, 5vw, 56px); }
.prompt-box {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}
.prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--line);
}
.prompt-bar p { margin: 0; font: 400 13px/1 var(--mono); color: var(--faint); }
.prompt-bar .btns { display: flex; gap: 8px; }
.prompt-bar .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.prompt-box pre {
  margin: 0;
  padding: 20px;
  max-height: 52vh;
  overflow: auto;
  font: 400 14px/1.6 var(--mono);
  color: var(--mist);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .shell.is-flow { grid-template-columns: 1fr; gap: 28px; }
  .rail { display: none !important; }
  .mobile-progress:not([hidden]) {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 5;
    margin: -16px -24px 0;
    padding: 14px 24px;
    background: rgba(251, 248, 243, 0.88);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .mp-row { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
  .mp-count { font: 400 13px var(--mono); color: var(--amber-text); }
  .mp-name { color: var(--cream); font-weight: 600; }
  .mp-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
  .mp-bar span {
    display: block;
    height: 100%;
    width: var(--fill, 0%);
    background: var(--amber);
    transition: width 500ms var(--ease);
  }
  .stage { max-width: none; }
  .vibes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { padding: 18px 20px 0; }
  .shell { padding: 28px 20px 72px; }
  .mobile-progress:not([hidden]) { margin: -12px -20px 0; padding: 12px 20px; }
  .two-col, .options, .colors, .shots { grid-template-columns: 1fr; }
  .link-row { grid-template-columns: 1fr auto; }
  .link-row .link-url { grid-column: 1; }
  .link-row .link-love { grid-column: 1; grid-row: 2; }
  .link-row .icon-btn { grid-column: 2; grid-row: 1; }
  .seg span { font-size: 14px; padding: 8px 6px; }
  .review dl { grid-template-columns: 1fr; gap: 2px; }
  .review dd { margin-bottom: 10px; }
  .actions { flex-wrap: wrap; }
  .actions .btn-primary { flex: 1; }
  .kbd-hint { display: none; }
  .prompt-bar { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
