/* Evolution Haus brand fonts */
@font-face { font-family: "The Seasons"; src: url("fonts/the-seasons-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "The Seasons"; src: url("fonts/the-seasons-light-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "The Seasons"; src: url("fonts/the-seasons-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "The Seasons"; src: url("fonts/the-seasons-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "The Seasons"; src: url("fonts/the-seasons-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Visby CF"; src: url("fonts/visby-cf-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Visby CF"; src: url("fonts/visby-cf-medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Visby CF"; src: url("fonts/visby-cf-demibold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Evolution Haus: cream page, ink type, lilac and peach in equal measure, each with one job.
     Peach is everything the client chooses or fills in: selections, field focus, uploads.
     Lilac is the frame: progress, the rail, step labels, links, numbering, the headline highlight.
     Token names are shared with the Flow Brief template: "amber" holds the brand's lilac here. */
  --ink: #11120d;          /* brand ink; text on lilac and peach */
  --bg: #faf7f2;           /* brand cream */
  --bg-deep: #f3eee6;
  --amber: #d8c2ec;        /* brand lilac: the frame and navigation */
  --amber-deep: #c4a8e2;
  --amber-text: #6a4c93;   /* deep violet for small frame text and focus rings, readable on cream */
  --peach: #f2a579;        /* brand peach: every selection */
  --peach-deep: #c8703f;   /* large peach type (the italic headline word), 3:1+ on cream */
  --peach-text: #a5522a;   /* small peach text on inputs and uploads, 4.5:1+ on cream */
  --cream: #11120d;        /* primary text */
  --mist: #4a4a45;
  --faint: #6f6e68;
  /* Solid surfaces, as on the Evolution Haus site: white cards and controls on cream, a hairline edge,
     and one soft drop shadow reserved for the larger cards. No translucency or blur. */
  --line: #d9d7d2;                         /* EH hairline */
  --field-line: rgba(17, 18, 13, 0.3);     /* EH form field border */
  --surface: #ffffff;
  --lilac-wash: #f2eaf0;                   /* EH lilac-25: small frame surfaces */
  --card-shadow: 0 24px 60px -30px rgba(17, 18, 13, 0.18);
  --danger: #b4321f;

  --head: "The Seasons", "Bodoni 72", Didot, Georgia, serif;
  --body: "Visby CF", "Jost", "Segoe UI", system-ui, sans-serif;
  --mono: var(--body);     /* labels use EH's small, widely tracked uppercase style instead of a monospace */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;                          /* EH field radius; larger cards use 20px */
}

*, *::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;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}

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;
}
/* HAUS wordmark on its own: shorter than the old two-line lockup, about the same width */
.brand img { display: block; height: 36px; width: auto; }
.studio-badge {
  font: 500 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase;
  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 ---------- */
/* Welcome and result screens hide the rail; [hidden] must beat the rail's display:grid. */
.rail[hidden] { display: none; }
.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(150, 110, 200, 0.45);
  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(17, 18, 13, 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-deep);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(150, 110, 200, 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: 500 11px/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber-text);
  margin: 0 0 16px;
}
.step h1, .step h2 {
  font-family: var(--head);
  font-weight: 400;
  letter-spacing: -0.01em;
  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: 500 16px/1.35 var(--body);
  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(--surface);
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  padding: 15px 16px;
  transition: border-color 200ms, box-shadow 200ms;
}
textarea { min-height: 104px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a8a91; }
input:hover, textarea:hover { border-color: rgba(17, 18, 13, 0.5); }
/* Peach marks the field being filled in; the deeper edge keeps it visible (3:1) on white */
input:focus, textarea:focus {
  outline: none;
  border-color: var(--peach-deep);
  box-shadow: 0 0 0 3px rgba(242, 165, 121, 0.35);
}

/* Only the larger cards lift off the page; chips, options and fields sit flat */
.review-group { box-shadow: var(--card-shadow); }
.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(--surface);
  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(17, 18, 13, 0.3); color: var(--cream); }
.chip input:checked + span {
  background: var(--peach);
  border-color: var(--peach);
  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: 500 16px/1.35 var(--body); 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(17, 18, 13, 0.26);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--mist);
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--peach); background: rgba(242, 165, 121, 0.08); }
.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(242, 165, 121, 0.18);
  color: var(--peach-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(--surface);
}
.file-card img, .file-badge {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: contain;
  background: repeating-conic-gradient(rgba(17, 18, 13, 0.07) 0 25%, transparent 0 50%) 0 0 / 14px 14px, #ffffff;
  padding: 6px;
}
.file-badge { display: grid; place-items: center; font: 500 11px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--peach-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 ---------- */
/* Logo versions and brand elements: a stack of file cards, then the drop zone */
.upload-multi { display: grid; gap: 10px; }

.colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.colors + .add-link { margin-top: 4px; }
.color-field { display: grid; gap: 8px; min-width: 0; }
.color-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.color-head label { font-size: 15px; color: var(--mist); font-weight: 500; }
.icon-btn.color-remove { width: 28px; height: 28px; border-radius: 8px; }
.color-remove svg { width: 14px; height: 14px; }
.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(17, 18, 13, 0.35) 50%, transparent calc(50% + 1px)),
    var(--surface);
}
.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: 11px; 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(--surface);
  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(17, 18, 13, 0.3);
  transition: border 180ms, background 180ms;
}
.option-body:hover { border-color: rgba(17, 18, 13, 0.3); color: var(--cream); }
.option input:checked + .option-body {
  border-color: var(--peach);
  background: rgba(242, 165, 121, 0.18);
  color: var(--cream);
}
.option input:checked + .option-body::before {
  border: 5px solid var(--peach);
  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(--peach);
  background: var(--peach) 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(--surface);
}
.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(--peach); 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 ---------- */
/* Four signature styles as a 2x2 grid, so every name sits on one line and the tiles match */
.vibes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.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-egs { display: flex; flex-wrap: wrap; gap: 0 18px; }
.vibe-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
  min-height: 190px;
  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(--peach);
}
.vibe-tick {
  align-self: flex-end;
  width: 24px;
  height: 24px;
  margin-top: -6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--peach);
  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(--peach); }

