/* =========================================================
   Berber Media — Plan Onboarding & Live Demo Builder
   ========================================================= */

.start-page {
  background: var(--surface);
  min-height: 100vh;
}

.container--wide {
  max-width: 1280px;
}
.container--intake {
  max-width: 720px;
}
.intake-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.intake-card--solo {
  gap: 20px;
}

/* ---- Focused Top Nav + Stepper ---- */
.start-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.start-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 13px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.start-nav__back {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.start-nav__back:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 20px;
}
.stepper__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.stepper__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--muted);
}
.stepper__item.is-active {
  color: var(--ink);
  font-weight: 600;
}
.stepper__item.is-active .stepper__num {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.stepper__item.is-done {
  color: var(--ink-soft);
}
.stepper__item.is-done .stepper__num {
  background: var(--success-bg);
  border-color: #A7F3D0;
  color: var(--success-text);
}

@media (max-width: 780px) {
  .stepper__label { display: none; }
  .stepper { gap: 10px; }
}

/* ---- Views ---- */
.start-main {
  padding: clamp(28px, 4vw, 48px) 0 72px;
}
.start-view { display: none; }
.start-view.is-active { display: block; animation: fade-in 0.28s var(--ease); }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   STEP 1: Intake Form + Plan Summary
   ========================================================= */
.intake-head {
  max-width: 660px;
  margin-bottom: 28px;
}
.intake-head h1 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
}
.intake-head p {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.intake-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: start;
}

