/* Quote flow specific styles */
.quote-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 56px) 100px;
}

.quote-progress {
  margin-bottom: 36px;
}
.progress-track {
  height: 4px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  border-radius: 999px;
  width: 16.66%;
  transition: width .4s var(--ease);
}
.progress-steps {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}
.progress-steps .ps {
  transition: color .25s var(--ease);
}
.progress-steps .ps.active { color: var(--cyan); }
.progress-steps .ps.done { color: var(--ink-2); }

.quote-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
/* Grid items default to min-width:auto = intrinsic content width, which
   makes the column expand to fit nowrap children and overflows the viewport
   on mobile. min-width:0 forces them to honor the column's allotted width
   and lets the inner content wrap. */
.quote-grid > * { min-width: 0; }

.quote-steps {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  min-height: 540px;
  min-width: 0;
}

.qstep {
  display: none;
  animation: stepIn .35s var(--ease);
}
.qstep.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.qstep h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 14px 0 12px;
}
.qsub { color: var(--ink-2); margin: 0 0 28px; font-size: 15px; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.option-grid.stack { grid-template-columns: 1fr; }

.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  border-radius: var(--rad-sm);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.opt:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.opt.selected {
  border-color: var(--cyan);
  background: rgba(0, 217, 255, 0.07);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 30px rgba(0, 217, 255, 0.15);
}
.opt strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
}
.opt small { color: var(--ink-3); font-size: 13px; }
.opt-icon { font-size: 24px; margin-bottom: 4px; }

.opt.pkg { padding: 22px 24px; }
.pkg-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 22px;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.pkg-ribbon {
  position: absolute; top: 14px; right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(0, 217, 255, 0.15); color: var(--cyan);
}

.addon-block {
  margin-bottom: 24px;
}
.pkg-quick-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.06) 0%, rgba(255, 184, 107, 0.04) 100%);
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 12px;
}
.pkg-quick-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  flex-shrink: 0;
}
.pkg-quick-buttons {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}
.pkg-quick-btn {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pkg-quick-btn:hover {
  border-color: rgba(0, 217, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
.pkg-quick-btn.selected {
  background: rgba(0, 217, 255, 0.12);
  border-color: var(--cyan);
}
.pkg-quick-btn strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  /* Was nowrap+ellipsis which truncated "Cinematic Walkthrough" to "Cinematic
     Wal…" on desktop. Allow wrapping (mobile already overrides this). */
  line-height: 1.2;
  word-wrap: break-word;
}
.pkg-quick-btn.selected strong { color: var(--cyan); }
.pkg-quick-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-2);
}
@media (max-width: 720px) {
  .pkg-quick-switch { flex-direction: column; align-items: stretch; gap: 10px; }
  /* Stack the 3 plan buttons vertically on mobile so long names like
     "Cinematic Walkthrough" never overflow. Each row: name on left,
     price on right. */
  .pkg-quick-buttons { flex-direction: column; gap: 8px; flex-wrap: nowrap; }
  .pkg-quick-btn {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    gap: 12px;
    text-align: left;
  }
  .pkg-quick-btn strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    flex: 1;
    min-width: 0;
  }
  .pkg-quick-price { flex-shrink: 0; }
}

/* "What's included" panel under the plan selector — content for the
   currently-highlighted package, rendered by quote.js renderPkgIncludes(). */
.pkg-includes {
  margin-top: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.05), rgba(0, 217, 255, 0.01));
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: 12px;
  transition: opacity .25s var(--ease);
}
.pkg-includes-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 217, 255, 0.15);
}
.pkg-includes-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.pkg-includes-tagline {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.pkg-includes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pkg-includes-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
}
.pkg-includes-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}
.pkg-includes.fade { opacity: 0.3; }

/* Instruction prompt that sits between the "What's included" panel and the
   4 project-type tiles. Doubles as the visual break the panel needed. */
.option-grid-prompt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 16px;
  padding: 14px 18px;
  background: rgba(255, 184, 107, 0.06);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
}
.opp-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  flex-shrink: 0;
}
.opp-text {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.4;
}
.opp-text strong { color: var(--cyan); font-weight: 600; }

@media (max-width: 720px) {
  .option-grid-prompt {
    margin-top: 28px;
    padding: 14px 16px;
  }
  .opp-text { font-size: 14px; }
}