.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: "Jost", Arial, sans-serif; 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: "Jost", Arial, sans-serif;
  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: #f4ede7; 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: "Jost", Arial, sans-serif; }
.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(17, 18, 13, 0.3); border-radius: var(--radius); font-family: var(--body); }
.v-unsure .vibe-name { font-family: var(--head); font-weight: 700; color: var(--cream); }

/* The four signature styles: one shape, size and layout; only the palette and type change */
.vibe-card.v-style {
  --ring: #0d0c0a;
  min-height: 210px;
  padding: 24px 24px 20px;
  gap: 10px;
  justify-content: flex-start;
  border-radius: 18px;
  border: 1px solid transparent;
}
.vibe-eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}
.v-style .vibe-name { font-size: 32px; line-height: 1.02; margin-top: 2px; white-space: nowrap; }
.v-style .vibe-desc { flex: 1; max-width: 30ch; font-family: var(--body); font-size: 15px; line-height: 1.45; }
.vibe-foot { display: flex; align-items: center; justify-content: space-between; }
.vibe-swatches { display: flex; padding-left: 5px; }
.vibe-swatches i { width: 20px; height: 20px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ring), inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.vibe-foot .vibe-tick { margin: 0; align-self: center; }

.v-penthouse { --ring: #0d0c0a; background: #0d0c0a; color: #e9d9b6; border-color: #2b2519; }
.v-penthouse .vibe-name { font-family: var(--head); font-style: italic; }
.v-penthouse .vibe-desc { color: #b9ab8e; }

.v-sanctuary { --ring: #e2d2bb; background: linear-gradient(165deg, #f2e8da, #dcc6a6); color: #3c2f22; }
.v-sanctuary .vibe-name { font-family: var(--head); }
.v-sanctuary .vibe-desc { color: #5d4b38; }

.v-gallery { --ring: #ffd93d; background: #ffd93d; color: #1f1a14; }
.v-gallery .vibe-name { font-family: var(--body); font-weight: 700; letter-spacing: -0.03em; }
.v-gallery .vibe-desc { color: #3d3226; }

.v-studio { --ring: #f6f0ea; background: #f6f0ea; color: #24221f; border-color: rgba(36, 34, 31, 0.12); }
.v-studio .vibe-name { font-family: var(--head); font-weight: 300; }
.v-studio .vibe-desc { color: #6a625a; }

/* "Not sure yet" and "Describe my own": two half-width strips under the four styles */
.vibe-item.is-half { grid-column: span 1; }
/* Both strips share one layout: name over description, tick on the right */
.vibe-item.is-half .vibe-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 4px 16px;
  padding: 20px 24px;
  background: transparent;
  color: var(--mist);
  border: 1px dashed rgba(17, 18, 13, 0.3);
  border-radius: 18px;
  font-family: var(--body);
}
.is-half .vibe-name { grid-column: 1; font-family: var(--head); font-size: 22px; font-weight: 400; color: var(--cream); }
.is-half .vibe-desc { grid-column: 1; }
.is-half .vibe-tick { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }

/* ---------- 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(--peach-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(--surface);
  box-shadow: var(--card-shadow);
  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: 500 13px/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  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; }
/* Moving through the brief is navigation, so the main button wears the frame colour */
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 10px 26px -12px rgba(106, 76, 147, 0.55); }
.btn-primary:hover { background: var(--amber-deep); }
.btn-ghost { color: var(--cream); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }
.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(--lilac-wash);
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 28px;
}
.welcome .status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 10px var(--peach);
}
.welcome h1 {
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.welcome h1 em { font-style: italic; font-weight: 400; color: var(--peach-deep); }
/* 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-deep));
}
.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: 20px;
  background: var(--surface);
  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: 400 22px/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); }
.pack-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 8px; }
.prompt-box {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--lilac-wash);
}
.prompt-title { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.prompt-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font: 500 15px/1 var(--body);
}
.prompt-title h3 { margin: 0 0 3px; font: 400 22px/1.2 var(--head); }
.prompt-title p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--mist); }
.prompt-bar .btn { flex: none; min-height: 44px; padding: 0 18px; font-size: 14px; }
.prompt-box pre {
  margin: 0;
  padding: 20px;
  max-height: 46vh;
  overflow: auto;
  font: 400 14px/1.65 ui-monospace, Consolas, "Liberation Mono", monospace;
  color: var(--cream);
  white-space: pre-wrap;
  word-break: break-word;
}
.next-steps {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px dashed rgba(17, 18, 13, 0.22);
  border-radius: 18px;
}
.next-steps h3 { margin: 0 0 10px; font: 400 22px/1.2 var(--head); }
.next-steps ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--mist); list-style: disc; }
/* AI Studio's Tailwind preflight strips list markers and default margins; restore the few we rely on. */
#haus-root ul:not([class]) { list-style: disc; padding-left: 20px; }

/* ---------- 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: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .mp-row { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
  .mp-count { font: 500 11px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; 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: linear-gradient(90deg, var(--amber), var(--amber-deep));
    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, .vibes { grid-template-columns: 1fr; }
  .vibe-card.v-style { min-height: 0; }
  .v-style .vibe-name { font-size: 28px; }
  .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; }
  .prompt-bar .btn { width: 100%; }
}

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