.intake-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.intake-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.intake-group:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}
.intake-group__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sfield {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sfield > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.sfield > span em {
  color: var(--error);
  font-style: normal;
}
.sfield > span small {
  font-weight: 400;
  color: var(--muted);
}
.sfield input[type="text"],
.sfield input[type="email"],
.sfield select,
.sfield textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.sfield textarea { resize: vertical; min-height: 82px; line-height: 1.5; }
.sfield input::placeholder,
.sfield textarea::placeholder { color: #94A3B8; }
.sfield input:focus,
.sfield select:focus,
.sfield textarea:focus {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.look-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tone-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tone-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.tone-chip input { display: none; }
.tone-chip:hover { border-color: var(--ink); color: var(--ink); }
.tone-chip:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--border-strong);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.swatch--sm { width: 22px; height: 22px; }
.swatch:hover { transform: scale(1.1); }
.swatch.is-active {
  box-shadow: 0 0 0 2px var(--ink);
  transform: scale(1.08);
}
.swatch-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px dashed var(--border-strong);
  cursor: pointer;
}
.swatch-custom input[type="color"] {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.form-error {
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #FECACA;
  font-size: 13.5px;
}

.intake-submit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.intake-hint {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Sticky Plan Summary Card */
.summary-card {
  position: sticky;
  top: 84px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.summary-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.plan-switcher {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.plan-switcher button {
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.plan-switcher button.is-active {
  background: var(--ink);
  color: #FFFFFF;
}

.summary-billing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 18px;
}
.summary-billing button {
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.summary-billing button span {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.summary-billing button.is-active {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.summary-price {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.summary-price__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.summary-price__name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.summary-price__amount {
  font-family: var(--display);
  font-size: 16px;
  color: var(--muted);
}
.summary-price__amount strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.summary-price__note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.summary-specs {
  margin: 16px 0;
  padding: 10px 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}
.summary-specs dt {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.summary-specs dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.summary-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.summary-features li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.summary-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232563EB' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.2 6.5 11.2 12.5 5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.summary-guarantee {
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid #BFDBFE;
  font-size: 13px;
  line-height: 1.5;
  color: #1E3A8A;
}

@media (max-width: 960px) {
  .intake-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 600px) {
  .form-row,
  .look-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   STEP 2: Live Interactive Demo Stage + Accept Bar
   ========================================================= */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.demo-bar__left,
.demo-bar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.demo-bar__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}
.demo-bar__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 12px;
  font-weight: 600;
}
.demo-bar__meta strong {
  font-family: var(--display);
  font-size: 16px;
}

.demo-bar__center {
  display: inline-flex;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.vp-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.vp-btn.is-active {
  background: var(--ink);
  color: #FFFFFF;
}

.tweak-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.tweak-bar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.tweak-bar__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 4px;
}
.tweak-pill {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.tweak-pill:hover { border-color: var(--border-strong); color: var(--ink); }
.tweak-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Browser Frame */
.browser-stage {
  display: flex;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.browser-frame {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: max-width 0.35s var(--ease);
}
.browser-stage[data-viewport="tablet"] .browser-frame { max-width: 820px; }
.browser-stage[data-viewport="mobile"] .browser-frame { max-width: 400px; }

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.browser-dots {
  display: inline-flex;
  gap: 6px;
}
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}
.browser-dots span:nth-child(1) { background: #F87171; }
.browser-dots span:nth-child(2) { background: #FBBF24; }
.browser-dots span:nth-child(3) { background: #34D399; }

.browser-url {
  flex: 1;
  max-width: 440px;
  padding: 5px 12px;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.browser-iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
  background: #FFFFFF;
}
.browser-stage[data-viewport="mobile"] .browser-iframe { height: 640px; }

/* Accept & Checkout Bar */
.accept-bar {
  margin-top: 24px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: var(--surface-dark);
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.accept-bar h2 {
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 30px);
  color: #FFFFFF;
}
.accept-bar p {
  margin: 10px 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #94A3B8;
}
.accept-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #E2E8F0;
  cursor: pointer;
}
.accept-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.accept-error {
  margin: 12px 0 0 !important;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #FCA5A5 !important;
  font-size: 13.5px !important;
}

.accept-bar__cta {
  background: var(--surface-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.accept-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.accept-total > span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
}
.accept-total strong {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  color: #FFFFFF;
}
.accept-total small {
  font-size: 15px;
  font-weight: 500;
  color: #94A3B8;
}
.accept-total__sub {
  font-size: 12.5px;
  color: #94A3B8;
}
.accept-secure {
  text-align: center;
  font-size: 12px;
  color: #64748B;
}

@media (max-width: 860px) {
  .accept-bar { grid-template-columns: 1fr; }
  .browser-badge { display: none; }
}

/* ---- AI Design Gallery & Panels ---- */
.demo-panel { display: none; }
.demo-panel.is-active { display: block; animation: fade-in 0.25s var(--ease); }

.gen-loading {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(48px, 7vw, 84px) 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.gen-loading[hidden] { display: none; }
.gen-loading h2 {
  font-size: clamp(20px, 2.8vw, 26px);
  margin: 18px 0 8px;
}
.gen-loading p {
  margin: 0 auto;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 15px;
}
.gen-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.concept-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.concept-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.concept-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 16px 36px -14px rgba(37, 99, 235, 0.28), 0 0 0 2px var(--accent);
}

.concept-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-alt);
  overflow: hidden;
  cursor: zoom-in;
  border-bottom: 1px solid var(--border);
}
.concept-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}
.concept-card__media:hover img { transform: scale(1.02); }
.concept-card__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.concept-card__selected-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  display: none;
}
.concept-card.is-selected .concept-card__selected-tag { display: inline-flex; }

.concept-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.concept-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.concept-card__body h3 { font-size: 17px; }
.concept-card__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.concept-card__body p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.concept-card__actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.concept-card__actions .btn:first-child { flex: 1; }

@media (max-width: 980px) {
  .concepts-grid { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
}

/* Selected design pill & inline plan switchers inside Accept bar */
.selected-design-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 12px 0 4px !important;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #E2E8F0 !important;
  font-size: 13.5px !important;
}
.selected-design-pill strong { color: #FFFFFF; }

.accept-switchers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-dark);
}
.accept-plan-pills,
.accept-bill-pills {
  display: grid;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
}
.accept-plan-pills { grid-template-columns: repeat(3, 1fr); }
.accept-bill-pills { grid-template-columns: repeat(2, 1fr); }
.accept-plan-pills button,
.accept-bill-pills button {
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94A3B8;
  transition: all 0.2s var(--ease);
}
.accept-plan-pills button.is-active,
.accept-bill-pills button.is-active {
  background: var(--accent);
  color: #FFFFFF;
}

/* Lightbox modal */
.lightbox {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}
.lightbox__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.lightbox__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lightbox__body {
  padding: 16px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  background: var(--surface-alt);
}
.lightbox__body img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

/* ---- Iterate / Refine Card ---- */
.iterate-card {
  margin-top: 22px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.iterate-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.iterate-card__head h3 { font-size: 17.5px; }
.iterate-card__head p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.iterate-count {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}
.iterate-form {
  display: flex;
  gap: 10px;
}
.iterate-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.iterate-form input:focus {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.iterate-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.iterate-chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.iterate-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.iterate-history {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.iterate-history[hidden] { display: none; }
.iterate-history li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  font-size: 12.5px;
  font-weight: 500;
}
.iterate-history li button {
  color: #1E3A8A;
  font-size: 12px;
  opacity: 0.7;
  padding: 0 2px;
}
.iterate-history li button:hover { opacity: 1; }

@media (max-width: 640px) {
  .iterate-form { flex-direction: column; }
}

/* ---- Inline Plan Cards & Contact inside Accept Bar ---- */
.accept-bar__sub {
  margin: 10px 0 18px !important;
  font-size: 14.5px !important;
  color: #94A3B8 !important;
}
.checkout-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.cplan {
  text-align: left;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  color: #CBD5E1;
  transition: all 0.2s var(--ease);
}
.cplan:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}
.cplan.is-active {
  background: rgba(37, 99, 235, 0.18);
  border-color: var(--accent-light);
  color: #FFFFFF;
  box-shadow: 0 0 0 1px var(--accent-light);
}
.cplan__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.cplan__top strong {
  font-family: var(--display);
  font-size: 15px;
  color: #FFFFFF;
}
.cplan__top span {
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 600;
}
.cplan__top em { font-style: normal; }
.cplan small {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: #94A3B8;
}
.cplan.is-active small { color: #CBD5E1; }

.checkout-billing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.checkout-billing-row .accept-bill-pills { min-width: 240px; }
.checkout-billing-note {
  font-size: 13px;
  color: #94A3B8;
}

.checkout-contact {
  display: grid;
  gap: 10px;
}
.cfield {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cfield span {
  font-size: 12.5px;
  font-weight: 500;
  color: #CBD5E1;
}
.cfield span em { color: #F87171; font-style: normal; }
.cfield span small { color: #64748B; font-weight: 400; }
.cfield input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cfield input::placeholder { color: #64748B; }
.cfield input:focus {
  border-color: var(--accent-light);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 700px) {
  .checkout-plans { grid-template-columns: 1fr; }
}

/* ---- Scaled live miniature preview inside concept cards ---- */
.concept-card__frame-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #FFFFFF;
}
.concept-card__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 800px;
  border: 0;
  transform-origin: top left;
  transform: scale(0.325);
  pointer-events: none;
  background: #FFFFFF;
}
@media (max-width: 1200px) {
  .concept-card__iframe { transform: scale(0.28); }
}
@media (max-width: 980px) {
  .concept-card__iframe { transform: scale(0.46); }
}
@media (max-width: 520px) {
  .concept-card__iframe { transform: scale(0.31); }
}
.concept-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-alt);
  overflow: hidden;
  cursor: zoom-in;
  border-bottom: 1px solid var(--border);
}

.lightbox__iframe {
  width: 100%;
  height: min(76vh, 720px);
  border: 0;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
}

/* ---- Step 2 Continue Bar (Zero pricing!) ---- */
.continue-bar {
  margin-top: 22px;
  padding: 24px 28px;
  border-radius: var(--r-lg);
  background: var(--surface-dark);
  color: #FFFFFF;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-md);
}
.continue-bar__eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 4px;
}
.continue-bar__info strong {
  font-family: var(--display);
  font-size: 20px;
  color: #FFFFFF;
}
.continue-bar__info p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #94A3B8;
}
.continue-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.continue-bar .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.continue-bar .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ---- Step 3 Dedicated Pick Plan & Launch ---- */
.checkout-head {
  margin-bottom: 28px;
}
.checkout-head__copy {
  text-align: center;
  max-width: 680px;
  margin: 18px auto 0;
}
.checkout-head__copy h1 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
}
.checkout-head__copy p {
  margin: 10px 0 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.checkout-billing-toggle {
  margin-bottom: 28px;
}

.step3-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.s3plan {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.s3plan:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.s3plan.is-active {
  border-color: var(--accent);
  box-shadow: 0 14px 32px -14px rgba(37, 99, 235, 0.3), 0 0 0 2px var(--accent);
}
.s3plan__ribbon {
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}
.s3plan__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.s3plan__head h3 { font-size: 20px; }
.s3plan__tag {
  display: inline-block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.s3plan__price {
  font-family: var(--display);
  font-size: 14px;
  color: var(--muted);
}
.s3plan__price strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.s3plan__note {
  margin: 10px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.s3plan__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.s3plan__list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.s3plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.s3plan__pick {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.s3plan.is-active .s3plan__pick {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.final-checkout {
  background: var(--surface-dark);
  color: #FFFFFF;
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.final-checkout__summary h2 {
  margin-top: 8px;
  font-size: 24px;
  color: #FFFFFF;
}
.final-checkout__price {
  margin: 12px 0 4px;
  font-family: var(--display);
  font-size: 18px;
  color: #94A3B8;
}
.final-checkout__price strong {
  font-size: 42px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}
.final-checkout__summary p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: #94A3B8;
}
.final-checkout__design {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
  color: #CBD5E1 !important;
}
.final-checkout__design strong { color: #FFFFFF; }
.final-checkout__form {
  background: var(--surface-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 900px) {
  .step3-plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .final-checkout { grid-template-columns: 1fr; }
}

/* =========================================================
   Full-Size Interactive Studio Workspace & Categorized Refinements
   ========================================================= */
.container--studio {
  max-width: 1400px;
}

.design-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.design-tab {
  text-align: left;
  padding: 15px 18px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.design-tab:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.design-tab.is-active {
  border-color: var(--accent);
  background: #F8FBFF;
  box-shadow: 0 10px 26px -14px rgba(37, 99, 235, 0.32), 0 0 0 1px var(--accent);
}
.design-tab__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.design-tab__num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.design-tab__check {
  display: none;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
}
.design-tab.is-active .design-tab__check { display: inline-flex; }
.design-tab strong {
  display: block;
  font-family: var(--display);
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 3px;
}
.design-tab > span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.studio-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.browser-frame--tall {
  border-radius: 16px;
}
.browser-iframe--tall {
  height: 760px;
}
.studio-canvas__tip {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Sticky Right-Hand One-Click Refinement Studio */
.refine-panel {
  position: sticky;
  top: 76px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.refine-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.refine-panel__head h2 {
  font-size: 16.5px;
}
.refine-panel__head p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.refine-counter {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.refine-group {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.refine-group--last {
  padding-bottom: 0;
  border-bottom: 0;
}
.refine-group h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}
.refine-group h3 small {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rpill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.18s var(--ease);
}
.rpill:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: #FFFFFF;
}
.rpill.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
}
.rpill.is-on::before {
  content: "✓";
  font-weight: 700;
}

.polish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.polish-row:last-child { margin-bottom: 0; }
.polish-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.mini-seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.mini-seg button {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.mini-seg button.is-active {
  background: var(--ink);
  color: #FFFFFF;
}
.swatch-row--compact { gap: 6px; }

.custom-refine-form {
  display: flex;
  gap: 6px;
}
.custom-refine-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.custom-refine-form input:focus {
  border-color: var(--accent);
  background: #FFFFFF;
}

@media (max-width: 1080px) {
  .studio-workspace { grid-template-columns: 1fr; }
  .refine-panel { position: static; max-height: none; }
  .browser-iframe--tall { height: 640px; }
}
@media (max-width: 760px) {
  .design-switcher { grid-template-columns: 1fr; }
}

/* ---- Starting Point Notice Banner ---- */
.start-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  font-size: 13.5px;
  line-height: 1.45;
}
.start-notice__badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  flex-shrink: 0;
}
.start-notice p { margin: 0; flex: 1; min-width: 240px; }

/* ---- Single-Page vs Multi-Page Structure Switcher ---- */
.structure-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.structure-seg button {
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: all 0.18s var(--ease);
}
.structure-seg button:hover {
  border-color: var(--border-strong);
  background: #FFFFFF;
}
.structure-seg button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.structure-seg strong {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink);
}
.structure-seg span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}
.structure-seg button.is-active strong { color: var(--accent); }

/* Checkout textarea styling */
.cfield textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.45;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cfield textarea::placeholder { color: #64748B; }
.cfield textarea:focus {
  border-color: var(--accent-light);
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   STEP 3: Post-Checkout Success
   ========================================================= */
.success-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.success-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}
.success-card h1 {
  margin-top: 10px;
  font-size: clamp(26px, 4vw, 38px);
}
.success-card__lede {
  margin: 12px auto 28px;
  max-width: 52ch;
  font-size: 16px;
  color: var(--ink-soft);
}

.next-steps {
  text-align: left;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.next-steps li {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.next-steps strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 3px;
}
.next-steps span {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* =========================================================
   Spec-Site Sandbox Engine Additions (Step 1 / 2a / 2b)
   ========================================================= */
.source-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.source-tab {
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
  text-align: center;
}
.source-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}
.source-tab.is-active {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) {
  .source-tabs { grid-template-columns: repeat(2, 1fr); }
}

.optional-drawer {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
}
.optional-drawer summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.optional-drawer summary::-webkit-details-marker { display: none; }
.optional-drawer summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}
.optional-drawer[open] summary::after {
  content: "−";
  color: var(--accent);
}
.optional-drawer__body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Step 2A: Live Build Card */
.build-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.build-card h1 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.15;
}
.build-card__status {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 48ch;
}

.build-steps {
  width: 100%;
  max-width: 500px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
}
.build-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.build-steps li span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--muted);
}
.build-steps li.is-active {
  background: var(--accent-soft);
  border-color: #BFDBFE;
  color: #1E3A8A;
  font-weight: 600;
}
.build-steps li.is-active span {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.build-steps li.is-done {
  background: var(--success-bg);
  border-color: #A7F3D0;
  color: var(--success-text);
  font-weight: 600;
}
.build-steps li.is-done span {
  background: var(--success-text);
  border-color: var(--success-text);
  color: #FFFFFF;
}

.comeback-box {
  width: 100%;
  max-width: 500px;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
}
.comeback-box strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}
.comeback-box p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.comeback-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comeback-row code {
  flex: 1;
  min-width: 0;
  padding: 8px 11px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Step 2B: Extracted Business Profile Strip */
.profile-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.profile-strip[hidden] { display: none; }
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.profile-chip strong {
  color: var(--ink);
  font-weight: 600;
}
.profile-chip--accent {
  background: var(--accent-soft);
  border-color: #BFDBFE;
  color: #1E3A8A;
}

/* Research & Brand Direction Brief */
.research-brief {
  margin-bottom: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.research-brief[hidden] { display: none; }
.research-brief summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13.5px;
  color: var(--ink);
}
.research-brief summary::-webkit-details-marker { display: none; }
.research-brief__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.research-brief__meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.research-brief__body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.research-brief__body p { margin: 0 0 10px; }
.research-brief__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.research-brief__body li {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink);
}
