/* =================================================================
   CrispSign · Start Your Custom Sign Concept — Questionnaire Prototype
   Reuses the CrispSign brand system: red CTAs, deep navy, cream /
   parchment grounds, brass accents. No invented colors.
   ================================================================= */

:root {
  /* CrispSign brand palette (matches sandblasted product page) */
  --cream:        #f4f3ee;
  --cream-soft:   #f7f4ec;
  --parchment:    #f2eee4;
  --paper:        #fffdf8;
  --paper-warm:   #fbfaf6;
  --navy:         #1e3a5f;
  --navy-deep:    #14283f;
  --navy-ink:     #0e1e30;
  --brass:        #c9a04a;
  --brass-deep:   #a67d2a;
  --brass-soft:   #e6cd8d;
  --crispred:     #ed1c24;
  --crispred-dk:  #c91418;
  --ink:          #221a10;
  --ink-soft:     #3a2e1c;
  --muted:        #6e6149;
  --muted-dk:     #574a31;
  --rule:         #ded8ca;
  --rule-soft:    #ebe6d9;

  /* Wood / HDU tones (for option swatches only) */
  --cedar:        #8a5430;
  --cedar-light:  #b07a4c;
  --cedar-deep:   #5a3418;
  --hdu-warm:     #e8dcc7;
  --hdu-mid:      #cdbb9e;
  --hdu-deep:     #a8916c;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm:  0 1px 2px rgba(20,16,8,.08), 0 2px 6px rgba(20,16,8,.04);
  --shadow-md:  0 4px 14px rgba(20,16,8,.10), 0 12px 32px rgba(20,16,8,.06);
  --shadow-lg:  0 12px 36px rgba(20,16,8,.18), 0 40px 80px rgba(20,16,8,.10);

  --max-w:    1280px;

  --t-fast: 160ms ease;
  --t-base: 240ms cubic-bezier(.2,.7,.2,1);
}

/* -------- reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--navy-ink);
  margin: 0;
  line-height: 1.15;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 .8em; }

/* =================================================================
   HEADER
   ================================================================= */
/* Canonical CrispSign builder header (mirrors builder.html .brand-bar /
   LobbyLogo): logo + divider + title/subtitle on the left, account pill +
   round cart on the right. Uses the BeaconCarved palette tokens so the page
   stays on-brand while the structure matches the other builders. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 243, 238, 0.94);
  color: var(--navy-ink);
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.brand-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
/* Left cluster: logo + a thin divider + the title/subtitle stack. */
.brand-lead {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand-logo-v2 {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-divider {
  width: 1px;
  align-self: stretch;
  background: var(--rule);
  margin: 3px 0;
}
.brand-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.brand-eyebrow {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: rgba(14, 30, 48, 0.66);
}
.brand-eyebrow strong {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-ink);
  margin-right: 7px;
}
.brand-eyebrow .muted {
  color: rgba(14, 30, 48, 0.48);
  font-weight: 500;
  font-size: 1.25rem;
}
.brand-subtitle {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--muted);
}
/* Visually hide the wordmark while keeping it for assistive tech. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Right cluster: account state + cart control. */
.brand-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.account-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.account-state .account-who { color: var(--muted); }
.account-state .account-link {
  color: var(--navy-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: #fff;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.account-state .account-link:hover,
.account-state .account-link:focus-visible {
  background: var(--parchment);
  border-color: var(--navy-ink);
}
/* Circular cart control, matching the canonical header (white surface, navy
   glyph, red count badge). */
.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--navy-ink);
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.header-cart:hover,
.header-cart:focus-visible {
  border-color: var(--navy-ink);
  background: var(--parchment);
}
.header-cart-icon { display: block; }
.header-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--crispred);
  color: #fff;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.header-cart-count[hidden] { display: none; }

/* =================================================================
   HERO INTRO
   ================================================================= */
