/* ==========================================================================
   SOLWEL V3 — Brand Light override (loads after main.css)
   Palette from SOLWEL_LOGO.png: charcoal #585052 · solar orange #F59A00
   Type: Montserrat (900 display / 400–800 UI) — closest match to logo caps
   ========================================================================== */

:root {
  --ink: #faf8f5;
  --ink-2: #ffffff;
  --ink-3: #f1eee8;
  --line: rgba(56, 50, 48, 0.13);
  --paper: #f1eee8;
  --white: #3d3a3b;
  --muted: rgba(61, 58, 59, 0.68);
  --muted-2: rgba(61, 58, 59, 0.45);
  --volt: #f59a00;
  --volt-deep: #d98700;
  --font-display: "Montserrat", "Arial Black", sans-serif;
  --font-body: "Montserrat", -apple-system, sans-serif;
}

/* Montserrat is wide — tighten display sizing vs Anton */
.display { font-weight: 900; letter-spacing: -0.02em; line-height: 1.04; }
.hero h1 { font-size: clamp(38px, 6.4vw, 92px); max-width: 13ch; }
.section-head h2 { font-size: clamp(28px, 4vw, 52px); }
.line-card h3 { font-size: clamp(24px, 2.6vw, 34px); }
.gateway h3 { font-size: clamp(22px, 2.8vw, 36px); }
.signup h2 { font-size: clamp(28px, 4vw, 50px); }
.power-watts { font-size: 38px; font-weight: 900; }
.product-price .now, .hero-buy .hb-price .now { font-weight: 900; }
.hero-stat .num { font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); }

/* logo image */
.logo img { height: 30px; width: auto; }
.site-footer .logo img { height: 26px; }

