/* ============================================================
   SitePitch design wizard shell
   Mobile-first, config-driven, no images. The audience is a
   50-70 year old business owner on a phone, walked through
   live. Big type, big targets, one decision per screen.
   Shell voice: warm paper, deep ink, Fraunces display,
   Atkinson Hyperlegible body (designed for maximum legibility).
   ============================================================ */

:root {
  --paper: #f3f0e9;
  --card: #ffffff;
  --ink: #1d1b16;
  --soft: #5d5749;
  --line: #e2dccf;
  --line-strong: #b9b19e;
  --green: #9E3340;        /* BC oxblood (was green) */
  --green-deep: #7D2A35;   /* BC dark oxblood */
  --green-tint: #f4e6e8;   /* BC soft oxblood wash */
  --danger: #9c3225;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow:
    0 1px 2px rgba(43, 36, 24, 0.05),
    0 16px 40px -22px rgba(43, 36, 24, 0.28);
  --shadow-lift:
    0 2px 4px rgba(43, 36, 24, 0.06),
    0 24px 56px -24px rgba(43, 36, 24, 0.34);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: "Fraunces", serif;
  --font-body: "Atkinson Hyperlegible", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 50% -12%, #faf8f3 0%, transparent 60%),
    var(--paper);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint paper grain, fixed and inert */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.31 0 0 0 0 0.24 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header: wordmark + unmissable progress ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 240, 233, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: calc(12px + env(safe-area-inset-top)) 20px 14px;
}

.top-row {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.step-pill {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-tint);
  border: 1px solid rgba(28, 106, 76, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}

.prog {
  max-width: 620px;
  margin: 12px auto 0;
  display: flex;
  gap: 6px;
}

.prog .seg {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: #e7e1d4;
  box-shadow: inset 0 0 0 1px rgba(43, 36, 24, 0.08);
  position: relative;
  transition: background 0.4s var(--ease);
}

.prog .seg.done { background: var(--green); box-shadow: none; }

.prog .seg.current::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}

/* ---------- screen ---------- */

.screen-host {
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 1;
}

.screen {
  max-width: 620px;
  margin: 0 auto;
  padding: 30px 20px 140px;
}

.screen.entering { animation: screenIn 0.45s var(--ease) both; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .screen.entering { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 10px;
}

h1.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 8vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  outline: none;
}

.lede {
  font-size: 18px;
  color: var(--soft);
  max-width: 54ch;
  margin-bottom: 26px;
}

/* "already done for you" banner on steps 1-2 */
.done-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-tint);
  border: 1px solid rgba(28, 106, 76, 0.3);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}
.done-banner svg { flex: 0 0 22px; }

/* ---------- cards (generic) ---------- */

.stack { display: flex; flex-direction: column; gap: 16px; }

.card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
}

.card:active { transform: scale(0.99); }

.card:focus-visible,
.btn:focus-visible,
.mini-btn:focus-visible,
input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.card.selected {
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.card .check-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -4px rgba(20, 82, 58, 0.6);
}
.card.selected .check-badge { display: flex; }

.card-meta { padding: 16px 18px 18px; }
.card-meta h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card-meta p { font-size: 16px; color: var(--soft); margin-top: 4px; }

/* ---------- step 1: info rows ---------- */

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; }

.info-main { flex: 1; min-width: 0; }

.info-label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 2px;
}

