/* =========================================================
   Brand Command Wraps — Commercial LP (light mode)
   Palette matched to get.brandcommandwraps.com/requests
   ========================================================= */
:root {
  --deep: #1b0856;          /* header band / dark sections */
  --deep-2: #1e0951;        /* footer-band art color */
  --purple: #562cf4;        /* primary buttons + highlights */
  --purple-hover: #4520d6;
  --purple-ink: #3b1ea8;    /* purple text on white */
  --green: #53cf19;         /* phone numbers, checks */
  --lime: #a6dd0a;
  --lav: #f4f1ff;           /* light alt sections */
  --lav-2: #ebe6ff;
  --lav-line: #ddd5fb;

  --white: #ffffff;
  --text: #1c1838;
  --muted: #5d5a75;
  --line: #e4e1ef;

  --ph-bg: #ffe94d;         /* placeholder highlight */
  --ph-ink: #111111;
  --error: #d92d3a;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "Oswald", "Arial Narrow", Impact, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --mtn-h: clamp(24px, 4vw, 56px);
  --header-h: 0px;          /* header isn't sticky on mobile */
  --mobile-bar-h: 64px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; margin: 0; color: var(--deep); letter-spacing: -.3px; }
h1 { font-size: clamp(1.9rem, 7vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 5.6vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.lead { font-size: 1.05rem; color: var(--muted); }

/* Placeholders: impossible to miss */
mark.ph {
  background: var(--ph-bg); color: var(--ph-ink);
  padding: 0 .3em; border-radius: 3px; font-weight: 700;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Anchor offsets for the sticky header */
.anchor { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 700 1rem/1.1 var(--font-head); text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s, transform .15s, border-color .15s, box-shadow .15s;
}
.btn-primary { background: var(--purple); color: var(--white); box-shadow: 0 8px 20px rgba(86,44,244,.25); }
.btn-primary:hover { background: var(--purple-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .7; cursor: wait; }
.btn-ghost { background: var(--white); border-color: var(--lav-line); color: var(--deep); }
.btn-ghost:hover { border-color: var(--purple); }
.btn-outline { background: var(--white); border-color: var(--white); color: var(--deep); }
.btn-outline:hover { background: var(--lav); }
.btn-lg { min-height: 56px; font-size: 1.1rem; padding: 1rem 1.6rem; }
.btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn:focus-visible, .chip input:focus-visible + span, a:focus-visible, summary:focus-visible, .g-item:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px;
}
.text-link { color: var(--purple-ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--purple); }
.text-link:hover { color: var(--purple); }

/* ---------- Header ---------- */
.site-header { z-index: 50; }
.header-mtn {
  height: var(--mtn-h);
  background: var(--white) url("/assets/img/mountains-top.webp") center bottom / 100% 100% no-repeat;
}
.header-band { background: var(--deep); color: var(--white); margin-top: -1px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.logo { height: 46px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.1; min-height: 44px; justify-content: center; }
.hp-top { font: 600 .8rem/1.1 var(--font-cond); letter-spacing: .3px; color: var(--white); }
.hp-num { font: 700 1rem/1.2 var(--font-head); color: var(--green); white-space: nowrap; }
.header-cta { display: none; }

/* ---------- Hero + form ---------- */
.hero { padding: 26px 0 40px; background: var(--white); }
.hero-head { text-align: center; max-width: 880px; margin: 0 auto 18px; }
.eyebrow { margin: 0 0 10px; font: 700 .78rem/1.3 var(--font-body); letter-spacing: 1.4px; color: var(--purple); }
.hero h1 { color: var(--purple-ink); margin-bottom: 12px; }
.hero-sub { font-size: 1.05rem; color: var(--deep); margin: 0 auto; max-width: 38em; }

.hero-grid { display: grid; gap: 22px; }
.hero-truck img { width: 100%; max-width: 600px; margin: 0 auto; }

.quote-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 16px; box-shadow: 0 14px 40px rgba(27,8,86,.12);
}
.quote-head { text-align: center; margin-bottom: 16px; }
.quote-head h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); color: var(--purple-ink); margin-bottom: 6px; }
.quote-head p { margin: 0; font-weight: 600; color: var(--muted); font-size: .95rem; }

.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust-list li {
  display: flex; align-items: center; gap: 10px;
  background: var(--lav); border: 1px solid var(--lav-line); border-radius: var(--radius);
  padding: 12px; font-size: .88rem; font-weight: 700; line-height: 1.25; color: var(--deep);
}
.trust-list svg { width: 22px; height: 22px; flex: none; color: var(--purple); }
.hero-call { display: block; text-align: center; margin-top: 14px; color: var(--muted); text-decoration: none; font-weight: 500; padding: 6px 0; }
.hero-call strong { color: var(--purple-ink); }

/* ---------- Form fields ---------- */
.field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0; }
label, legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; color: var(--deep); }
.req { color: var(--error); margin-left: 2px; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; margin: 4px 0 0; }
label .hint, legend .hint { display: inline; margin-left: 4px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 16px/1.4 var(--font-body); color: var(--text);
  background: var(--white); border: 1.5px solid #cfcbe0; border-radius: 8px;
  -webkit-appearance: none; appearance: none;
}
::placeholder { color: #9a97ad; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%231b0856' d='M0 0h12L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(86,44,244,.16); }
.invalid input, .invalid select, .invalid textarea { border-color: var(--error); }
.err { color: var(--error); font-size: .85rem; font-weight: 600; margin: 6px 0 0; }
.err:empty { display: none; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; font-weight: 600; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 8px 14px;
  border: 1.5px solid #cfcbe0; border-radius: 999px; background: var(--white); color: var(--deep);
  font-size: .9rem; line-height: 1.2; user-select: none;
  transition: background .12s, border-color .12s;
}
.chip:hover span { border-color: var(--purple); }
.chip input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--white); }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 800; }
.invalid .chip span { border-color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: #fdecee; color: #9b1c27; font-weight: 600; }
.form-error a { color: inherit; }
.form-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--purple-ink); font-weight: 700; }

