/* Spontbox site styles — layout & components built on brand/tokens.css (--sb-* custom properties).
   Mobile-first per brief §5; do not hand-roll new color/spacing tokens here. */

*, *::before, *::after { box-sizing: border-box; }

.visually-hidden-focusable {
  position: absolute; left: -9999px; top: auto;
  background: var(--sb-white); color: var(--sb-forest);
  padding: var(--sb-2) var(--sb-3); z-index: 100;
}
.visually-hidden-focusable:focus { left: var(--sb-3); top: var(--sb-2); }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--sb-3); }
p { margin: 0 0 var(--sb-3); }
a { text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--sb-3);
}

section { padding-block: var(--sb-5); }
@media (min-width: 768px) {
  section { padding-block: var(--sb-6); }
}
@media (min-width: 1200px) {
  section { padding-block: var(--sb-7); }
}

.eyebrow {
  font: 700 12px/1 var(--sb-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sb-leaf);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sb-white);
  border-bottom: 1px solid var(--sb-flax);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sb-2);
  gap: var(--sb-3);
}
.site-header .logo img { height: 32px; width: auto; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: var(--sb-4); align-items: center; }
.site-nav a { color: var(--sb-bark); font-weight: 600; font-size: 14px; }
.site-nav a:hover { color: var(--sb-leaf); }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex;
  border: 1.5px solid var(--sb-forest);
  border-radius: var(--sb-r-input);
  background: none;
  padding: 8px 12px;
  font: 600 14px var(--sb-font-body);
  color: var(--sb-forest);
}
@media (min-width: 900px) {
  .site-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--sb-flax);
  background: var(--sb-white);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; padding: var(--sb-3); gap: var(--sb-3); }
.mobile-nav a { color: var(--sb-bark); font-weight: 600; }