.intro {
  background:
    radial-gradient(900px 260px at 76% 18%, rgba(30,58,95,0.08), transparent 62%),
    linear-gradient(180deg, #fbfaf6 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--rule-soft);
}
.intro__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 76px 28px 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.intro__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-ink);
  font-weight: 800;
  margin-bottom: 18px;
}
.intro__eyebrow::before {
  content: ""; width: 28px; height: 2px;
  background: var(--crispred);
  display: inline-block;
}
.intro__title {
  font-size: clamp(3.2rem, 6vw, 5rem);
  color: var(--navy-ink);
  line-height: .95;
  letter-spacing: -0.06em;
}
.intro__title em {
  color: var(--crispred);
  font-style: normal;
  font-family: inherit;
}
.intro__lede {
  margin-top: 14px;
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 58ch;
}
.intro__meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted-dk);
}
.intro__meta strong { color: var(--navy); }

.intro__aside {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--crispred);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.intro__aside h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crispred);
  margin-bottom: 8px;
}
.video-card {
  padding: 0;
  overflow: hidden;
  border-left: 0;
}
.video-card__player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  border: 0;
}
.video-card__poster {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 18%, rgba(201,160,74,.28), transparent 32%),
    linear-gradient(135deg, #10243a, #071524 76%);
}
.video-card__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.8) 0 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 12px);
  background-size: 20px 20px, 100% 100%;
}
.video-card__sign {
  position: relative;
  width: 72%;
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 22px;
  border: 5px solid var(--brass);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent),
    #18375a;
  color: var(--paper);
  text-align: center;
  transform: perspective(500px) rotateY(-10deg);
  box-shadow:
    inset 0 -14px 28px rgba(0,0,0,.22),
    18px 24px 0 rgba(0,0,0,.16),
    0 20px 42px rgba(0,0,0,.3);
}
.video-card__sign span,
.video-card__sign strong {
  display: block;
  position: relative;
  z-index: 1;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .08em;
  text-shadow: 2px 3px 0 rgba(0,0,0,.32);
}
.video-card__sign span { font-size: 1.35rem; }
.video-card__sign strong { color: var(--brass); font-size: 1.65rem; }
.video-card__copy {
  padding: 18px 20px 20px;
}
.video-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--crispred);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.video-card__copy h4 {
  margin-bottom: 8px;
}
.video-card__copy p {
  margin: 0;
}

/* =================================================================
   MAIN LAYOUT — progress rail / form / live brief
   ================================================================= */
.app {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 28px 96px;
  display: grid;
  grid-template-columns: 220px 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* ---------- progress rail (left) ---------- */
.rail {
  position: sticky;
  top: 112px;
  background: rgba(255,253,248,.72);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: none;
}
.rail__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dk);
  margin-bottom: 12px;
}
.rail__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.rail__item {
  padding: 0;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--muted-dk);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  border: 1px solid transparent;
}
.rail__item button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.rail__item button span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--rule);
  color: var(--muted-dk);
  font-size: .72rem;
  font-weight: 800;
}
.rail__item button b {
  font-weight: 700;
}
.rail__item:hover { background: rgba(237,28,36,0.06); }
.rail__num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--rule);
  color: var(--muted-dk);
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rail__item.is-done .rail__num {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}
.rail__item.is-done button span {
  background: var(--navy);
  border-color: var(--navy);
  color: transparent;
  position: relative;
}
.rail__item.is-done button span::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: .78rem;
}
.rail__item.is-done .rail__num::before {
  content: "✓"; font-size: 0.78rem;
}
.rail__item.is-done .rail__num span { display: none; }
.rail__item.is-active {
  background: #fff;
  border-color: rgba(237,28,36,.28);
  color: var(--navy-ink);
  font-weight: 600;
}
.rail__item.is-active .rail__num {
  background: var(--crispred);
  border-color: var(--crispred);
  color: var(--paper);
}
.rail__item.is-active button span {
  background: var(--crispred);
  border-color: var(--crispred);
  color: var(--paper);
}
.rail__progress-meter {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.78rem;
  color: var(--muted-dk);
}
.rail__bar {
  height: 6px;
  background: var(--cream);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid var(--rule-soft);
}
.rail__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crispred), var(--brass));
  transition: width var(--t-base);
}

/* ---------- form (center) ---------- */
.stage {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 40px 42px;
  box-shadow: 0 20px 50px rgba(16,27,45,.07);
  min-height: 620px;
  display: flex;
  flex-direction: column;
}
.step__header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.step__counter {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crispred);
  font-weight: 700;
}
.step__title {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  margin-top: 6px;
}
.step__helper {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 22px;
}
.step__body {
  flex: 1;
}