/* ---------- Generic sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--lav); }
.section-head { margin: 0 auto 28px; max-width: 780px; text-align: center; }
.section-head h2 { margin-bottom: 10px; }
.section-head .lead { margin: 0; }
.after-grid { margin: 28px auto 20px; text-align: center; font-size: 1.05rem; max-width: 40em; }
.after-grid.strong { font-weight: 700; font-size: 1.15rem; color: var(--deep); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-grid li { min-width: 0; }
.g-item { display: block; width: 100%; padding: 0; border: 0; background: var(--lav-2); border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.g-item:hover img { transform: scale(1.04); }
.g-cap { font-size: .78rem; color: var(--muted); margin: 6px 2px 0; line-height: 1.3; font-weight: 500; }
.gallery .center { margin-top: 28px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(14,4,46,.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #ddd; text-align: center; margin-top: 10px; font-size: .95rem; }
.lb-close, .lb-nav { position: fixed; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }

/* ---------- Compare ---------- */
.compare-grid { display: grid; gap: 14px; }
.compare-card { border-radius: var(--radius-lg); padding: 22px 20px; }
.compare-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.compare-card li { position: relative; padding: 9px 0 9px 34px; border-top: 1px solid rgba(0,0,0,.07); font-weight: 500; }
.compare-card li::before { position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.compare-card.bad { background: #f3f3f6; color: var(--muted); }
.compare-card.bad h3 { color: #4a4860; }
.compare-card.bad li::before { content: "✕"; background: #dedde6; color: #6b6980; }
.compare-card.good { background: var(--deep); color: var(--white); }
.compare-card.good h3 { color: var(--white); }
.compare-card.good li { border-top-color: rgba(255,255,255,.12); }
.compare-card.good li::before { content: "✓"; background: var(--green); color: var(--deep); }
.callout {
  background: var(--lav); color: var(--deep); border: 1px solid var(--lav-line); border-left: 6px solid var(--purple);
  border-radius: var(--radius); padding: 20px; margin: 0 auto 24px; max-width: 820px; font-size: 1.02rem;
}
.callout p { margin: 0; }
.callout strong { font-size: 1.25rem; display: block; margin-bottom: 4px; color: var(--purple-ink); }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 0; position: relative; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 50px; bottom: 2px; width: 2px; background: var(--lav-line); }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--purple); color: var(--white); display: grid; place-items: center; font: 800 1.25rem/1 var(--font-head); }
.steps h3 { margin: 11px 0 6px; color: var(--purple-ink); }
.steps p { margin: 0; color: var(--muted); }
.how-photos { display: grid; gap: 10px; margin-top: 24px; }
.how-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

/* ---------- Calculator ---------- */
.calc-card { display: grid; gap: 18px; }
.calc-inputs, .calc-results { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 16px; box-shadow: 0 10px 30px rgba(27,8,86,.06); }
.advanced { margin: 4px 0 16px; border: 1px dashed var(--lav-line); background: var(--lav); border-radius: 8px; padding: 0 12px; }
.advanced summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--deep); min-height: 44px; }
.calc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-results h3 { font-size: 1.05rem; margin: 0 0 10px; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.result { background: #faf9ff; border: 1px solid var(--lav-line); border-radius: 10px; padding: 10px 6px; text-align: center; min-width: 0; }
.result.featured { background: var(--lav-2); border-color: var(--purple); }
.r-label { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.r-val { display: block; font: 800 clamp(.95rem, 4.4vw, 1.4rem)/1.2 var(--font-head); color: var(--deep); margin-top: 4px; overflow-wrap: anywhere; }
.result.featured .r-val { color: var(--purple-ink); }
.disclaimer { font-size: .78rem; color: var(--muted); }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scrollbar-width: none;
}
.review-grid::-webkit-scrollbar { display: none; }
.review-grid .review { scroll-snap-align: center; }
.swipe-hint { text-align: center; font-size: .82rem; color: var(--muted); margin: 0; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 4px 14px rgba(27,8,86,.05); }
.stars { color: #f5b301; font-size: 1.2rem; letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: .97rem; flex: 1; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.review figcaption span { color: var(--muted); }
.reviews .center { margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--white); border: 1px solid var(--lav-line); border-radius: var(--radius); }
.faq-list summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative; font-weight: 700; color: var(--deep); min-height: 44px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: var(--white);
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 700;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--deep-2); color: var(--white); padding: 0 0 64px; text-align: center; }
.final-mtn { height: clamp(60px, 17vw, 240px); background: var(--white) url("/assets/img/mountains-astronaut.webp") center bottom / 100% auto no-repeat; margin-bottom: 28px; }
.final-cta h2 { color: var(--white); font-size: clamp(1.9rem, 7vw, 3rem); margin-bottom: 10px; }
.final-cta .lead { color: #d8d2f5; font-size: 1.1rem; }
.final-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); color: var(--muted); padding: 32px 0; text-align: center; font-size: .9rem; border-top: 1px solid var(--line); }
.footer-logo { height: 56px; width: auto; margin: 0 auto 12px; }
.footer-info { margin: 0 0 6px; }
.footer-info strong { color: var(--deep); }
.footer-info a { color: var(--purple-ink); font-weight: 600; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(27,8,86,.08);
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; font: 700 1rem/1 var(--font-head); text-decoration: none; }
.mb-call { background: var(--deep); color: var(--white); }
.mb-quote { background: var(--purple); color: var(--white); }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .field-row.three { grid-template-columns: 1fr 1fr 1fr; }
  .final-btns { flex-direction: row; justify-content: center; }
  .how-photos { grid-template-columns: 1fr 1fr; }
  .quote-card { padding: 28px 26px; }
}