/* Sticky mobile contact/CTA bar — brief §5 "accessible contact path on every page" */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background: var(--sb-forest);
  padding: var(--sb-2) var(--sb-3);
  display: flex;
  gap: var(--sb-2);
}
.sticky-cta .sb-btn-primary { flex: 1; text-align: center; }
.sticky-cta a.sb-btn-secondary { color: var(--sb-white); border-color: var(--sb-white); flex: 0 0 auto; }
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sb-forest);
  color: var(--sb-sage-tint);
  padding-block: var(--sb-6);
}
.site-footer a { color: var(--sb-white); }
.site-footer .logo img { height: 28px; margin-bottom: var(--sb-3); }
.footer-grid {
  display: grid;
  gap: var(--sb-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-grid h3 { color: var(--sb-white); font-family: var(--sb-font-body); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-grid li { margin-bottom: var(--sb-2); font-size: 14px; }
.footer-nap { font-size: 14px; opacity: 0.9; }
.footer-bottom {
  margin-top: var(--sb-5);
  padding-top: var(--sb-3);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  opacity: 0.8;
}

/* ---------- Hero ---------- */
.hero { background: var(--sb-paper); }
.hero .container { display: flex; flex-direction: column; gap: var(--sb-4); }
.hero h1 { font-size: 34px; max-width: 18ch; }
.hero .lede { font-size: 18px; max-width: 55ch; }
@media (min-width: 768px) {
  .hero h1 { font-size: 48px; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sb-3); align-items: center; }

/* ---------- Trust badges ---------- */
.trust-bar { display: flex; flex-wrap: wrap; gap: var(--sb-2); }

/* ---------- The Gap explainer (3-column spectrum) ---------- */
.gap-grid {
  display: grid;
  gap: var(--sb-3);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .gap-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.gap-card {
  border-radius: var(--sb-r-card);
  padding: var(--sb-4);
  background: var(--sb-white);
  border: 1px solid var(--sb-flax);
}
.gap-card.is-featured {
  background: var(--sb-forest);
  color: var(--sb-white);
  border-color: var(--sb-forest);
}
.gap-card.is-featured h3 { color: var(--sb-white); }
.gap-card h3 { font-size: 18px; }
.gap-card .price-tag { font-family: var(--sb-font-head); font-size: 22px; }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; gap: var(--sb-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.sb-card { padding: var(--sb-4); }
.sb-card h3 { font-size: 18px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: var(--sb-3); grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); align-items: start; } }
.pricing-card {
  padding: var(--sb-4);
  text-align: left;
  position: relative;
}
.pricing-card.is-popular { border-color: var(--sb-leaf); border-width: 2px; }
.pricing-card .badge-popular {
  position: absolute; top: -12px; left: var(--sb-4);
}
.pricing-card .price { font-family: var(--sb-font-head); font-size: 32px; color: var(--sb-forest); margin: var(--sb-2) 0; }
.pricing-card .price small { font-family: var(--sb-font-body); font-size: 14px; color: var(--sb-bark); }
.pricing-card ul { margin: var(--sb-3) 0; }
.pricing-card li { padding-left: 1.2em; text-indent: -1.2em; margin-bottom: var(--sb-2); font-size: 14px; }
.pricing-card li::before { content: "✓ "; color: var(--sb-leaf); font-weight: 700; }
.founding-offer {
  background: var(--sb-sage-tint);
  border-radius: var(--sb-r-card);
  padding: var(--sb-4);
  text-align: center;
}

/* ---------- Steps (How It Works) ---------- */
.steps { counter-reset: step; display: grid; gap: var(--sb-4); grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { text-align: left; }
.step .step-num {
  counter-increment: step;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sb-leaf);
  color: var(--sb-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sb-font-head); font-weight: 600;
  margin-bottom: var(--sb-2);
}
.step .step-num::before { content: counter(step); }

/* ---------- Empty states (brand/README.md: intentional, never blank) ---------- */
.empty-state {
  border: 1.5px dashed var(--sb-sage);
  background: repeating-linear-gradient(135deg, var(--sb-paper), var(--sb-paper) 10px, var(--sb-flax) 10px, var(--sb-flax) 11px);
  border-radius: var(--sb-r-card);
  padding: var(--sb-5);
  text-align: center;
  color: var(--sb-forest);
}
.empty-state .label {
  font-family: var(--sb-font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.img-placeholder {
  border: 1.5px dashed var(--sb-sage);
  background: repeating-linear-gradient(135deg, var(--sb-paper), var(--sb-paper) 10px, var(--sb-flax) 10px, var(--sb-flax) 11px);
  border-radius: var(--sb-r-card);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  color: var(--sb-forest);
  font: 600 12px/1 var(--sb-font-body);
  text-align: center;
  padding: var(--sb-3);
}

/* ---------- Testimonial carousel ---------- */
.testimonial-carousel {
  display: flex;
  gap: var(--sb-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sb-2);
}
.testimonial-carousel .sb-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .testimonial-carousel .sb-card { flex-basis: 45%; }
}
.testimonial-carousel blockquote { margin: 0 0 var(--sb-2); font-family: var(--sb-font-head); font-size: 17px; }
.testimonial-carousel cite { font-style: normal; font-size: 13px; opacity: 0.8; }

/* ---------- Forms ---------- */
.form-card { max-width: 560px; }
.field { margin-bottom: var(--sb-3); }
.field label { display: block; font: 600 13px var(--sb-font-body); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 15px var(--sb-font-body);
  padding: 11px 14px;
  border: 1.5px solid var(--sb-flax);
  border-radius: var(--sb-r-input);
  background: var(--sb-white);
  color: var(--sb-bark);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--sb-leaf);
  outline-offset: 1px;
  border-color: var(--sb-leaf);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-hint { font-size: 13px; opacity: 0.75; margin-top: 4px; }
.field-error { color: #a3372c; font-size: 13px; margin-top: 4px; }
.field .validation-summary-errors { color: #a3372c; font-size: 14px; margin-bottom: var(--sb-3); }
.field .validation-summary-errors ul { list-style: disc; padding-left: 1.2em; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.sb-btn-primary, button.sb-btn-secondary { width: 100%; }
@media (min-width: 480px) {
  button.sb-btn-primary, button.sb-btn-secondary { width: auto; }
}

/* ---------- City page ---------- */
.city-hero { background: var(--sb-forest); color: var(--sb-white); }
.city-hero h1 { color: var(--sb-white); }
.city-hero .eyebrow { color: var(--sb-sage); }