/* form atoms */
.field-group { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-ink);
  letter-spacing: 0.02em;
}
.field__hint {
  font-size: 0.8rem;
  color: var(--muted-dk);
}
.field input[type=text],
.field input[type=email],
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-warm);
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--ink);
  transition: border var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field textarea { min-height: 92px; resize: vertical; }
.upload-box--basics {
  margin-top: 12px;
}
.paint-system {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 4px 0 16px;
}
.paint-system__card {
  display: grid;
  grid-template-columns: 166px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--rule);
  background: var(--paper-warm);
  color: var(--ink);
  text-align: left;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.paint-system__card:hover {
  transform: translateY(-1px);
  border-color: var(--brass);
  box-shadow: var(--shadow-sm);
}
.paint-system__card.is-selected {
  background: #fff;
  border-color: var(--crispred);
  box-shadow: 0 0 0 3px rgba(237,28,36,0.1), var(--shadow-sm);
}
.paint-system__logo {
  height: 76px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
.paint-system__logo--sherwin {
  background: #0057a8;
  color: #fff;
}
.paint-system__logo--oneshot {
  background: #fff200;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0,0,0,.3);
}
.paint-system__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.paint-system__logo--sherwin img {
  object-fit: contain;
}
.paint-system__logo--oneshot img {
  object-fit: contain;
}
.paint-system__copy {
  display: grid;
  gap: 4px;
}
.paint-system__copy strong {
  color: var(--navy-ink);
  font-size: 1rem;
  line-height: 1.2;
}
.paint-system__copy small {
  color: var(--muted-dk);
  font-size: .84rem;
  line-height: 1.35;
}
.paint-picker {
  position: relative;
}
.paint-picker__summary {
  min-height: 54px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper-warm);
  list-style: none;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.paint-picker__summary::-webkit-details-marker {
  display: none;
}
.paint-picker[open] .paint-picker__summary,
.paint-picker__summary:focus {
  outline: none;
  border-color: var(--crispred);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(237,28,36,0.14);
}
.paint-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(14,30,48,.18);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 2px 4px rgba(16,27,45,.08);
}
.paint-picker__selected {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-left: 2px;
}
.paint-picker__selected strong {
  color: var(--navy-ink);
  font-size: .94rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.paint-picker__selected small {
  color: var(--muted-dk);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.paint-picker__chev {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy-ink);
  font-size: 1rem;
}
.paint-picker__menu {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.paint-option {
  min-height: 54px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.paint-option:hover {
  background: var(--cream-soft);
  border-color: var(--rule-soft);
}
.paint-option.is-selected {
  background: rgba(237,28,36,.07);
  border-color: rgba(237,28,36,.24);
}
.paint-option__swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(14,30,48,.18);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45);
}
.paint-option__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.paint-option__copy strong {
  color: var(--navy-ink);
  font-size: .88rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.paint-option__copy small {
  color: var(--muted-dk);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.sherwin-helper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(0,87,168,.18);
  border-left: 4px solid #0057a8;
  border-radius: var(--radius);
  background: rgba(0,87,168,.045);
  margin-bottom: 14px;
}
.sherwin-helper div {
  display: grid;
  gap: 3px;
}
.sherwin-helper strong {
  color: var(--navy-ink);
}
.sherwin-helper span {
  color: var(--muted-dk);
  font-size: .84rem;
}
.sherwin-helper a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #0057a8;
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  white-space: nowrap;
}
.paint-mode-note {
  margin: 2px 0 12px;
}
.pricing-note {
  padding: 14px 16px;
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  background: var(--paper-warm);
  color: var(--ink-soft);
}
.pricing-note strong {
  color: var(--navy-ink);
}
.extra-colors {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  background: var(--cream-soft);
}
.extra-color-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.btn--small {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.82rem;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--crispred);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(237,28,36,0.15);
}