.info-value {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.info-value .row-check {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 7px;
}

.mini-btn {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 46px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mini-btn:active { background: #f0ece2; }
.mini-btn.danger { color: var(--danger); border-color: #dcc6bd; }

.hours-list { width: 100%; }
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  padding: 5px 0;
}
.hours-row .d { font-weight: 700; }
.hours-row .h { color: var(--soft); font-weight: 400; }
.hours-row .h.closed { color: var(--danger); }

/* inline edit */
.edit-wrap { width: 100%; }
.edit-field { margin-bottom: 10px; }
.edit-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 5px;
}
.edit-input {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  background: #faf8f3;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  min-height: 52px;
}
.edit-actions { display: flex; gap: 10px; margin-top: 12px; }
.edit-actions .mini-btn.save {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- step 2: services ---------- */

.svc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 15px 18px;
}
.svc-name { flex: 1; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.svc-actions { display: flex; gap: 8px; }

.add-row {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 15px;
  min-height: 56px;
  cursor: pointer;
}
.add-row:active { background: #efebe0; }

.swatch-band { display: flex; height: 14px; }
.swatch-band span {
  flex: 1;
  box-shadow: inset 0 0 0 1px rgba(43, 36, 24, 0.12);
}

/* ---------- step 4: palette cards ---------- */

.pal-mock {
  background: var(--p-bg);
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}

.pal-mock .pm-card {
  flex: 1;
  background: var(--p-surface);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.25);
}
.pal-mock .pm-aa {
  font-size: 22px;
  font-weight: 800;
  color: var(--p-ink);
  line-height: 1;
}
.pal-mock .pm-line {
  margin-top: 7px;
  height: 6px;
  border-radius: 3px;
  background: var(--p-soft);
  opacity: 0.55;
  width: 70%;
}
.pal-mock .pm-btn {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--p-accent-ink);
  background: var(--p-accent);
  border-radius: 999px;
  padding: 9px 16px;
}

/* ---------- step 5: type cards ---------- */

.type-sample {
  padding: 22px 18px 6px;
}
.type-sample .ts-name {
  font-family: var(--p-head);
  font-weight: var(--p-head-weight, 700);
  font-size: clamp(25px, 6.6vw, 31px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.type-sample .ts-line {
  font-family: var(--p-body);
  font-size: 16.5px;
  color: var(--soft);
  margin-top: 8px;
}

/* ---------- step 6: either/or ---------- */

.big-choice { padding: 22px 20px; }
.big-choice h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.big-choice p { font-size: 16.5px; color: var(--soft); margin-top: 5px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 20px;
}

.panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.picks { list-style: none; }
.picks li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17.5px;
}
.picks li:last-child { border-bottom: none; }
.picks .pk-label { color: var(--soft); flex: 0 0 112px; font-size: 15.5px; }
.picks .pk-value { font-weight: 700; }

.price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-line .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.01em;
}
.price-line .for { font-size: 17px; color: var(--soft); }
.price-note { font-size: 16.5px; color: var(--soft); margin-top: 6px; }
.price-terms {
  font-size: 17px;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.covers { list-style: none; margin-top: 12px; }
.covers li,
.included li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 17px;
}
.covers li::before,
.included li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.included { list-style: none; }

.submit-btn {
  width: 100%;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 18px 24px;
  min-height: 60px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), opacity 0.2s;
}
.submit-btn:active { transform: scale(0.99); }
.submit-btn[disabled] { opacity: 0.6; cursor: default; }
.submit-btn.saved { background: var(--green); }

.submit-note {
  font-size: 15.5px;
  color: var(--soft);
  text-align: center;
  margin-top: 12px;
}

.submit-error {
  display: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--danger);
  text-align: center;
  margin-top: 12px;
}
.submit-error.show { display: block; }

.credit {
  text-align: center;
  font-size: 14.5px;
  color: var(--soft);
  margin-top: 26px;
}

.restart {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--soft);
  text-decoration: underline;
  cursor: pointer;
  padding: 10px;
}

/* ---------- footer nav ---------- */

.foot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(243, 240, 233, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
}

.foot-inner,
.foot { display: flex; gap: 12px; }
.foot { justify-content: center; }

.btn {
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  border-radius: 999px;
  padding: 16px 26px;
  min-height: 60px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), opacity 0.2s, background 0.2s;
  border: 2px solid transparent;
}
.btn:active { transform: scale(0.98); }