/* ticker */
.ticker { background: var(--volt); color: #fff; }

/* buttons */
.btn-volt { background: var(--volt); color: #fff; }
.btn-volt:hover { background: #3d3a3b; color: #fff; box-shadow: 0 8px 26px rgba(61, 58, 59, 0.25); }
.btn-ghost { color: #3d3a3b; box-shadow: inset 0 0 0 1.5px rgba(61, 58, 59, 0.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--volt); color: var(--volt); }
.btn-dark { background: #3d3a3b; color: #fff; }
.btn-dark:hover { background: var(--volt); color: #fff; }

/* header */
.site-header { background: rgba(250, 248, 245, 0.86); border-bottom: 1px solid var(--line); }
.main-nav a { color: var(--muted); }
.main-nav a:hover, .main-nav a.is-active { color: #3d3a3b; border-color: var(--volt); }
.icon-btn { color: #3d3a3b; }
.nav-toggle { color: #3d3a3b; }
.main-nav.is-open { background: rgba(250, 248, 245, 0.97); border-bottom: 1px solid var(--line); }

/* hero — warm light */
.hero-media {
  background:
    radial-gradient(1100px 560px at 78% 14%, rgba(245, 154, 0, 0.28), transparent 62%),
    radial-gradient(800px 600px at 12% 90%, rgba(245, 154, 0, 0.12), transparent 60%),
    linear-gradient(180deg, #fffdf9 0%, #faf8f5 100%);
}
.hero::after { background: linear-gradient(180deg, rgba(250, 248, 245, 0.1) 0%, rgba(250, 248, 245, 0) 45%, rgba(250, 248, 245, 0.85) 100%); }
.hero-grid {
  background-image:
    linear-gradient(rgba(56, 50, 48, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 50, 48, 0.05) 1px, transparent 1px);
}
.hero-stats { border-top: 1px solid var(--line); }

/* hero quick-buy */
.hero-buy {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(245, 154, 0, 0.55);
  box-shadow: 0 20px 50px rgba(56, 50, 48, 0.14);
}
.hero-buy .hb-badge { background: var(--volt); color: #fff; }

/* trust strip */
.trust { background: #ffffff; }

/* line cards keep dark cinematic scenes — text stays light on them */
.line-card h3 { color: #fff; }
.line-card p { color: rgba(255, 255, 255, 0.78); }
.line-card .tag { background: rgba(255, 255, 255, 0.92); border: 0; color: #3d3a3b; }

/* product cards */
.product-card { background: #fff; box-shadow: 0 6px 24px rgba(56, 50, 48, 0.06); }
.product-card:hover { border-color: rgba(245, 154, 0, 0.55); }
.product-badge { background: var(--volt); color: #fff; }

/* power cards */
.power-card { background: #fff; }
.power-card.is-hot { border-color: rgba(245, 154, 0, 0.6); }
.power-card .hot-badge { background: var(--volt); color: #fff; }

/* spots */
.spot-card { background: #fff; }
.spot-card:hover { border-color: rgba(245, 154, 0, 0.5); }
.spot-card .spot-icon { background: rgba(245, 154, 0, 0.1); border-color: rgba(245, 154, 0, 0.35); }

/* tiktok band — light sand; phone cards stay dark (video frames) */
.tiktok-section { background: var(--ink-3); }
.phone-card .quote { color: rgba(255, 255, 255, 0.88); }
.hashtags span b { color: var(--volt); }

/* steps */
.step { background: #fff; }
.step::before { -webkit-text-stroke: 1.5px rgba(245, 154, 0, 0.75); font-weight: 900; }

/* gateways: DIY goes charcoal, Pro stays light card */
.gateway-diy { background: linear-gradient(120deg, #4a4546 0%, #383435 100%); border: 0; }
.gateway-diy h3, .gateway-diy p strong { color: #fff; }
.gateway-diy p { color: rgba(255, 255, 255, 0.72); }
.gateway-pro { background: #fff; border: 1px solid var(--line); color: #3d3a3b; }
.gateway-pro p { color: var(--muted); }
.gateway-pro .kicker { color: var(--volt) !important; }

/* signup */
.signup-form input { background: #fff; color: #3d3a3b; }

/* footer — light sand */
.site-footer { background: #efece6; border-top: 1px solid var(--line); }
.footer-brand p { color: var(--muted); }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--volt); }
.footer-col address { color: var(--muted); }
.footer-bottom { color: var(--muted-2); }
.footer-social a { color: var(--muted); }
.footer-social a:hover { color: var(--volt); }

/* ==========================================================================
   V3 — photo treatment + expanded sections
   ========================================================================== */

/* ---------- photos in hero ---------- */
.hero-media { overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero::after {
  background:
    linear-gradient(90deg, rgba(250,248,245,.97) 0%, rgba(250,248,245,.92) 34%, rgba(250,248,245,.55) 56%, rgba(250,248,245,.28) 100%),
    linear-gradient(180deg, rgba(250,248,245,.55) 0%, transparent 30%, rgba(250,248,245,.5) 100%);
}
.hero-grid { display: none; }

/* ---------- photos in line cards / product cards ---------- */
.line-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-media { background: #e9e5de; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-card .ph-photo { position: absolute; inset: 0; z-index: -2; }
.phone-card .ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.phone-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,8,10,.15) 0%, rgba(8,8,10,.35) 45%, rgba(8,8,10,.92) 100%);
}
.phone-card .glow { display: none; }

/* ---------- brands strip ---------- */
.brands { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); background: #fff; }
.brands .lede {
  text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 26px;
}
.brand-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.brand-chip {
  font-size: clamp(15px, 1.6vw, 19px); font-weight: 800; letter-spacing: -0.01em;
  color: #6b6567; padding: 10px 20px; border: 1px solid var(--line);
  border-radius: 10px; background: #fbfaf8; transition: color .18s, border-color .18s;
}
.brand-chip:hover { color: var(--volt); border-color: rgba(245,154,0,.5); }

/* ---------- split feature (photo + copy) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #e9e5de; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy h2 { font-size: clamp(26px, 3.4vw, 44px); margin-bottom: 14px; }
.split-copy > p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.box-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted);
}
.box-list li b { color: #3d3a3b; font-weight: 800; }
.box-list li::before {
  content: "✓"; color: #fff; background: var(--volt); flex: none;
  width: 20px; height: 20px; border-radius: 999px; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* ---------- reviews ---------- */
.reviews { background: var(--ink-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rating-row {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 34px;
}
.rating-row .score { font-size: 44px; font-weight: 900; letter-spacing: -0.02em; }
.stars { display: inline-flex; gap: 3px; color: var(--volt); font-size: 19px; letter-spacing: 2px; }
.rating-row .count { font-size: 14px; color: var(--muted); font-weight: 700; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
}
.review-card .stars { font-size: 15px; }
.review-card p { font-size: 15px; color: #4a4648; line-height: 1.6; flex: 1; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer .av {
  width: 38px; height: 38px; border-radius: 999px; flex: none;
  background: var(--volt); color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.reviewer .who { font-size: 14px; font-weight: 800; }
.reviewer .where { font-size: 12.5px; color: var(--muted-2); }
.verified { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #4a9050; }

/* ---------- comparison ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-card { border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); background: #fff; }
.compare-card.win { border: 2px solid rgba(245,154,0,.55); background: linear-gradient(160deg, rgba(245,154,0,.07), #fff 60%); }
.compare-card .ctag {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 10px; display: block;
}
.compare-card.win .ctag { color: var(--volt); }
.compare-card.lose .ctag { color: var(--muted-2); }
.compare-card h3 { font-size: 22px; margin-bottom: 16px; }
.compare-card li {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 0;
  border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted);
}
.compare-card li::before { flex: none; font-weight: 800; font-size: 13px; }
.compare-card.win li::before { content: "✓"; color: var(--volt); }
.compare-card.lose li::before { content: "✕"; color: #c4746f; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 42px 22px 0; position: relative;
  font-size: clamp(16px, 1.8vw, 19px); font-weight: 800; color: #3d3a3b;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 700; color: var(--volt); line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .fa { padding: 0 42px 24px 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---------- financing band ---------- */
.finance {
  border-radius: var(--radius); padding: clamp(28px, 4vw, 46px);
  background: linear-gradient(120deg, rgba(245,154,0,.14), rgba(245,154,0,.04));
  border: 1px solid rgba(245,154,0,.32);
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.finance h3 { font-size: clamp(22px, 2.8vw, 34px); margin-bottom: 8px; }
.finance p { color: var(--muted); max-width: 52ch; }
.finance .pays { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.finance .pays span {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 16px; font-weight: 800; font-size: 13px; color: #575254;
}

/* ---------- why-us stats ---------- */
.why-grid-v3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.why-stat .n { font-size: clamp(26px, 3vw, 38px); font-weight: 900; color: var(--volt); letter-spacing: -0.02em; }
.why-stat .t { font-size: 15px; font-weight: 800; margin: 6px 0 4px; }
.why-stat .d { font-size: 13.5px; color: var(--muted); }

@media (max-width: 1020px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
  .why-grid-v3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
}
@media (max-width: 760px) {
  .review-grid, .compare-grid, .why-grid-v3 { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(180deg, rgba(250,248,245,.7) 0%, rgba(250,248,245,.86) 40%, rgba(250,248,245,.97) 100%); }
}

/* ==========================================================================
   V3 — subpage styles (backyard / diy / nomad)
   ========================================================================== */

/* full-bleed page hero with photo */
.sub-hero {
  position: relative;
  min-height: min(76vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.sub-hero .sh-media { position: absolute; inset: 0; z-index: -2; }
.sub-hero .sh-media img { width: 100%; height: 100%; object-fit: cover; }
.sub-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,16,14,.42) 0%, rgba(20,16,14,.18) 40%, rgba(20,16,14,.82) 100%);
}
.sub-hero-inner { width: 100%; padding: clamp(40px, 7vw, 90px) 0 clamp(30px, 4vw, 54px); color: #fff; }
.sub-hero h1 { font-size: clamp(38px, 6.6vw, 88px); color: #fff; margin-bottom: 14px; }
.sub-hero .sh-sub { font-size: clamp(16px, 1.9vw, 21px); color: rgba(255,255,255,.9); max-width: 46ch; font-weight: 600; }
.sub-hero .kicker { color: #ffc86b; }
.sub-hero .sh-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.sub-hero .sh-meta {
  display: flex; gap: clamp(20px, 4vw, 52px); flex-wrap: wrap;
  margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.28);
}
.sub-hero .sh-meta .n { font-size: clamp(20px, 2.4vw, 30px); font-weight: 900; color: #ffc86b; }
.sub-hero .sh-meta .l { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* breadcrumb */
.crumb { padding: 18px 0 0; font-size: 13px; font-weight: 700; color: var(--muted-2); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--volt); }

/* photo gallery grid — the image-heavy blocks */
.gal { display: grid; gap: 14px; }
.gal-3 { grid-template-columns: repeat(3, 1fr); }
.gal-4 { grid-template-columns: repeat(4, 1fr); }
.gal-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; isolation: isolate; display: flex;
  flex-direction: column; justify-content: flex-end; padding: 22px;
  transition: transform .25s ease;
}
.gal-item.wide { aspect-ratio: 16 / 10; }
.gal-item:hover { transform: translateY(-5px); }
.gal-item img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.gal-item::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,16,14,.06) 0%, rgba(20,16,14,.3) 48%, rgba(20,16,14,.9) 100%);
}
.gal-item h3 { color: #fff; font-size: clamp(18px, 2vw, 24px); margin-bottom: 6px; }
.gal-item p { color: rgba(255,255,255,.85); font-size: 14px; }
.gal-item .pill {
  position: absolute; top: 16px; left: 16px; background: var(--volt); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 6px;
}

/* alternating photo + copy rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(36px, 5vw, 72px); }
.feature-row.flip .fr-media { order: 2; }
.fr-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: #e9e5de; }
.fr-media img { width: 100%; height: 100%; object-fit: cover; }
.fr-copy h2 { font-size: clamp(24px, 3.2vw, 40px); margin-bottom: 12px; }
.fr-copy > p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }

/* wide banded CTA */
.band {
  border-radius: var(--radius); overflow: hidden; position: relative; isolation: isolate;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 60px); text-align: center; color: #fff;
}
.band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,16,14,.68), rgba(20,16,14,.8));
}
.band h2 { color: #fff; font-size: clamp(28px, 4.4vw, 56px); margin-bottom: 14px; }
.band p { color: rgba(255,255,255,.88); max-width: 54ch; margin: 0 auto 26px; font-size: 16px; }

/* simple spec/kit list for DIY */
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s; }
.kit-card:hover { transform: translateY(-5px); border-color: rgba(245,154,0,.5); }
.kit-card .kc-media { aspect-ratio: 3 / 2; background: #e9e5de; }
.kit-card .kc-media img { width: 100%; height: 100%; object-fit: cover; }
.kit-card .kc-body { padding: 22px 22px 26px; }
.kit-card h3 { font-size: 18px; margin-bottom: 8px; }
.kit-card p { font-size: 14px; color: var(--muted); }
.kit-card .kc-list { margin-top: 12px; }
.kit-card .kc-list li { font-size: 13.5px; color: var(--muted); padding: 6px 0; border-top: 1px solid var(--line); }

@media (max-width: 1020px) {
  .gal-4 { grid-template-columns: repeat(2, 1fr); }
  .gal-3 { grid-template-columns: repeat(2, 1fr); }
  .kit-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .fr-media { order: 0; }
}
@media (max-width: 700px) {
  .gal-3, .gal-4, .kit-grid { grid-template-columns: 1fr; }
  .sub-hero { min-height: 62vh; }
}

/* ==========================================================================
   V3 — Solar Assistant chat widget
   ========================================================================== */

.sw-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--volt); color: #fff; border: 0;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 22px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(56, 50, 48, .28);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.sw-launch:hover { background: #3d3a3b; box-shadow: 0 14px 36px rgba(56, 50, 48, .34); }
.sw-launch:active { transform: scale(.97); }
.sw-launch svg { width: 19px; height: 19px; }
.sw-launch .sw-dot {
  position: absolute; top: -4px; right: -4px; width: 13px; height: 13px;
  background: #e05252; border: 2px solid #faf8f5; border-radius: 999px;
}
.sw-launch[hidden] { display: none; }

.sw-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 901;
  width: min(384px, calc(100vw - 40px));
  height: min(620px, calc(100vh - 40px));
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 26px 70px rgba(56, 50, 48, .3);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.sw-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.sw-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; background: #3d3a3b; color: #fff; flex: none;
}
.sw-head .sw-av {
  width: 38px; height: 38px; border-radius: 999px; flex: none;
  background: var(--volt); display: flex; align-items: center; justify-content: center;
}
.sw-head .sw-av svg { width: 20px; height: 20px; color: #fff; }
.sw-head .sw-who { font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.sw-head .sw-status { font-size: 11.5px; color: rgba(255,255,255,.68); }
.sw-head .sw-status i { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: #6cc070; margin-right: 5px; }
.sw-head .sw-close {
  margin-left: auto; background: transparent; border: 0; color: rgba(255,255,255,.75);
  cursor: pointer; padding: 6px; border-radius: 8px; line-height: 0;
}
.sw-head .sw-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.sw-head .sw-close svg { width: 18px; height: 18px; }

.sw-log {
  flex: 1; overflow-y: auto; padding: 18px 16px 8px;
  background: #faf8f5; display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.sw-msg { max-width: 86%; font-size: 14px; line-height: 1.55; }
.sw-msg.bot {
  align-self: flex-start; background: #fff; color: #3d3a3b;
  border: 1px solid var(--line); border-radius: 4px 14px 14px 14px;
  padding: 12px 14px;
}
.sw-msg.me {
  align-self: flex-end; background: var(--volt); color: #fff;
  border-radius: 14px 4px 14px 14px; padding: 11px 14px; font-weight: 600;
}
.sw-msg.bot b { font-weight: 800; }
.sw-msg.bot a { color: var(--volt-deep); font-weight: 700; text-decoration: underline; }
.sw-msg.bot ul { margin: 8px 0 0; padding-left: 18px; }
.sw-msg.bot li { margin-bottom: 4px; }
.sw-msg .sw-note { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted-2); font-style: italic; }

.sw-typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px; }
.sw-typing span {
  width: 7px; height: 7px; border-radius: 999px; background: rgba(61,58,59,.34);
  animation: swb 1.1s infinite ease-in-out;
}
.sw-typing span:nth-child(2) { animation-delay: .15s; }
.sw-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes swb { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

.sw-card {
  align-self: flex-start; width: 86%; background: #fff; border: 1.5px solid rgba(245,154,0,.5);
  border-radius: 14px; overflow: hidden;
}
.sw-card img { width: 100%; height: 116px; object-fit: cover; display: block; }
.sw-card .sw-cb { padding: 13px 14px 15px; }
.sw-card .sw-cn { font-weight: 800; font-size: 14.5px; }
.sw-card .sw-cd { font-size: 12.5px; color: var(--muted); margin: 4px 0 9px; }
.sw-card .sw-cp { font-weight: 900; font-size: 19px; color: var(--volt); }
.sw-card .sw-cp small { font-size: 11.5px; color: var(--muted-2); font-weight: 700; }
.sw-card .sw-cta {
  display: block; margin-top: 10px; text-align: center; background: var(--volt); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px; border-radius: 999px; text-decoration: none;
}
.sw-card .sw-cta:hover { background: #3d3a3b; }

.sw-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 16px 12px; background: #faf8f5; flex: none; }
.sw-chip {
  background: #fff; border: 1px solid rgba(245,154,0,.45); color: var(--volt-deep);
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.sw-chip:hover { background: var(--volt); color: #fff; border-color: var(--volt); }

.sw-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; flex: none; }
.sw-form input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 15px; font-family: var(--font-body); font-size: 13.5px; color: #3d3a3b;
  outline: none; background: #faf8f5;
}
.sw-form input:focus { border-color: var(--volt); background: #fff; }
.sw-form button {
  flex: none; width: 40px; height: 40px; border-radius: 999px; border: 0;
  background: var(--volt); color: #fff; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.sw-form button:hover { background: #3d3a3b; }
.sw-form button svg { width: 17px; height: 17px; }

.sw-foot { padding: 0 12px 10px; background: #fff; font-size: 11px; color: var(--muted-2); text-align: center; flex: none; }

@media (max-width: 560px) {
  .sw-panel {
    right: 0; bottom: 0; width: 100vw; height: 100dvh;
    border-radius: 0; border: 0;
  }
  .sw-launch { right: 14px; bottom: 14px; padding: 13px 18px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-panel, .sw-launch { transition: none; }
  .sw-typing span { animation: none; }
  .sw-log { scroll-behavior: auto; }
}

/* ==========================================================================
   V3 — state law map (FAQ page)
   ========================================================================== */

/* the map section runs wider than the standard 1240px wrap so the map itself
   gets real estate — the panel beside it stays a fixed, readable column.
   .section zeroes horizontal padding, which only shows once the section is
   wider than the viewport, so put the gutters back explicitly. */
#map { max-width: 1560px; padding-left: var(--pad); padding-right: var(--pad); }
.lawmap-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(290px, 0.85fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
}

.lawmap {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(8px, 1.2vw, 16px);
}
.usmap { width: 100%; height: auto; display: block; }
.usmap .st path {
  fill: #ded8d0; stroke: #fff; stroke-width: 1;
  transition: fill .15s ease, transform .15s ease;
  cursor: pointer;
}
.usmap-borders path { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1; pointer-events: none; }

/* status colours — also encoded in the legend and the detail panel, never
   colour alone (the panel always spells the status out in words) */
.usmap .st[data-status="law"]    path { fill: #4e9e5f; }
.usmap .st[data-status="signed"] path { fill: var(--volt); }
.usmap .st[data-status="moving"] path { fill: #f0cf94; }
.usmap .st[data-status="none"]   path { fill: #d9d3cb; }

.usmap .st:hover path,
.usmap .st:focus-visible path,
.usmap .st.is-active path { fill: #3d3a3b; }
.usmap .st:focus { outline: none; }
.usmap .st:focus-visible path { stroke: #3d3a3b; stroke-width: 2; }

.lawmap-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: #3d3a3b; color: #fff; border-radius: 10px;
  padding: 9px 12px; font-size: 13px; font-weight: 700; line-height: 1.35;
  box-shadow: 0 10px 26px rgba(56,50,48,.28);
  opacity: 0; transform: translate(-50%, -114%); transition: opacity .12s ease;
  white-space: nowrap; max-width: 260px;
}
.lawmap-tip.on { opacity: 1; }
.lawmap-tip small { display: block; font-weight: 600; font-size: 11.5px; color: rgba(255,255,255,.75); white-space: normal; }

.lawmap-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.lawmap-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lawmap-legend i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }

/* side panel */
.lawpanel { position: sticky; top: 92px; }
.lawpanel .lp-pick { margin-bottom: 14px; }
.lawpanel select {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; font-weight: 700;
  color: #3d3a3b; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 13px 18px; outline: none; cursor: pointer;
}
.lawpanel select:focus { border-color: var(--volt); }
.lawcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.lawcard.is-law    { border-top: 4px solid #4e9e5f; }
.lawcard.is-signed { border-top: 4px solid var(--volt); }
.lawcard.is-moving { border-top: 4px solid #e0b464; }
.lawcard.is-none   { border-top: 4px solid #b9b2a9; }
.lawcard h3 { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 6px; }
.lawcard .lp-status { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.lawcard.is-law .lp-status { color: #3f8a4f; }
.lawcard.is-signed .lp-status { color: var(--volt-deep); }
.lawcard.is-moving .lp-status { color: #b98a2e; }
.lawcard.is-none .lp-status { color: var(--muted-2); }
.lawcard p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.lawcard .lp-facts { margin-top: 14px; }
.lawcard .lp-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.lawcard .lp-facts dt, .lawcard .lp-facts .k { color: var(--muted-2); font-weight: 700; }
.lawcard .lp-facts .v { color: #3d3a3b; font-weight: 800; text-align: right; }
.lawcard .lp-cta { margin-top: 18px; }

.lawnote {
  margin-top: 18px; background: #fbf6ec; border: 1px solid rgba(245,154,0,.35);
  border-radius: var(--radius); padding: 18px 20px; font-size: 13.5px; color: #6b6156; line-height: 1.6;
}
.lawnote b { color: #3d3a3b; }

@media (max-width: 1040px) {
  .lawmap-wrap { grid-template-columns: 1fr; }
  .lawpanel { position: static; }
  .lawmap-tip { display: none; }   /* touch devices get the panel instead */
}

/* ==========================================================================
   V3 — bulk / multi-unit (apartment complexes, landlords, property managers)
   ========================================================================== */

.bulk {
  border-radius: var(--radius); overflow: hidden; position: relative; isolation: isolate;
  background: linear-gradient(120deg, #45403f 0%, #33302f 100%);
  color: #fff; padding: clamp(34px, 4.6vw, 66px);
}
.bulk::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-size: cover; background-position: center;
}
.bulk .bulk-head { max-width: 62ch; margin-bottom: clamp(26px, 3vw, 40px); }
.bulk .kicker { color: #ffc86b; }
.bulk h2 { color: #fff; font-size: clamp(26px, 3.6vw, 46px); margin-bottom: 12px; }
.bulk .bulk-lede { color: rgba(255,255,255,.78); font-size: clamp(15px, 1.7vw, 18px); }

.tier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.tier {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 22px 20px;
}
.tier.is-best { border-color: rgba(245,154,0,.65); background: rgba(245,154,0,.12); }
.tier .t-doors { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; color: #ffc86b; letter-spacing: -0.02em; }
.tier .t-name { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 4px 0 12px; }
.tier ul { margin: 0; }
.tier li {
  display: flex; gap: 9px; align-items: flex-start; padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(255,255,255,.82);
}
.tier li::before { content: "✓"; color: #ffc86b; font-weight: 800; flex: none; }

.bulk-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 40px); align-items: start; }
.bulk-why li {
  display: flex; gap: 11px; align-items: flex-start; padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.14); font-size: 14.5px; color: rgba(255,255,255,.8);
}
.bulk-why li b { color: #fff; font-weight: 800; }
.bulk-why li::before {
  content: "→"; color: #ffc86b; font-weight: 800; flex: none;
}

/* quote form */
.bulk-form {
  background: #fff; color: #3d3a3b; border-radius: 14px; padding: 26px 24px;
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}
.bulk-form h3 { font-size: 20px; margin-bottom: 4px; }
.bulk-form .bf-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.bulk-form label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.bulk-form .bf-row { margin-bottom: 14px; }
.bulk-form .bf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bulk-form input, .bulk-form select {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: #3d3a3b;
  background: #faf8f5; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; outline: none;
}
.bulk-form input:focus, .bulk-form select:focus { border-color: var(--volt); background: #fff; }
.bulk-form .bf-err { display: none; color: #c2564e; font-size: 12.5px; font-weight: 700; margin-top: 8px; }
.bulk-form.has-error .bf-err { display: block; }
.bulk-form .btn { width: 100%; margin-top: 4px; }
.bulk-form .bf-fine { font-size: 12px; color: var(--muted-2); margin-top: 12px; text-align: center; }
.bulk-form .bf-done { display: none; text-align: center; padding: 12px 0; }
.bulk-form.is-done .bf-done { display: block; }
.bulk-form.is-done .bf-live { display: none; }
.bulk-form .bf-done .tick {
  width: 46px; height: 46px; border-radius: 999px; background: rgba(78,158,95,.14);
  color: #3f8a4f; font-size: 24px; font-weight: 800; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 12px;
}
.bulk-form .bf-done h3 { margin-bottom: 6px; }
.bulk-form .bf-done p { font-size: 14px; color: var(--muted); }

.bulk-note { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; max-width: 74ch; }
.bulk-note b { color: rgba(255,255,255,.85); }

@media (max-width: 900px) {
  .tier-row { grid-template-columns: 1fr; }
  .bulk-split { grid-template-columns: 1fr; }
}