/* card grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.cards--wide {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 14px 16px;
  background: var(--paper-warm);
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast),
              box-shadow var(--t-fast), background var(--t-fast);
  text-align: left;
  font-family: inherit;
  color: var(--ink);
}
.card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.card.is-selected {
  border-color: var(--crispred);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(237,28,36,0.12), var(--shadow-sm);
}
.card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  background: var(--crispred);
  color: var(--paper);
  border-radius: 50%;
  font-size: 0.78rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.card__visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
}
.card__visual--icon {
  background: linear-gradient(180deg, var(--cream-soft), var(--paper));
}
.shape-card-svg,
.mount-card-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 14px rgba(16, 27, 45, .10));
}
.shape-card-svg g > *,
.mount-card-svg g > * {
  fill: var(--hdu-warm);
  stroke: var(--navy);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.shape-card-svg text,
.mount-card-svg text {
  fill: var(--navy);
  stroke: none;
  font: 700 32px 'Space Grotesk', 'Inter', sans-serif;
}
.mount-card-svg .mi-wall {
  fill: #efe8dc;
  stroke: var(--rule);
  stroke-width: 2;
}
.mount-card-svg .mi-wall-line {
  stroke: #d3c8b8;
  stroke-width: 1.5;
}
.mount-card-svg .mi-arm,
.mount-card-svg .mi-brace,
.mount-card-svg .mi-scroll,
.mount-card-svg .mi-chain,
.mount-card-svg .mi-hardware {
  fill: none;
  stroke: var(--navy-ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mount-card-svg .mi-arm {
  stroke-width: 7;
}
.mount-card-svg .mi-brace {
  stroke-width: 4;
}
.mount-card-svg .mi-scroll {
  stroke-width: 5;
}
.mount-card-svg .mi-chain,
.mount-card-svg .mi-hardware {
  stroke-width: 3;
}
.mount-card-svg .mi-bolt {
  fill: var(--brass);
  stroke: var(--navy-ink);
  stroke-width: 1.5;
}
.mount-card-svg .mi-sign {
  fill: var(--hdu-warm);
  stroke: var(--brass);
  stroke-width: 4;
}
.mount-card-svg .mi-sign-inner {
  fill: rgba(30, 58, 95, .10);
  stroke: var(--navy);
  stroke-width: 2;
}
.mount-card-svg .mi-post,
.mount-card-svg .mi-rail,
.mount-card-svg .mi-cap {
  fill: #6b4427;
  stroke: #3b251b;
  stroke-width: 2;
}
.mount-card-svg .dashed {
  fill: var(--hdu-warm);
  stroke: var(--brass);
  stroke-width: 4;
  stroke-dasharray: 7 5;
}
.mount-card-svg .mi-question {
  fill: var(--navy);
  stroke: none;
  font: 800 36px 'Space Grotesk', 'Inter', sans-serif;
}
.card__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card:has(.card__visual--photo) .card__visual {
  aspect-ratio: 4 / 3;
  background: #fff;
}
.card__visual--mounting {
  position: relative;
  background: var(--paper);
}
.card__visual--mounting img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: #fff;
}
.mounting-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(14,30,48,.84);
  color: var(--paper);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.side-visual {
  background:
    radial-gradient(circle at 50% 40%, rgba(201,160,74,.18), transparent 48%),
    var(--cream-soft);
}
.side-visual__sign {
  width: 84px;
  height: 48px;
  border-radius: 10px;
  background: var(--hdu-warm);
  border: 3px solid var(--brass);
  display: grid;
  place-items: center;
  color: var(--navy-ink);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 1.5rem;
  box-shadow: 8px 10px 0 rgba(20,40,63,.14);
}
.side-visual__sign--double {
  transform: perspective(220px) rotateY(-28deg);
  box-shadow: 12px 10px 0 rgba(20,40,63,.22);
}
.side-visual__sign--unsure {
  border-style: dashed;
  background: linear-gradient(135deg, var(--hdu-warm), var(--cedar-light));
}
.card__title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 1.04rem;
  color: var(--navy-ink);
  font-weight: 600;
  line-height: 1.2;
}
.card__sub {
  font-size: 0.82rem;
  color: var(--muted-dk);
  line-height: 1.4;
}
.card__sub--strong { color: var(--ink-soft); }

/* navigation buttons */
.step__nav {
  margin-top: auto;
  padding-top: 36px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast);
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn--primary {
  background: var(--crispred);
  color: var(--paper);
  border-color: var(--crispred);
  box-shadow: 0 12px 26px rgba(237,28,36,0.18);
}
.btn--primary:hover:not(:disabled) {
  background: var(--crispred-dk);
  border-color: var(--crispred-dk);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(237,28,36,0.24);
}
/* Canonical disabled treatment (mirrors the builder's .cta-primary[disabled]):
   a solid muted fill rather than a washed-out red, so the active CTA always
   reads as the full red/white primary and "not yet" is unmistakably inactive. */
