/* The offer-led homepage's visual language, without changing page behaviour. */
body.public-design {
  --ink: #20201f;
  --ivory: #fbf9f5;
  --paper: #fffdf9;
  --stone: #ded8cd;
  --warm-gray: #5d655e;
  --accent: #2e5b49;
  --accent-light: #386e58;
  --accent-glow: #dce7de;
  --cream: #f5f0e8;
  --charcoal: #242423;
  --sign-gold: #c5a880;
  --gold: #c5a880;
  --gold-light: #f0e6d0;
  --ff-display: "Cormorant Garamond", Georgia, serif;
  --ff-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--ff-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.public-design *, .public-design *::before, .public-design *::after { box-sizing: border-box; }
.public-design :focus-visible { outline: 3px solid #a88657; outline-offset: 3px; }
.public-design [id] { scroll-margin-top: 90px; }
.public-design .marketing-nav { position: sticky; height: 76px; min-height: 76px; }
.marketing-skip-link {
  position: fixed; z-index: 1000; top: 8px; left: 8px;
  padding: 0.7rem 1rem; color: #fff; background: #214537;
  border-radius: 4px; transform: translateY(-150%);
}
.marketing-skip-link:focus { transform: translateY(0); }

/* Seller and buyer pages retain their exact offer, calculators and forms. */
.public-design .hero {
  min-height: 0;
  padding: clamp(3.4rem, 6vw, 5.6rem) max(24px, calc((100vw - 1320px) / 2));
  background:
    radial-gradient(circle at 85% 0%, rgba(197, 168, 128, 0.2), transparent 26rem),
    linear-gradient(135deg, var(--cream), #f9f6f0 56%, #ebe7df);
}
.public-design .hero::before { display: none; }
.public-design .hero-inner {
  max-width: 1320px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.public-design .hero-tag {
  padding: 0;
  margin-bottom: 1.2rem;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  animation: none;
}
.public-design .hero-tag::before { width: 22px; height: 1px; border-radius: 0; }
.public-design .hero h1 {
  max-width: 760px;
  font-family: var(--ff-display);
  font-size: clamp(3rem, 5.1vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
  animation: none;
}
.public-design .hero h1 em { font-weight: 500; }
.public-design .hero-sub {
  max-width: 640px;
  color: #454d46;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 1.75rem;
  animation: none;
}
.public-design .hero-actions, .public-design .hero-visual { animation: none; }
.public-design .hero .float-badge { display: none; }
.public-design .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}
.public-design .btn:hover { transform: none; box-shadow: none; }
.public-design .btn-primary { background: var(--accent); color: #fff; }
.public-design .btn-primary:hover { background: #214537; }
.public-design .btn-secondary { background: var(--paper); color: var(--ink); border-color: #b6ac9e; }
.public-design .calc-card, .public-design .hero-card {
  padding: 2rem;
  border: 1px solid #cfc6b8;
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 20px 55px rgba(32, 32, 31, 0.07);
}
.public-design .calc-label { color: var(--accent); font-weight: 700; }
.public-design .calc-price-display { font-size: 2.2rem; }
.public-design .calc-row-label { font-size: 0.82rem; }
.public-design .calc-row-value.rebate { color: var(--accent); text-shadow: none; }
.public-design .calc-note { color: #5d655e; line-height: 1.5; }
.public-design .section-inner { max-width: 1200px; }
.public-design .section-title {
  font-size: clamp(2.4rem, 3.8vw, 3.7rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.public-design .section-label { font-size: 0.7rem; letter-spacing: 0.13em; }
.public-design .how-it-works, .public-design .how-section { background: var(--paper); }
.public-design .step-card, .public-design .feature-card,
.public-design .market-card, .public-design .rebate-card {
  border-radius: 7px;
  box-shadow: none;
}
.public-design .step-card { background: var(--cream); border-color: var(--stone); }
.public-design .step-card:hover, .public-design .feature-card:hover { transform: none; }
.public-design .step-title { font-family: var(--ff-display); font-size: 1.5rem; line-height: 1.1; }
.public-design .step-desc { font-size: 0.86rem; }
.public-design .intelligence, .public-design .rebate-section { --warm-gray: #d4d9d4; }
.public-design section.about { background: var(--paper); }
.public-design section.about .about-grid { grid-template-columns: 320px 1fr !important; }
.public-design section.about .about-photo { border-radius: 0 70px 0 0; max-width: 320px; min-height: 410px; }
.public-design section.about .about-text h3 { font-size: 2.6rem !important; font-weight: 600; }
.public-design .cta-section {
  padding: 4rem 1.5rem !important;
  background: var(--accent);
}
.public-design .cta-section h2 { font-family: var(--ff-display); font-size: clamp(2.5rem, 4vw, 3.8rem); font-weight: 600; line-height: 1.04; }
.public-design .cta-section > div[style*="display:grid"] > div { border-radius: 6px !important; }
.public-design footer {
  padding: 2.2rem 2rem;
  color: rgba(255,255,255,0.72);
  background: #1c1c1b;
  font-size: 0.74rem;
  line-height: 1.55;
  text-align: center;
}
.public-design footer p { margin: 0.25rem 0; }
.public-design footer a { color: rgba(255,255,255,0.88); text-underline-offset: 3px; }
.public-design .footer-brand { margin-bottom: 0.2rem; color: #fff; font-family: var(--ff-display); font-size: 1.5rem; font-weight: 600; }
.public-design .footer-brand em, .public-design .footer-tagline em { color: var(--gold); }
.public-design .footer-tagline { color: rgba(255,255,255,0.76); margin-bottom: 0.6rem; }

/* Published proof uses the same cream/green editorial treatment as home. */
.testimonials-page .proof-page-header {
  padding: clamp(3.5rem, 6vw, 5.5rem) 24px;
  background: linear-gradient(135deg, #f5f0e8, #fbf9f5);
  border-bottom: 1px solid var(--stone);
}
.proof-page-shell { width: min(1060px, calc(100% - 48px)); margin: 0 auto; }
.proof-page-eyebrow { margin: 0 0 1rem; color: #2e5b49; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.proof-page-header h1 { max-width: 820px; margin: 0 0 1.25rem; font: 600 clamp(3rem, 5.5vw, 5rem)/0.98 "Cormorant Garamond", Georgia, serif; letter-spacing: -0.04em; }
.proof-page-intro { max-width: 620px; margin: 0; color: #4b554d; font-size: 1rem; line-height: 1.7; }
.proof-page-content { padding: 3.5rem 0 4.5rem; }
.published-testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.published-testimonial { margin: 0; padding: 1.75rem; background: #fffdf9; border: 1px solid var(--stone); border-top: 3px solid #c5a880; border-radius: 6px; }
.published-testimonial:nth-child(4n + 2) { background: #f0f4ef; border-top-color: #2e5b49; }
.testimonial-stars { margin-bottom: 0.85rem; color: #876b3e; font-size: 0.85rem; letter-spacing: 0.14em; }
.published-testimonial blockquote { margin: 0 0 1.3rem; color: #323a33; font-size: 0.94rem; line-height: 1.8; overflow-wrap: anywhere; }
.published-testimonial figcaption { color: #4e584f; font-size: 0.8rem; line-height: 1.5; }
.published-testimonial figcaption strong { color: #214537; }
.testimonial-context { display: block; margin-top: 0.4rem; color: #626b63; font-size: 0.73rem; }
.testimonial-verified { display: inline-block; margin-top: 0.45rem; padding: 3px 8px; color: #2e5b49; background: #e1ece3; border-radius: 3px; font-size: 0.68rem; font-weight: 700; }
.proof-page-note { max-width: 800px; margin: 2rem 0 0; color: #646c64; font-size: 0.76rem; line-height: 1.6; }
.proof-page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.proof-page-actions a { text-decoration: none; }
.proof-page-empty { padding: 2rem; background: #fffdf9; border: 1px solid var(--stone); border-radius: 6px; }

/* Search keeps its full-height functional shell and all map/filter logic. */
body.search-page {
  --fk-ink: #20201f; --fk-ivory: #fbf9f5; --fk-stone: #ded8cd;
  --fk-warm-gray: #686f68; --fk-accent: #2e5b49; --fk-accent-light: #386e58; --fk-gold: #c5a880;
}
.search-page .marketing-nav { height: 64px; min-height: 64px; }
.search-page .search-bar-wrap, .search-page .filter-chips, .search-page .parsed-chips,
.search-page .search-results-header { background: #fffdf9; }
.search-page .search-bar { border-radius: 6px; }
.search-page .search-bar-input { min-width: 0; }
.search-page .search-bar-submit { border-radius: 4px; }
.search-page .listing-card { border-radius: 7px; box-shadow: 0 4px 16px rgba(32,32,31,0.035); }
.search-page .listing-card:hover { transform: none; box-shadow: 0 6px 20px rgba(32,32,31,0.08); }
.search-page .card-attribution { background: #fffdf9; }
.search-page .no-results { border-radius: 7px; }
.search-page .card-price { font-weight: 600; }

@media (max-width: 980px) {
  .public-design:not(.search-page) .marketing-nav { height: 68px; min-height: 68px; }
  .public-design .hero-inner { grid-template-columns: 1fr; max-width: 720px; gap: 2.5rem; }
  .public-design .hero-visual { width: 100%; max-width: 620px; }
  .public-design .hero { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .public-design .hero h1 { font-size: clamp(3.1rem, 7vw, 4.6rem); }
}
@media (max-width: 760px) {
  .public-design .hero { padding: 3rem 18px; }
  .public-design .hero h1 { font-size: clamp(2.9rem, 11vw, 4rem); }
  .public-design .hero-sub { font-size: 0.92rem; }
  .public-design .calc-card, .public-design .hero-card { padding: 1.35rem; }
  .public-design .hero-actions .btn { flex: 1 1 180px; }
  .public-design .section-title { font-size: 2.6rem; }
  .public-design section.about .about-grid { grid-template-columns: 1fr !important; }
  .public-design section.about .about-photo { width: min(100%, 320px) !important; margin: 0 auto; min-height: 410px; }
  .published-testimonials { grid-template-columns: 1fr; }
  .proof-page-shell { width: calc(100% - 32px); }
  .testimonials-page .proof-page-header { padding: 3rem 0; }
  .proof-page-header h1 { font-size: 3.25rem; }
  .published-testimonial { padding: 1.4rem; }
  .public-design footer { padding: 2rem 1rem; }
}
@media (max-width: 640px) {
  /* Preserve the existing search view-toggle and map-height offsets. */
  .search-page .marketing-nav { height: 60px; min-height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-design *, .public-design *::before, .public-design *::after {
    scroll-behavior: auto !important; animation: none !important; transition: none !important;
  }
}