/* ===========================================================
   🧪 TEST MODE TOGGLE — REMOVE BEFORE LAUNCH
   Delete this block when Billy says "remove the TEST button".
   =========================================================== */
.test-mode-toggle {
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(255, 107, 107, 0.06);
  border: 1px dashed rgba(255, 107, 107, 0.45);
  border-radius: 8px;
}
.test-mode-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}
.test-mode-label input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #ff6b6b;
  cursor: pointer;
}
.test-mode-pill {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.test-mode-pill strong {
  color: #ff6b6b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.test-mode-blurb {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.4;
}
.test-mode-status {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: rgba(255, 107, 107, 0.12);
  border-left: 3px solid #ff6b6b;
  border-radius: 4px;
  color: #ffb86b;
  font-size: 13.5px;
}
.test-mode-status strong { color: #ff8b6b; font-weight: 700; }
/* === END TEST MODE TOGGLE === */

.upgrade-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(255, 184, 107, 0.05) 100%);
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 12px;
}
.upgrade-callout-text { flex: 1; min-width: 0; }
.upgrade-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}
.upgrade-callout h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.01em;
}
.upgrade-callout p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.upgrade-callout .primary-btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 600px) {
  .upgrade-callout { flex-direction: column; align-items: stretch; gap: 12px; }
  .upgrade-callout .primary-btn { width: 100%; }
}
.addon-block h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px; font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.check {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  cursor: pointer;
  font-size: 14.5px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.check:hover { border-color: var(--line-2); background: rgba(255,255,255,0.04); }
.check input { accent-color: var(--cyan); width: 18px; height: 18px; cursor: pointer; }
.check span { flex: 1; }
.check em {
  font-style: normal; color: var(--cyan); font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.check:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(0, 217, 255, 0.06);
}

.scene-counter {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  flex-wrap: wrap;
}
.counter-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.counter-btn:hover { background: rgba(0, 217, 255, 0.1); border-color: var(--cyan); }
.counter-value {
  min-width: 40px; text-align: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px; font-weight: 600;
}
.counter-hint { color: var(--ink-3); font-size: 13px; flex: 1; min-width: 220px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field span {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); font-weight: 500;
}
.field input, .field textarea {
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  color: var(--ink);
  font-family: inherit;
  /* 16px MINIMUM — iOS Safari auto-zooms when a focused input has a font
     smaller than 16px. Setting to 16px universally prevents that jolt. */
  font-size: 16px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
}
.field input[type="file"] { padding: 8px; cursor: pointer; }
.hint { color: var(--ink-4); font-size: 12px; }

.review-box {
  padding: 20px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line-2);
  border-radius: var(--rad-sm);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.review-box .rb-row {
  display: flex; justify-content: space-between;
  gap: 16px; /* long values (e.g. the Vision note) were colliding with the label */
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.review-box .rb-row:last-child { border: 0; }
.review-box .rb-key { color: var(--ink-3); flex-shrink: 0; }
.review-box .rb-val { color: var(--ink); font-weight: 500; }
.review-box .rb-divider { padding: 8px 0; color: var(--cyan); font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.review-box .rb-row-discount .rb-key,
.review-box .rb-row-discount .rb-val { color: #6bdc8a; }

/* Step validation banner — persistent + high contrast so less tech-savvy
   visitors always see WHY Continue isn't advancing (2026-07-08 UX pass). */
.q-error {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 139, 107, 0.55);
  border-left: 4px solid #ff8b6b;
  border-radius: 10px;
  background: rgba(255, 139, 107, 0.12);
  color: #ffb39d;
  font-size: 16px;
  line-height: 1.55;
}
.q-error[hidden] { display: none; }
.field-invalid input {
  border-color: #ff8b6b !important;
  box-shadow: 0 0 0 3px rgba(255, 139, 107, 0.22);
}
.field-invalid > span { color: #ff8b6b; }
.req-note {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 11px;
  color: var(--cyan);
}

/* Promo code entry on review step */
.rb-promo-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rb-promo-toggle {
  background: none;
  border: none;
  color: var(--cyan);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
}
.rb-promo-toggle:hover { color: var(--amber); }
.rb-promo-input {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.rb-promo-input input {
  flex: 1;
  min-width: 0; /* let the input shrink so the Apply button never overflows the row */
  padding: 10px 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line-2);
  border-radius: var(--rad-sm);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rb-promo-input input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,217,255,0.18);
}
.rb-promo-input button {
  flex-shrink: 0; /* keep the button intact; the input absorbs the shrink */
  padding: 10px 18px;
  /* Sitewide button gradient (matches .primary-btn — averages to #7BC7EB) */
  background: linear-gradient(180deg, #90D1F0 0%, #66BDE6 100%);
  color: #04141a;
  border: none;
  border-radius: var(--rad-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
}
.rb-promo-input button:disabled { opacity: 0.6; cursor: wait; }
.rb-promo-msg {
  margin: 8px 0 0;
  font-size: 12.5px;
}
.rb-promo-msg.error { color: #ff8b6b; }
.rb-promo-msg.ok    { color: #6bdc8a; }

.rb-promo-applied {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 8px 0;
  background: rgba(107, 220, 138, 0.08);
  border: 1px solid rgba(107, 220, 138, 0.35);
  border-radius: var(--rad-sm);
  font-size: 13.5px;
  color: var(--ink);
}
.rb-promo-applied code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: #6bdc8a;
  background: rgba(107, 220, 138, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}
.rb-promo-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: #6bdc8a;
  color: #04141a;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
/* FTC disclosure note shown when a referral code is applied — sits right
   under the green "applied" pill so the user sees it at the moment of
   commitment. Quiet styling: informational, not alarming. */
.rb-promo-ftc {
  margin: 6px 0 12px;
  padding: 8px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--rad-sm);
}
.rb-promo-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.rb-promo-remove:hover { color: #ff8b6b; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 12.5px; color: var(--ink-3);
  margin-top: 18px;
}

.qnav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.qnav button[disabled] { opacity: 0.4; cursor: not-allowed; }

/* SIDEBAR */
.quote-sidebar {
  position: sticky; top: 96px;
}
.sidebar-card {
  background: linear-gradient(180deg, rgba(0,217,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(0,217,255,0.25);
  border-radius: var(--rad);
  padding: 28px;
  box-shadow: 0 30px 80px -30px rgba(0,217,255,0.25);
}
.price-display {
  display: flex; align-items: baseline; gap: 4px;
  margin: 14px 0 8px;
}
.price-currency {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px; color: var(--ink-2);
}
.price-amount {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(48px, 6vw, 64px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.price-meta { color: var(--ink-3); font-size: 13px; margin-bottom: 24px; min-height: 20px; }

.line-items {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.line-items:empty { display: none; }
.li {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--ink-2);
}
.li .li-amt { font-family: 'JetBrains Mono', monospace; color: var(--ink); font-weight: 500; }
.li .li-label { padding-right: 12px; }
.li.li-discount .li-label, .li.li-discount .li-amt { color: #25e081; font-weight: 600; }

.line-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.line-total > span { color: var(--ink-3); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.line-total > strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px; font-weight: 700;
  color: var(--ink);
}
.line-delivery {
  font-size: 13px; color: var(--ink-2);
  padding: 12px 0; border-top: 1px solid var(--line);
}
.line-delivery strong { color: var(--cyan); font-weight: 600; }

.sidebar-cta { margin-top: 20px; }
.retention-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: rgba(255, 184, 107, 0.08);
  border: 1px solid rgba(255, 184, 107, 0.28);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.retention-notice strong { color: var(--amber); font-weight: 700; }
.sidebar-note {
  margin-top: 10px; text-align: center;
  font-size: 12px; color: var(--ink-4);
}

.rb-help {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--rad-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  font-size: 13px;
}
.rb-help summary {
  cursor: pointer; color: var(--ink-2); font-weight: 500;
}
.rb-help summary::after { content: ' ↓'; color: var(--cyan); }
.rb-help[open] summary::after { content: ' ↑'; }
.rb-help p { margin: 8px 0 0; color: var(--ink-3); }
.rb-help a { color: var(--cyan); }

/* PRICE PULSE */
.pulse { animation: pricePulse .55s var(--ease); }
@keyframes pricePulse {
  0%   { color: var(--cyan); transform: scale(1.06); }
  100% { color: var(--ink); transform: scale(1); }
}

@media (max-width: 1024px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote-sidebar { position: static; min-width: 0; }
  .option-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .progress-steps .ps { font-size: 9px; }
}

/* ============================================================
   MOBILE OVERFLOW FIXES — 2026-05-31
   The CSS Grid "min-width: auto" footgun: grid items default to
   their intrinsic content width as a minimum, which lets nowrap
   children / fixed-size inputs push the grid wider than the
   viewport. Set min-width:0 on every grid-item descendant chain
   so columns properly constrain their contents on mobile.
   ============================================================ */
.quote-steps,
.quote-sidebar,
.sidebar-card,
.qstep,
.addon-block,
.measurement-grid,
.meas-field,
.meas-inputs,
.chips-grid,
.form-grid,
.option-grid,
.field,
.opt,
.check,
.upgrade-callout,
.upgrade-callout-text {
  min-width: 0;
}
/* iOS Safari pin: prevents auto-zoom on rotate and 16px-input weirdness */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

@media (max-width: 540px) {
  /* Measurement input rows: 2 inputs + select can push wider than the column.
     Allow them to wrap, and let the inputs shrink to their column's allocation. */
  .meas-inputs { flex-wrap: wrap; }
  .meas-inputs input { min-width: 60px; flex: 1 1 80px; }
  .meas-inputs select { flex: 0 0 auto; }

  /* Constraints free-text field — full width with content-safe overflow */
  .meas-field input[type="text"]#m_constraints { width: 100%; box-sizing: border-box; }

  /* Tighten quote-steps padding on phones — clamp's max was 44px which ate
     too much of the 335px content area */
  .quote-steps { padding: 22px 16px; }
  .sidebar-card { padding: 20px 16px; }

  /* Progress breadcrumb is mono-text and can run off — let it scroll
     horizontally with a fade rather than blow out the layout */
  .progress-steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .progress-steps::-webkit-scrollbar { display: none; }

  /* Step header tag + title — keep them snug to the viewport */
  .step-tag { font-size: 10.5px; }
  .qstep h2 { font-size: 24px; line-height: 1.1; }
  .qsub { font-size: 14px; }

  /* Upgrade callout button — ensure the price label can wrap on tiny screens */
  .upgrade-callout button.primary-btn { white-space: normal; }
}

/* Universal safety net: long content / URLs / filenames can't blow out a card */
.quote-steps, .sidebar-card, .upgrade-callout, .check, .opt {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* ============================================================
   FEATURE 1 — Enhanced intake form (measurements + must/nice + photo meter)
   ============================================================ */
.intake-sub {
  color: var(--ink-3); font-size: 13px; line-height: 1.45;
  margin: -4px 0 14px;
}
.hint-pill {
  font-size: 10.5px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(115,209,255,0.1); color: var(--cyan, #73d1ff);
  letter-spacing: .02em; text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---- MEASUREMENTS ------------------------------------------ */
.intake-measurements h3 {
  display: flex; align-items: center; flex-wrap: wrap;
}
.measurement-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.meas-field {
  display: flex; flex-direction: column; gap: 6px;
}
.meas-field-wide { grid-column: 1 / -1; }
.meas-field > span {
  font-size: 12px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600;
}
.meas-inputs {
  display: flex; gap: 6px; align-items: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 4px 8px;
  transition: border-color .15s;
}
.meas-inputs:focus-within { border-color: var(--cyan, #73d1ff); }
.meas-inputs input {
  background: transparent; border: 0; outline: 0;
  flex: 1; min-width: 0;
  color: var(--ink); font-family: 'JetBrains Mono', monospace;
  font-size: 14px; padding: 8px 4px;
}
.meas-inputs input::placeholder { color: var(--ink-4); }
.meas-inputs select {
  background: rgba(255,255,255,0.04);
  border: 0; outline: 0;
  color: var(--ink); font-size: 12px;
  border-radius: 6px; padding: 4px 8px;
  cursor: pointer;
}
.meas-x { color: var(--ink-4); font-size: 14px; padding: 0 2px; }
.meas-field input[type="text"]:not(.meas-inputs *) {
  /* The free-text constraints field — use a normal text input box */
  padding: 11px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--ink); font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.meas-field > input[type="text"]#m_constraints {
  padding: 11px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--ink); font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.meas-field > input[type="text"]#m_constraints:focus {
  outline: 0; border-color: var(--cyan, #73d1ff);
}

/* ---- MUST-HAVE / NICE-TO-HAVE CHIPS ------------------------ */
.chips-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chips-col {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.chips-col-must { border-color: rgba(255,184,107,0.25); }
.chips-col-nice { border-color: rgba(115,209,255,0.22); }
.chips-col label { display: flex; flex-direction: column; gap: 6px; }
.chips-label {
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase;
}
.must-label { color: var(--amber, #ffb86b); }
.nice-label { color: var(--cyan, #73d1ff); }
.chips-col input[type="text"] {
  padding: 9px 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--ink); font-family: 'Inter', sans-serif;
  font-size: 13.5px;
}
.chips-col input[type="text"]:focus {
  outline: 0; border-color: currentColor;
}
.chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  min-height: 24px;
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink); font-size: 12.5px; font-weight: 500;
  animation: chip-in .18s ease-out;
}
.chips-col-must .chip { background: rgba(255,184,107,0.1); border-color: rgba(255,184,107,0.3); }
.chips-col-nice .chip { background: rgba(115,209,255,0.08); border-color: rgba(115,209,255,0.25); }
@keyframes chip-in {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.chip-x {
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-3); font-size: 16px; line-height: 1;
  padding: 0 2px;
  transition: color .12s;
}
.chip-x:hover { color: #ff8b6b; }
.chips-empty { color: var(--ink-4); font-size: 11.5px; font-style: italic; }

/* ---- PHOTO UPLOAD PROMINENCE BOOST ------------------------- */
.intake-photos-field .intake-photos-label {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.intake-photos-field strong { color: var(--ink); }
.intake-photos-tag {
  font-style: normal; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(37,224,129,0.12); color: #25e081;
  text-transform: uppercase; letter-spacing: .04em;
}
.intake-photos-meter {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px;
}
.intake-photos-meter[hidden] { display: none; }
.meter-bar {
  flex: 1; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}
.meter-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, #25e081, var(--cyan, #73d1ff));
  width: 0%; transition: width .35s;
  border-radius: 999px;
}
.meter-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-3);
  white-space: nowrap;
}

/* Responsive — stack the side-by-side grids on narrow screens */
@media (max-width: 720px) {
  .measurement-grid, .chips-grid {
    grid-template-columns: 1fr;
  }
}

/* FEATURE 3 — Milestone breakdown in the quote sidebar */
.line-milestone {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(115,209,255,0.06);
  border: 1px solid rgba(115,209,255,0.22);
}
.line-mile-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 4px 0;
}
.line-mile-row strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
}
.line-mile-row.dim { color: var(--ink-3); font-size: 12px; }
.line-mile-row.dim strong { color: var(--ink-3); }
.line-total-project { color: var(--ink-2); }

/* ============================================================
   === OVERHAUL 2026-06-02 — scope-based pricing tiers ===
   Restructured the quote flow so the 3 packages describe SCOPE
   (what Billy models) instead of deliverable depth. Everything
   below is added by the overhaul. Old CSS above is preserved so
   nothing breaks if we partially revert.
   ============================================================ */

/* Page intro — above the progress bar */
.quote-intro {
  margin-bottom: 32px;
  max-width: 880px;
}
.quote-intro-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.quote-intro-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 10px 0 14px;
}
.quote-intro-sub {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.quote-intro-sub strong {
  color: var(--ink);
  font-weight: 600;
}
.quote-intro-help {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
}
.quote-intro-help a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 217, 255, 0.4);
}
.quote-intro-help a:hover {
  border-bottom-style: solid;
}
.quote-intro-swfl {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(37, 224, 129, 0.07);
  border: 1px solid rgba(37, 224, 129, 0.25);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
}
.quote-intro-swfl strong { color: #25e081; font-weight: 600; }

/* Pool-customer callout on Option 1 — green tint to signal "bonus offer" */
.scope-example-pool {
  background: rgba(37, 224, 129, 0.06);
  border-color: rgba(37, 224, 129, 0.28);
}
.scope-example-pool strong { color: #25e081; }
.scope-example-pool em { color: var(--ink); font-style: italic; font-weight: 600; }

/* "Every package includes" — uniform deliverables panel above the tiers */
.deliverables-promise {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(255, 184, 107, 0.04) 100%);
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 28px;
}
.deliverables-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.deliverables-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.deliverables-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.deliverables-list li:first-child {
  border-top: none;
  padding-top: 0;
}
.deliverables-list li strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.deliverables-list li span {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
/* Highlighted deliverable — used for the "to-scale site plan" item that gives
   customers leverage over contractor pricing. Subtle gradient frame so it
   pops without screaming. */
.deliverables-list li.deliverable-highlight {
  margin: 4px -10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.07), rgba(37, 224, 129, 0.05));
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-top: 1px solid rgba(0, 217, 255, 0.28); /* override the divider rule above */
}
.deliverables-list li.deliverable-highlight strong { color: var(--cyan); }
.deliverables-list li.deliverable-highlight span { color: var(--ink-2); }

/* "Now ↓ Pick the one that fits" — prompt above scope cards */
.scope-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 18px;
  padding: 10px 14px;
  background: rgba(255, 184, 107, 0.06);
  border: 1px dashed rgba(255, 184, 107, 0.3);
  border-radius: 10px;
}
.scope-prompt-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  flex-shrink: 0;
}
.scope-prompt-text {
  color: var(--ink-2);
  font-size: 14px;
}
.scope-prompt-text strong {
  color: var(--ink);
}

/* Scope cards — the 3 big tier choices */
.scope-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scope-card {
  padding: 0;
  text-align: left;
  overflow: hidden;
  position: relative;
}
.scope-card.recommended {
  border-color: rgba(0, 217, 255, 0.4);
  background: rgba(0, 217, 255, 0.03);
}
.scope-card.recommended:not(.selected) {
  box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.2);
}
/* Recommended ribbon — full-width banner strip across the top of the card
   so it doesn't collide with the price block in the top-right corner. */
.scope-card .scope-ribbon {
  display: block;
  width: 100%;
  text-align: center;
  padding: 7px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  color: #06070a;
  font-weight: 700;
  border-top-left-radius: var(--rad-sm);
  border-top-right-radius: var(--rad-sm);
  margin: -1px -1px 0;   /* pull over the card's 1px border so the strip is flush */
  position: relative;
  z-index: 2;
}
.scope-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.scope-icon {
  font-size: 36px;
  line-height: 1;
  margin-top: 4px;
}
.scope-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.scope-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.scope-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
}
.scope-sub {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
}
.scope-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  text-align: right;
}
.scope-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.scope-delivery {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.scope-body {
  padding: 16px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scope-best-for {
  font-size: 14px;
  color: var(--ink-2);
}
.scope-best-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.scope-best-for ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.scope-best-for li {
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.scope-best-for li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 700;
}
.scope-best-for strong {
  color: var(--ink);
  font-weight: 600;
}
.scope-warning,
.scope-example {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.scope-warning {
  background: rgba(255, 138, 76, 0.08);
  border: 1px solid rgba(255, 138, 76, 0.3);
}
.scope-warning strong { color: var(--amber); }
.scope-warning-icon { font-size: 18px; line-height: 1.3; }
.scope-example {
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.22);
}
.scope-example strong { color: var(--cyan); }
.scope-example em { color: var(--ink); font-style: italic; }
.scope-example-icon { font-size: 18px; line-height: 1.3; }

/* Size cards — step 2 */
.size-card {
  padding: 18px 22px;
}
.size-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.size-card-row strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 600;
}
.size-surcharge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--amber);
  background: rgba(255, 184, 107, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.size-surcharge-free {
  color: #25e081;
  background: rgba(37, 224, 129, 0.08);
}

/* "Keep" block — only visible on Home + Landscape tier */
.keep-block textarea,
.addon-block textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 90px;
}
.keep-block textarea:focus,
.addon-block textarea:focus {
  border-color: var(--cyan);
  outline: none;
  background: rgba(0, 217, 255, 0.03);
}

/* HOA question block */
.hoa-block {
  padding: 18px 20px;
  background: rgba(115, 209, 255, 0.04);
  border: 1px solid rgba(115, 209, 255, 0.2);
  border-radius: 12px;
}
.hoa-block h3 { margin-top: 0; }
.check-prominent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}
.check-prominent input { transform: scale(1.2); }
.check-prominent:hover {
  border-color: var(--cyan);
  background: rgba(0, 217, 255, 0.04);
}

/* Responsive — scope cards collapse on mobile so price doesn't squish */
@media (max-width: 720px) {
  .scope-card-head {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }
  .scope-price-block {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
    padding-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    margin-top: 6px;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  .scope-card .scope-ribbon {
    font-size: 10px;
    padding: 6px 12px;
  }
}

/* iOS Safari zoom-on-focus prevention now lives as a single
   site-wide rule in styles.css. No quote-page-specific rule needed. */