.btn--primary:disabled {
  background: var(--muted-dk);
  border-color: var(--muted-dk);
  color: var(--paper);
  box-shadow: none;
  opacity: 1;
}
.btn--ghost {
  background: rgba(255,255,255,.62);
  color: var(--navy-ink);
  border-color: rgba(14,30,48,.18);
}
.btn--ghost:hover {
  background: var(--navy-ink);
  border-color: var(--navy-ink);
  color: var(--paper);
}
.btn--text {
  background: transparent;
  color: var(--muted-dk);
  border: none;
  padding: 12px 14px;
}
.btn--text:hover { color: var(--navy-ink); }
.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ---------- live brief (right) ---------- */
.brief {
  position: sticky;
  top: 112px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-ink) 100%);
  color: var(--paper);
  border-radius: 24px;
  padding: 22px 22px 26px;
  box-shadow: 0 24px 60px rgba(16,27,45,.16);
  border: 1px solid rgba(201,160,74,0.25);
  max-height: calc(100vh - 120px);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.brief__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201,160,74,0.3);
  margin-bottom: 14px;
}
.brief__head h3 {
  color: var(--paper);
  font-size: 1.05rem;
}
.brief__head .pill {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(237,28,36,0.18);
  color: #ffb8bc;
  border: 1px solid rgba(237,28,36,0.5);
}
.brief__list {
  list-style: none; margin: 0; padding: 0;
  overflow-y: auto;
  flex: 1;
  display: flex; flex-direction: column; gap: 12px;
  padding-right: 4px;
}
.brief__list::-webkit-scrollbar { width: 6px; }
.brief__list::-webkit-scrollbar-thumb {
  background: rgba(201,160,74,0.35);
  border-radius: 3px;
}
.brief__row {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(201,160,74,0.18);
}
.brief__row:last-child { border-bottom: none; }
.brief__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-soft);
  font-weight: 600;
}
.brief__value {
  font-size: 0.92rem;
  color: var(--paper);
  font-weight: 500;
}
.brief__value--empty {
  color: rgba(244,235,214,0.45);
  font-style: italic;
  font-weight: 400;
}
.brief__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(201,160,74,0.3);
  font-size: 0.78rem;
  color: rgba(244,235,214,0.7);
  line-height: 1.5;
}

/* =================================================================
   STEP 4-5 VISUAL CARDS — material & texture swatches
   ================================================================= */
.swatch {
  width: 100%; height: 100%;
  display: block;
  position: relative;
}
.swatch--hdu {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.6), transparent 60%),
    repeating-radial-gradient(circle at 50% 50%, var(--hdu-warm) 0 2px, var(--hdu-mid) 2px 4px),
    var(--hdu-warm);
}
.swatch--cedar {
  background:
    repeating-linear-gradient(92deg,
      rgba(90,52,24,0.35) 0 2px,
      transparent 2px 9px),
    repeating-linear-gradient(92deg,
      var(--cedar-light) 0 14px,
      var(--cedar) 14px 24px);
}
.swatch--pebble {
  background:
    radial-gradient(circle at 20% 30%, var(--hdu-deep) 0 2px, transparent 2px),
    radial-gradient(circle at 65% 60%, var(--hdu-deep) 0 1.5px, transparent 2px),
    radial-gradient(circle at 40% 80%, var(--hdu-deep) 0 1.5px, transparent 2px),
    radial-gradient(circle at 80% 25%, var(--hdu-deep) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 60%, var(--hdu-deep) 0 1.5px, transparent 2px),
    var(--hdu-warm);
  background-size: 24px 24px;
}
.swatch--woodgrain {
  background:
    repeating-linear-gradient(86deg,
      transparent 0 10px,
      rgba(90,52,24,0.35) 10px 11px,
      transparent 11px 16px),
    linear-gradient(90deg, var(--cedar-light), var(--cedar));
}
.swatch--blasted {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.08) 0 1px,
      transparent 1px 5px),
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0.05) 0 1px,
      transparent 1px 4px),
    var(--hdu-mid);
}
.swatch--smooth {
  background: linear-gradient(160deg, var(--hdu-warm), var(--hdu-mid));
}
.swatch--routed {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0,0,0,0.18) 100%),
    var(--hdu-warm);
}
.swatch--distressed {
  background:
    radial-gradient(circle at 25% 30%, rgba(0,0,0,0.18) 0 12px, transparent 14px),
    radial-gradient(circle at 75% 70%, rgba(0,0,0,0.14) 0 10px, transparent 12px),
    repeating-linear-gradient(88deg,
      transparent 0 8px,
      rgba(90,52,24,0.25) 8px 9px),
    var(--cedar-light);
}

