:root {
  --navy: #12213a;
  --navy-2: #1a2f52;
  --amber: #e08a2c;
  --amber-dark: #c8721a;
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #1c2333;
  --text-muted: #5c6577;
  --border: #e4e7ee;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(18, 33, 58, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
p { margin: 0 0 16px; color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary {
  background: var(--amber);
  color: #fff;
}
.btn-primary:hover { background: var(--amber-dark); }
.btn-large { padding: 15px 30px; font-size: 16px; }
.btn-small { padding: 10px 18px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.logo-mark.small { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.header-nav { display: flex; gap: 28px; }
.header-nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.header-nav a:hover { color: var(--amber-dark); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(28px, 6vw, 42px); letter-spacing: -0.5px; }
.hero-sub { font-size: clamp(15px, 3.6vw, 17px); max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin: 22px 0 34px; flex-wrap: wrap; }
.hero-microcopy { font-size: 13px; color: var(--text-muted); }
.trust-row { display: flex; gap: 32px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 18px; color: var(--navy); }
.trust-item span { font-size: 12.5px; color: var(--text-muted); }

.mock-chat-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  max-width: 380px;
  margin-left: auto;
}
.mock-chat-header { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock-bubble {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  margin-bottom: 10px;
  max-width: 88%;
}
.mock-bubble.bot { background: #eef1f7; color: var(--text); border-bottom-left-radius: 4px; }
.mock-bubble.user { background: var(--navy); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }

/* How it works */
.how-it-works, .trades, .faq { padding: 56px 0; }
.how-it-works h2, .trades h2, .faq h2 { font-size: 26px; text-align: center; margin-bottom: 36px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 17px; }
.step-card p { margin: 0; font-size: 14.5px; }

/* Trades */
.trade-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trade-pills span {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--navy-2);
}

/* CTA band */
.cta-band { background: var(--navy); padding: 48px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 24px; }
.cta-band p { color: #c7cede; margin: 0; }

/* FAQ */
.faq-item { max-width: 720px; margin: 0 auto 22px; }
.faq-item h3 { font-size: 16px; }
.faq-item p { margin: 0; font-size: 14.5px; }

/* Footer */
.site-footer { padding: 26px 0 40px; }
.site-footer p { font-size: 12.5px; text-align: center; margin: 0; }

/* Floating chat launcher */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px 13px 15px;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(18, 33, 58, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(18, 33, 58, 0.34); }
.chat-fab-icon { font-size: 17px; line-height: 1; }

@media (max-width: 860px) {
  .chat-fab-label { display: none; }
  .chat-fab { padding: 13px; }
}

/* Chat overlay */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 33, 58, 0.35);
  display: flex;
  justify-content: flex-end;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.chat-overlay.open { opacity: 1; pointer-events: auto; }

.chat-panel {
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -12px 0 40px rgba(0,0,0,0.15);
}
.chat-overlay.open .chat-panel { transform: translateX(0); }

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--navy);
  color: #fff;
}
.chat-panel-title { display: flex; align-items: center; gap: 10px; }
.chat-panel-title div { display: flex; flex-direction: column; line-height: 1.3; }
.chat-status { font-size: 11.5px; color: #9fd6a8; }
.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.chat-demo-banner {
  background: #fff4e0;
  color: #8a5a12;
  font-size: 12.5px;
  padding: 8px 16px;
  border-bottom: 1px solid #f2dfb3;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; }
.msg p { margin: 0 0 8px; color: inherit; }
.msg p:last-child { margin-bottom: 0; }
.msg ol, .msg ul { margin: 6px 0; padding-left: 20px; }
.msg li { margin-bottom: 6px; }
.msg strong { font-weight: 700; }

.msg.assistant {
  background: var(--card);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.msg.user {
  background: var(--navy);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg.error {
  background: #fdeaea;
  border: 1px solid #f3c6c6;
  color: #8a1f1f;
  align-self: flex-start;
}

.typing-indicator {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.typing-indicator span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: blink 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.chat-input-row input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 14.5px;
  outline: none;
}
.chat-input-row input:focus { border-color: var(--amber); }

/* Estimate page */
.back-link {
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover { color: var(--amber-dark); }

.estimate-hero { padding: 52px 0 8px; text-align: center; }
.estimate-hero h1 { font-size: clamp(24px, 6vw, 34px); letter-spacing: -0.4px; }
.estimate-hero p { max-width: 480px; margin: 0 auto; font-size: clamp(14px, 3.4vw, 16px); }

.estimate-wrap { padding: 28px 0 72px; }

.estimate-card-outer {
  max-width: 620px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 36px;
}

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-field .field-hint {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-field textarea,
.form-field input[type="text"] {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color 0.12s ease;
}
.form-field textarea:focus,
.form-field input[type="text"]:focus { border-color: var(--amber); }
.form-field textarea { min-height: 96px; }

.urgency-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.urgency-pill { position: relative; }
.urgency-pill input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.urgency-pill span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-2);
  transition: all 0.12s ease;
}
.urgency-pill input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.urgency-pill input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

.estimate-submit { width: 100%; padding: 16px; font-size: 16px; }
.estimate-reassurance {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 14px 0 0;
}

.form-error {
  background: #fdeaea;
  border: 1px solid #f3c6c6;
  color: #8a1f1f;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.loading-state {
  text-align: center;
  padding: 40px 0;
}
.loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--amber);
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { margin: 0; font-size: 14.5px; }

/* Results */
.safety-banner {
  background: #fdeaea;
  border: 1.5px solid #f0b3b3;
  color: #7a1414;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.demo-data-banner {
  background: #fff4e0;
  color: #8a5a12;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.results-header { text-align: center; margin-bottom: 26px; }
.results-header .trade-badge {
  display: inline-block;
  background: #eef1f7;
  color: var(--navy-2);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.results-header h2 { font-size: 24px; margin-bottom: 6px; }

.cost-estimate-card {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  margin-bottom: 30px;
}
.cost-estimate-card .cost-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9fb0d4;
  margin-bottom: 8px;
  display: block;
}
.cost-estimate-card .cost-range { font-size: clamp(26px, 7vw, 36px); font-weight: 800; margin-bottom: 10px; }
.cost-estimate-card .cost-note { color: #c7cede; font-size: 13.5px; max-width: 460px; margin: 0 auto; }

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.match-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.match-card .match-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.match-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.match-card .match-rating {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-2);
  margin-bottom: 8px;
}
.match-card .match-rating .stars { color: #e0a82c; }
.match-card .match-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.match-card .match-specialty {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 14px;
}
.match-card .match-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.match-card .match-actions a {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--navy);
}
.match-card .match-actions a.primary { background: var(--amber); border-color: var(--amber); color: #fff; }

.no-matches {
  text-align: center;
  padding: 30px 0;
  color: var(--text-muted);
}

.results-footer {
  text-align: center;
  margin-top: 34px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.results-footer a { color: var(--amber-dark); font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .mock-chat-card { margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .estimate-card-outer { padding: 24px; }
}

/* Small phones — tighter spacing, stacked/full-width CTAs, easier tap targets */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .logo-text { font-size: 15px; }
  .header-inner .btn-small { padding: 9px 14px; font-size: 13px; }

  .hero { padding: 40px 0 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin: 18px 0 26px; }
  .hero-actions .btn-large { width: 100%; }
  .hero-microcopy { text-align: center; }
  .trust-row { justify-content: space-between; gap: 14px; }
  .trust-item strong { font-size: 16px; }
  .trust-item span { font-size: 11.5px; }

  .mock-chat-card { max-width: 100%; padding: 16px; }

  .how-it-works, .trades, .faq { padding: 40px 0; }
  .how-it-works h2, .trades h2, .faq h2 { font-size: 22px; margin-bottom: 26px; }
  .step-card { padding: 20px; }

  .cta-band { padding: 34px 0; }
  .cta-band-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-band-inner .btn-large { width: 100%; }

  .estimate-hero { padding: 36px 0 6px; }
  .estimate-card-outer { padding: 18px; border-radius: 16px; }
  .urgency-pills { gap: 8px; }
  .urgency-pill span { padding: 9px 13px; font-size: 13px; }

  .cost-estimate-card { padding: 22px 18px; }
  .match-card { padding: 16px; }
  .match-card .match-actions a { flex: 1; text-align: center; }

  .chat-panel-header { padding: 14px; }
  .chat-input-row { padding: 10px; }
}

/* =======================================================================
   HOME-SALE SIDE  (/renovate and /sell)
   Added when the site expanded from trade quoting into home-sale lead
   generation. Everything below reuses the existing navy/amber tokens and
   card/shadow vocabulary defined at the top of this file -- no new colors
   and no new radii were invented, so the two halves of the site read as one
   product. Nothing above this line was modified.
   ======================================================================= */

/* Two-column variant of the existing three-up steps grid, for the
   renovate-or-sell fork on the homepage. Defined as a class rather than an
   inline style specifically so the 860px collapse below still applies -- an
   inline grid-template-columns would beat the media query and leave two
   squashed cards side by side on a phone. */
.steps-grid.two-up { grid-template-columns: repeat(2, 1fr); }

/* These pages sit inside .estimate-hero, which is text-align:center for its
   headline. Every card below is body content and must read left-aligned, so
   each one resets it explicitly rather than relying on inheritance. */
.condition-card,
.value-basis,
.fork-card,
.consent-card,
.sell-convo,
.sell-side-card,
.photo-errors,
.value-card { text-align: left; }

/* The back link and the eyebrow are both inline and would otherwise sit on
   the same line, reading as one run-on label. */
.estimate-wrap > .back-link { display: block; margin-bottom: 16px; }

/* .estimate-hero p caps every paragraph at 480px and centers it, which is
   right for the page's intro line but wrong for body copy inside a card --
   it left the card text in a narrow column with a large empty gutter. Each
   card below opts out. */
.condition-card p,
.value-basis p,
.fork-card p,
.consent-card p,
.value-card p,
.sell-msg p,
.sell-side-card p,
.photo-errors,
.form-field .field-hint { max-width: none; margin-left: 0; margin-right: 0; }

/* ---- Photo picker ---- */
.photo-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.photo-dropzone:hover,
.photo-dropzone:focus-visible,
.photo-dropzone.is-dragover {
  border-color: var(--amber);
  background: #fff;
  outline: none;
}
.photo-dropzone-icon { font-size: 28px; line-height: 1; display: block; margin-bottom: 8px; }
.photo-dropzone strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.photo-dropzone span { color: var(--text-muted); font-size: 13.5px; }
.photo-dropzone input[type='file'] { display: none; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.photo-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(18, 33, 58, 0.88), rgba(18, 33, 58, 0));
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 14px 7px 5px;
  text-align: left;
}
.photo-thumb-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(18, 33, 58, 0.82);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-thumb-remove:hover { background: #b3261e; }

.photo-area-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.photo-area-pills button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.photo-area-pills button:hover { border-color: var(--amber); color: var(--amber-dark); }
.photo-area-pills button[aria-pressed='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.photo-errors {
  margin-top: 10px;
  font-size: 13px;
  color: #8a2f20;
  background: #fdf1ee;
  border: 1px solid #f3d5cd;
  border-radius: 10px;
  padding: 10px 12px;
}
.photo-errors ul { margin: 6px 0 0; padding-left: 18px; }

/* ---- Condition report ---- */
.condition-grid { display: grid; gap: 12px; margin-top: 16px; }
.condition-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.condition-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.condition-card-head h4 { margin: 0; font-size: 16px; color: var(--navy); }
.condition-cost { font-weight: 700; color: var(--text); font-size: 15px; white-space: nowrap; }
.condition-card p { margin: 0 0 10px; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }
.condition-card ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; }
.condition-card li { margin-bottom: 4px; }

.condition-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.condition-badge.good { background: #e6f4ea; color: #1e6b33; }
.condition-badge.dated { background: #fdf3e3; color: #8a5a15; }
.condition-badge.worn { background: #fbeade; color: #8a4a15; }
.condition-badge.damaged { background: #fdf1ee; color: #8a2f20; }
.condition-badge.unclear { background: #eef0f4; color: #5c6577; }

/* ---- Value range card ---- */
.value-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.value-card .eyebrow { color: var(--amber); }
.value-range {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 6px 0 10px;
  line-height: 1.15;
}
.value-card p { color: #c8d0de; font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.value-card p:last-child { margin-bottom: 0; }
.value-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 16px;
  padding-top: 14px;
  font-size: 13px !important;
  color: #a9b4c6 !important;
}
.value-confidence {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.value-basis {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 12px;
}
.value-basis h4 { margin: 0 0 8px; font-size: 15px; color: var(--navy); }
.value-basis p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* ---- The renovate-or-sell fork ---- */
.fork-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 22px;
  box-shadow: var(--shadow);
}
.fork-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--navy); }
.fork-card p { margin: 0 0 16px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ---- Full-page seller conversation ---- */
.sell-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
  margin: 22px 0 40px;
}
.sell-convo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.sell-log { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sell-msg { max-width: 82%; font-size: 15px; line-height: 1.6; }
.sell-msg .bubble { padding: 12px 15px; border-radius: 14px; display: inline-block; }
.sell-msg.from-guide { align-self: flex-start; }
.sell-msg.from-guide .bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 5px;
}
.sell-msg.from-user { align-self: flex-end; }
.sell-msg.from-user .bubble {
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 5px;
}
/* Flex rather than grid inside a message. The message is a flex item that
   sizes to its content, and a grid's width does not feed back into that
   sizing -- so the bubble stayed as narrow as its text and the photos ended
   up stacked one per row. A flex row's max-content IS the sum of its
   children, so the bubble widens to fit them and they sit side by side. */
.sell-msg .photo-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
}
.sell-msg .photo-grid .photo-thumb { width: 104px; flex: none; }
.sell-msg.from-user .photo-grid { justify-content: flex-end; }
.sell-msg .bubble p { margin: 0 0 9px; }
.sell-msg .bubble p:last-child { margin-bottom: 0; }

.sell-composer { border-top: 1px solid var(--border); padding: 14px; }
.sell-composer-row { display: flex; gap: 9px; align-items: flex-end; }
.sell-composer textarea {
  flex: 1;
  resize: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: #fff;
  max-height: 140px;
}
.sell-composer textarea:focus { outline: none; border-color: var(--amber); }
/* .btn on its own carries no padding -- that comes from .btn-large /
   .btn-small. The send button needs its own sizing so it matches the height
   of the textarea and the attach button beside it. */
.sell-composer-row .btn { padding: 0 22px; font-size: 15px; height: 44px; flex: none; }

.sell-attach {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 11px;
  width: 44px;
  height: 44px;
  font-size: 19px;
  cursor: pointer;
  flex: none;
}
.sell-attach:hover { border-color: var(--amber); }
.sell-pending { margin-top: 10px; }

.sell-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.sell-side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.sell-side-card h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sell-checklist { list-style: none; margin: 0; padding: 0; }
.sell-checklist li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0 5px 24px;
  position: relative;
  line-height: 1.4;
}
.sell-checklist li::before {
  content: '○';
  position: absolute;
  left: 4px;
  top: 4px;
  color: var(--border);
  font-size: 14px;
}
.sell-checklist li.done { color: var(--text); }
.sell-checklist li.done::before { content: '●'; color: #1e6b33; }

.sell-typing { align-self: flex-start; color: var(--text-muted); font-size: 14px; font-style: italic; }

/* ---- Consent block ---- */
.consent-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-top: 16px;
}
.consent-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.consent-card > p { margin: 0 0 16px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.consent-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.consent-check input { margin-top: 3px; flex: none; width: 17px; height: 17px; }

@media (max-width: 860px) {
  .steps-grid.two-up { grid-template-columns: 1fr; }
  .sell-shell { grid-template-columns: minmax(0, 1fr); }
  .sell-side { position: static; order: -1; }
  .sell-side-card { padding: 14px 16px; }
  .sell-msg { max-width: 92%; }
  .value-range { font-size: 27px; }
  .fork-card { padding: 18px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

@media (max-width: 480px) {
  .sell-convo { min-height: 420px; }
  .sell-log { padding: 15px; }
  .value-card { padding: 20px 18px; }
  .value-range { font-size: 24px; }
  .condition-card { padding: 15px; }
  .consent-card { padding: 18px; }
  .photo-dropzone { padding: 20px 14px; }
}