@media (min-width: 768px) {
  :root { --header-h: 84px; --mobile-bar-h: 0px; }
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .site-header { position: sticky; top: calc(var(--mtn-h) * -1); }
  .header-inner { height: 84px; }
  .logo { height: 60px; }
  .hp-top { font-size: 1.15rem; }
  .hp-num { font-size: 1.3rem; }
  .header-cta { display: inline-flex; background: var(--green); color: var(--deep); box-shadow: none; }
  .header-cta:hover { background: var(--lime); }
  .section { padding: 76px 0; }
  .review-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .swipe-hint { display: none; }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .compare-card { padding: 28px; }
  .calc-card { grid-template-columns: 1fr 1fr; gap: 20px; }
  .calc-inputs, .calc-results { padding: 24px; }
}

@media (min-width: 960px) {
  .hero { padding: 36px 0 64px; }
  .hero-head { margin-bottom: 36px; }
  .hero-grid {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 24px 56px; align-items: start;
    grid-template-areas: "truck form" "points form";
  }
  .hero-truck { grid-area: truck; padding-top: 12px; }
  .hero-form { grid-area: form; }
  .hero-points { grid-area: points; }
  .hero-call { text-align: left; }
  .trust-list { grid-template-columns: 1fr; gap: 12px; }
  .trust-list li { font-size: 1.05rem; padding: 16px 18px; }
  .trust-list svg { width: 26px; height: 26px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .steps li { grid-template-columns: 1fr; align-content: start; gap: 10px; padding-bottom: 0; }
  .steps li:not(:last-child)::after { left: 56px; right: -20px; top: 23px; bottom: auto; width: auto; height: 2px; }
  .steps h3 { margin-top: 4px; }
}

/* =========================================================
   Thank-you page
   ========================================================= */
.ty-page { padding-bottom: 0; }
.ty-hero { background: var(--white); padding: 48px 0 24px; text-align: center; }
.ty-check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--green); color: var(--deep); display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.ty-hero h1 { color: var(--purple-ink); font-size: clamp(1.9rem, 7vw, 3rem); margin-bottom: 14px; }
.ty-body { font-size: 1.08rem; color: var(--deep); max-width: 34em; margin: 0 auto; }
.ty-body a { color: var(--purple-ink); font-weight: 700; }
.ty-h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 24px; text-align: center; }
.ty-steps h3 { font-size: 1.1rem; }
.ty-mockup { width: 100%; margin: 12px auto 28px; }
.ty-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-dark { background: var(--deep); color: var(--white); }
.btn-dark:hover { background: #2b1478; }
.ty-page .section { padding-top: 24px; }
@media (min-width: 560px) { .ty-btns { flex-direction: row; justify-content: center; } }
@media (min-width: 960px) { .ty-steps { grid-template-columns: repeat(3, 1fr); } }