/* shape SVG cards (icon-style) */
.shape-svg {
  width: 90px; height: 56px;
}
.shape-svg path,
.shape-svg rect,
.shape-svg ellipse,
.shape-svg polygon {
  fill: var(--cream);
  stroke: var(--navy);
  stroke-width: 2;
}

/* element-level One Shot-style paint selectors */
.color-builder {
  display: grid;
  gap: 16px;
}
.paint-field {
  display: grid;
  gap: 8px;
}
.paint-select-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
}
.paint-swatch {
  width: 54px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45);
}
.paint-select-row select {
  min-height: 46px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}
.color-preview {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  background: var(--cream-soft);
}
.mini-sign {
  min-height: 120px;
  border-radius: 12px;
  border: 6px solid var(--border);
  background: var(--field);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.16), 0 10px 22px rgba(0,0,0,.12);
}
.mini-sign__text {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .06em;
  text-shadow: 2px 3px 0 rgba(0,0,0,.22);
}
.color-preview p {
  margin: 0;
  color: var(--muted-dk);
  font-size: .92rem;
}

/* depth/lettering swatch */
.depth {
  width: 100%; height: 100%;
  background: var(--hdu-warm);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--navy-ink);
  position: relative;
  overflow: hidden;
}
.depth.is-raised { text-shadow: 1px 1px 0 var(--brass), 2px 2px 0 var(--brass-deep), 3px 3px 2px rgba(0,0,0,0.25); }
.depth.is-recessed {
  text-shadow:
    inset 0 0 0 var(--ink),
    -1px -1px 0 rgba(0,0,0,0.5),
    0 1px 0 rgba(255,255,255,0.5);
  color: var(--cedar-deep);
}
.depth.is-graphic::before {
  content: ""; position: absolute;
  width: 22px; height: 22px;
  background: var(--brass);
  border-radius: 50%;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  box-shadow: 1px 1px 0 var(--brass-deep), 2px 2px 0 rgba(0,0,0,0.2);
}
.depth.is-border {
  border: 4px solid var(--brass);
  outline: 2px solid var(--brass-deep);
  outline-offset: -8px;
}
.depth.is-bg {
  background:
    repeating-linear-gradient(45deg,
      rgba(0,0,0,0.07) 0 2px,
      transparent 2px 6px),
    var(--hdu-mid);
}

/* shape-aware border previews */
.border-shape {
  width: 112px;
  height: 78px;
  overflow: visible;
}
.border-shape__fill > * {
  fill: var(--hdu-warm);
  stroke: rgba(30,58,95,.24);
  stroke-width: 1;
}
.border-shape__line > *,
.border-shape__heavy * {
  fill: transparent;
  stroke: var(--brass);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}