.btn.primary {
  flex: 1;
  max-width: 420px;
  background: var(--ink);
  color: #fff;
}
.btn.primary[disabled] {
  background: #c9c3b4;
  color: #5d5749;
  cursor: default;
}

.btn.ghost {
  flex: 0 0 auto;
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.ghost[disabled] { opacity: 0.35; cursor: default; }

.noscript {
  max-width: 620px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 18px;
}

/* slightly wider screens: two-up cards where it helps */
@media (min-width: 560px) {
  .stack.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* Step 5 write-in (Dan 2026-06-12) + step 6 ordering interaction */
.write-in { margin-top: 18px; }
.write-in-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted, #555);
  margin-bottom: 8px;
}
.write-in-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 17px;
  padding: 14px 16px;
  border: 2px solid var(--line, #d8d4cc);
  border-radius: 10px;
  background: var(--card, #fff);
}
.write-in-input:focus { outline: 3px solid var(--accent, #2b6); outline-offset: 1px; }

/* v1.2 (Dan 2026-06-12): multiline write-in (step 1 info note) */
.write-in-area {
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 92px;
}

/* v1.2: the colors escape hatch + the extra-page option */
.color-other-wrap { margin-top: 16px; }
.extra-page { margin-top: 28px; }
.extra-page .write-in { margin-top: 14px; }
.extra-page-note {
  font-size: 14.5px;
  color: var(--soft);
  margin-top: 10px;
}

/* v1.2: the logo step (upload / design / skip) */
.logo-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.logo-thumb-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 14px;
}
.logo-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.logo-thumb-meta { min-width: 0; }
.logo-thumb-meta .logo-file-name {
  font-weight: 700;
  font-size: 15.5px;
  overflow-wrap: anywhere;
}
.logo-thumb-meta p { font-size: 15px; color: var(--soft); }
.logo-thumb-meta .logo-note { color: var(--green-deep); font-weight: 700; }

/* ============================================================
   V2 SHELL (Dan 2026-06-12): the old wizard's layout paradigm,
   the new wizard's content system. Left work rail, persistent
   live preview on the right, desktop/mobile preview toggle.
   Below 980px the preview becomes a full-screen sheet behind
   the "See your site" button so the 7-step flow stays
   phone-first and untouched.
   ============================================================ */

/* ---------- app shell: two columns from 980px up ---------- */

.preview { display: none; }

@media (min-width: 980px) {
  body { overflow: hidden; }

  .app {
    position: fixed;
    inset: 0;
    display: flex;
  }

  .work {
    flex: 0 0 clamp(430px, 41%, 600px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    position: relative;
    z-index: 2;
  }

  .top { position: static; }

  .screen-host {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .screen { padding: 28px 26px 48px; }

  .foot {
    position: static;
    flex: 0 0 auto;
    padding: 14px 20px;
  }

  .preview {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    position: relative;
    background: #15130e;
  }

  .preview-fab { display: none; }
  .pv-close { display: none; }
}

/* ---------- preview chrome ---------- */

.preview-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(21, 19, 14, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 4;
}

.pv-url {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #d9d4c7;
  white-space: nowrap;
  overflow: hidden;
}
.pv-url b { color: #fff; font-weight: 700; }
.pv-url .lblink {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58b88a;
  animation: lblink 1.8s infinite;
}
@keyframes lblink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .pv-url .lblink { animation: none; } }

.pv-toggle {
  flex: 0 0 auto;
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px;
}
.pv-toggle button {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: #b9b3a4;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 38px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.pv-toggle button svg { width: 15px; height: 15px; }
.pv-toggle button.on { background: #f3f0e9; color: #1d1b16; }

.pv-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #f3f0e9;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pv-close svg { width: 18px; height: 18px; }

.preview-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #15130e;
}

.preview-frame {
  background: #fff;
  min-height: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

/* the embedded one-off demo fills the frame; it inherits the frame width,
   so the desktop/mobile toggle on .preview-stage drives its width too. */
.demo-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--paper, #fff);
}

/* iframe-fail fallback (no sp-ready within 6s, or an iframe error) */
.preview-fallback {
  margin: auto;
  padding: 32px 24px;
  max-width: 320px;
  text-align: center;
  color: #f3f0e9;
}
.preview-fallback p { font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
.preview-fallback-link {
  display: inline-block;
  font-weight: 700;
  color: #fff;
  background: var(--green-deep, #14523a);
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
}

/* mobile device frame: the customer site rendered at phone width */
.preview-stage.is-mobile {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 34px 20px 44px;
  background:
    radial-gradient(800px 500px at 50% -10%, #262218 0%, transparent 60%),
    #15130e;
}
.preview-stage.is-mobile .preview-frame {
  flex: 0 0 384px;
  width: 384px;
  min-height: 0;
  border-radius: 42px;
  border: 11px solid #060503;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ---------- phone-width preview sheet (<980px) ---------- */

@media (max-width: 979.98px) {
  .preview {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #15130e;
    transform: translateY(102%);
    transition: transform 0.32s var(--ease);
    visibility: hidden;
  }
  .preview.open { transform: translateY(0); visibility: visible; }

  .preview-bar { padding-top: calc(10px + env(safe-area-inset-top)); }
  .pv-toggle { display: none; }

  .preview-fab {
    position: fixed;
    right: 16px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 35;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--green-deep);
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    min-height: 52px;
    box-shadow: 0 14px 30px -10px rgba(20, 82, 58, 0.65);
    cursor: pointer;
  }

  /* the sheet always shows the phone rendering at phone width */
  .preview-stage.is-mobile { padding: 0; display: block; }
  .preview-stage.is-mobile .preview-frame {
    width: 100%;
    flex: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ---- v1.3 about-step sub-sections (tone inline + team members) ---- */

/* shared section divider inside the About step */
.about-tone-section,
.about-team-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* sub-section label (the tone question) */
.about-subsection-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

/* team toggle row: checkbox + label inline */
.team-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.team-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}

.team-toggle-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.4;
}

.team-toggle-label span { display: block; }

/* helper note below the team textarea */
.team-photo-note {
  font-size: 14px;
  color: var(--soft);
  margin-top: 10px;
  font-style: italic;
}

/* team write-in: a bit more vertical room than default */
.about-team-section .write-in { margin-top: 16px; }
.about-team-section .write-in-area { min-height: 90px; }

/* ---- v4 design step: "this is yours" + capture-only escape hatch ---- */
.design-here { margin-top: 4px; }
.escape-toggle-wrap { margin-top: 16px; }
.escape-panel {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}
.escape-gallery-label { font-size: 15px; font-weight: 600; color: var(--soft); margin: 0; }
.escape-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery-card {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 2px solid var(--line, #d4d4d8);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.gallery-card.on { border-color: var(--green); }
.gallery-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.gc-label { font-weight: 700; }
.gc-note { font-size: 13px; opacity: 0.7; }

/* ---- v4 sections step: on/off toggles ---- */
.section-toggles {
  display: grid;
  gap: 10px;
}
.section-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

/* ---- Burrow Consulting brand credit (chrome only; the preview stays the prospect's brand) ---- */
.bc-credit{display:flex;align-items:center;gap:9px;padding:0 0 12px;margin:0 0 12px;border-bottom:1px solid var(--line);}
.bc-credit .bcm{font-family:"Playfair Display",Georgia,serif;font-weight:600;font-size:21px;letter-spacing:-0.03em;color:#9E3340;line-height:1;}
.bc-credit .bcw{font-family:"Playfair Display",Georgia,serif;font-weight:500;font-size:10.5px;letter-spacing:0.17em;text-transform:uppercase;color:#2A2F36;}
.bc-credit .bcdot{width:3px;height:3px;border-radius:50%;background:var(--line-strong);}
.bc-credit .bctag{font-family:var(--font-body);font-size:10.5px;letter-spacing:.02em;color:var(--soft);}