.border-shape--inset .border-shape__line > * { stroke-width: 3; }
.border-shape--raised .border-shape__line > * {
  stroke-width: 5;
  filter: drop-shadow(2px 2px 0 var(--brass-deep));
}
.border-shape--recessed .border-shape__line > * {
  stroke: var(--cedar-deep);
  stroke-width: 4;
  opacity: .9;
}
.border-shape__light * {
  fill: transparent;
  stroke: var(--cedar-deep);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.border-shape--none .border-shape__line { display: none; }

/* =================================================================
   DESIGN PATH STEP
   ================================================================= */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.path-card {
  position: relative;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  padding: 22px 20px 22px;
  background: var(--paper-warm);
  cursor: pointer;
  transition: var(--t-base);
  display: flex; flex-direction: column; gap: 10px;
}
.path-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.path-card.is-selected {
  border-color: var(--crispred);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(237,28,36,0.14), var(--shadow-md);
}
.path-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 14px; right: 14px;
  width: 26px; height: 26px;
  background: var(--crispred); color: var(--paper);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.86rem;
}
.path-card__pin {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.path-card__pin::before {
  content: ""; width: 18px; height: 2px; background: var(--brass);
}
.path-card h3 {
  font-size: 1.2rem;
}
.path-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
}
.path-card__price {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-size: 0.85rem;
  color: var(--muted-dk);
}
.path-card__price strong { color: var(--navy); }
.path-card ul {
  margin: 4px 0; padding: 0 0 0 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.path-card ul li { margin-bottom: 2px; }

/* =================================================================
   SUMMARY STEP
   ================================================================= */
.summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1700px) {
  .summary { display: grid; grid-template-columns: 1.4fr 1fr; }
}
.summary__brief {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--brass);
  border-radius: 12px;
  padding: 22px 24px;
}
.summary__brief h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--navy-ink);
}
.summary__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule-soft);
  font-size: 0.93rem;
}
.summary__row:last-child { border-bottom: none; }
.summary__row dt {
  color: var(--muted-dk);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
  text-transform: uppercase;
  padding-top: 2px;
}
.summary__row dd {
  margin: 0;
  color: var(--ink);
}
.summary__next {
  background: linear-gradient(170deg, var(--navy-deep), var(--navy-ink));
  color: var(--paper);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(201,160,74,0.3);
  display: flex; flex-direction: column; gap: 14px;
}
.summary__next h3 {
  color: var(--paper);
  font-size: 1.15rem;
}
.summary__next p { color: rgba(244,235,214,0.85); font-size: 0.92rem; }
.summary__next .btn--primary {
  width: 100%;
}
.summary__next .secondary-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.summary__next .secondary-actions button {
  background: transparent;
  color: var(--brass-soft);
  border: 1px solid rgba(201,160,74,0.45);
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.summary__next .secondary-actions button:hover {
  background: rgba(201,160,74,0.12);
  color: var(--paper);
}

/* =================================================================
   MODAL
   ================================================================= */
.modal {
  position: fixed; inset: 0;
  background: rgba(14,30,48,0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal.is-open { display: flex; animation: fadeIn 200ms ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__card {
  background: var(--paper);
  border-radius: 16px;
  max-width: 480px; width: 100%;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--crispred);
  box-shadow: var(--shadow-lg);
  animation: pop 240ms cubic-bezier(.2,.7,.2,1);
}
@keyframes pop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--crispred);
  color: var(--paper);
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.modal__card h2 { margin-bottom: 8px; }
.modal__card p { color: var(--ink-soft); }
.modal__close {
  margin-top: 18px;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .rail {
    position: relative; top: 0;
    display: flex; gap: 6px; overflow-x: auto;
    padding: 12px;
  }
  .rail__title { display: none; }
  .rail__list { flex-direction: row; flex-wrap: nowrap; gap: 4px; }
  .rail__item { white-space: nowrap; padding: 6px 10px; font-size: 0.8rem; }
  .rail__progress-meter { display: none; }
  .brief { position: relative; top: 0; max-height: none; }
  .intro__inner { grid-template-columns: 1fr; gap: 22px; }
  .summary { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-bar {
    gap: 10px 12px;
    padding: 12px 18px;
  }
  .brand-lead { gap: 12px; min-width: 0; }
  .brand-logo-v2 { height: 40px; }
  .brand-subtitle { display: none; }
  .brand-eyebrow { font-size: 1.25rem; }
  .brand-eyebrow .muted { font-size: 1.05rem; }
  .intro__inner { padding: 28px 18px 22px; }
  .app { padding: 18px 14px 60px; }
  .stage { padding: 22px 18px; border-radius: 14px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
}
