/* Layout concept: a navy "Colorbond" hero band (corrugated texture) carrying headline, VSL and the quote card;
   then plain white/steel bands for proof, each opening with a site-label eyebrow. Single light theme by design. */
:root {
  --navy: #111a3a;        /* deep indigo, pairs with the logo blue */
  --blue: #4d5795;        /* CPS logo blue (sampled from logo) */
  --blue-hi: #5965b0;     /* buttons / focus */
  --on-navy: #b4bbec;     /* light periwinkle text on navy */
  --rust: #b5532a;        /* "before", offer stamp */
  --steel: #eff0f7;       /* blue-biased light neutral for alt bands */
  --line: #d6d9e8;
  --ink: #111a3a;
  --muted: #4f5672;
  --white: #ffffff;
  --tbc: #f4c542;

  --f-display: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif; /* matches the logo lettering */
  --f-body: 'Public Sans', 'Segoe UI', Roboto, Arial, sans-serif;

  --step--1: 0.875rem; --step-0: 1rem; --step-1: 1.125rem; --step-2: 1.375rem;
  --step-3: clamp(1.6rem, 4.5vw, 2.25rem); --step-4: clamp(2rem, 6.4vw, 3.6rem);
  --radius: 10px;
  --maxw: 1140px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 2px; }

.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(48px, 8vw, 88px); }
.band.alt { background: var(--steel); }
.eyebrow {
  font-family: var(--f-display); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue);
}
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 46rem; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* TBC marker: anything waiting on Tim. Remove the class when filled. */
.tbc { background: color-mix(in srgb, var(--tbc) 35%, transparent); outline: 1px dashed #b38b00; border-radius: 3px; padding: 0 3px; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--navy); }
.top { background: var(--navy); color: var(--white); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; border-bottom: 1px solid rgba(255,255,255,.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; min-width: 0; }
.brand img { height: 40px; width: auto; }
.brand-mark { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand-name { font-size: 0.78rem; line-height: 1.2; opacity: .8; max-width: 13rem; }
.top-call {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--white); color: var(--navy); text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 9px 16px; font-size: 0.95rem;
}
.top-call .num { display: none; }
@media (min-width: 640px) { .top-call .num { display: inline; } .top-call .lbl { display: none; } }
@media (max-width: 420px) { .brand-name { display: none; } }

/* ---------- Hero ---------- */
.hero {
  color: var(--white);
  background-color: var(--navy);
  background-image:
    radial-gradient(120% 80% at 80% 0%, rgba(89,101,176,.38), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 18px, rgba(0,0,0,.12) 18px 20px, transparent 20px 38px);
  padding-block: 22px 40px;
}
@media (min-width: 900px) { .hero { padding-block: 48px 64px; } }
.hero-head { display: grid; gap: 10px; margin-bottom: 18px; max-width: 52rem; }
.hero .eyebrow { color: var(--on-navy); }
.hero h1 { font-size: var(--step-4); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; }
.hero h1 .where { display: block; font-size: 0.42em; font-weight: 700; letter-spacing: 0.06em; color: var(--on-navy); margin-top: 6px; letter-spacing: 0; }
.hero-sub { font-size: var(--step-1); color: rgba(255,255,255,.85); max-width: 40rem; }
.stamp {
  display: inline-block; justify-self: start; background: var(--rust); color: var(--white);
  font-family: var(--f-display); font-weight: 800; font-size: 0.8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px; transform: rotate(-1.5deg);
}
.hero-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; } }

/* ---------- Media (video) ---------- */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b1230; max-width: 100%; }
.media video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.media.landscape { aspect-ratio: 16 / 9; }
.media.portrait { aspect-ratio: 9 / 16; }
.media .ph {
  position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 16px;
  color: rgba(255,255,255,.9);
  background:
    linear-gradient(180deg, rgba(17,26,58,.25), rgba(17,26,58,.85)),
    repeating-linear-gradient(90deg, #232c5c 0 14px, #1c244f 14px 18px, #283266 18px 30px);
}
.media.is-empty .ph { display: grid; }
.media.is-empty video { visibility: hidden; }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.play::before { content: ""; border-left: 18px solid var(--navy); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.ph strong { font-family: var(--f-display); font-size: var(--step-1); }
.ph small { font-size: 0.8rem; opacity: .75; }
.vsl-caption { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 12px; font-size: 0.9rem; color: rgba(255,255,255,.75); }
.vsl-caption span::before { content: "✓ "; color: var(--on-navy); font-weight: 700; }

/* ---------- Quote card ---------- */
.quote-card {
  background: var(--white); color: var(--ink); border-radius: 14px; padding: 22px 18px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); scroll-margin-top: 80px;
}
@media (min-width: 960px) { .quote-card { padding: 26px 24px 22px; position: sticky; top: 84px; } }
.quote-card h2 { font-size: var(--step-2); font-weight: 800; }
.quote-card .lede { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.progress { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; }
.progress-bar { flex: 1; height: 6px; background: var(--steel); border-radius: 99px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 20%; background: var(--blue-hi); border-radius: 99px; transition: width .3s ease; }
.progress [data-step-count] { font-size: 0.8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.step h3 { font-family: var(--f-body); font-size: var(--step-1); font-weight: 700; margin-bottom: 12px; letter-spacing: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  font: inherit; font-weight: 600; font-size: 0.95rem; text-align: left; line-height: 1.25;
  min-height: 52px; padding: 12px 14px; border-radius: 8px; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--line);
  transition: border-color .15s, background .15s;
}
.tile:hover { border-color: var(--blue-hi); }
.tile.is-on { border-color: var(--blue-hi); background: color-mix(in srgb, var(--blue-hi) 10%, var(--white)); }
.tiles.one { grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input[type=text], .field input[type=tel], .field input[type=email] {
  font: inherit; font-size: 1rem; width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink);
}
.field input:focus { border-color: var(--blue-hi); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-hi) 25%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin: 4px 0 14px; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--blue-hi); }
.err { color: #b42318; font-size: 0.85rem; font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  min-height: 54px; padding: 14px 22px; border-radius: 8px; border: 0;
  background: var(--blue-hi); color: var(--white); transition: background .15s;
}
.btn:hover { background: var(--blue); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; min-height: 24px; }
.link-btn { font: inherit; font-size: 0.9rem; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 0; text-decoration: underline; }
.assure { font-size: 0.82rem; color: var(--muted); margin-left: auto; text-align: right; }
.preview-note { margin-top: 12px; font-size: 0.78rem; background: var(--steel); border-radius: 6px; padding: 8px 10px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Trust bar ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 26px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 16px; }
@media (min-width: 800px) { .trust ul { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.trust li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--blue); }
.trust b { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.1; color: var(--navy); }
.trust span { font-size: 0.88rem; color: var(--muted); line-height: 1.35; }

/* ---------- Testimonials ---------- */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 72%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
@media (min-width: 800px) { .reel { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0,1fr)); overflow: visible; } }
.reel figure { margin: 0; scroll-snap-align: start; min-width: 0; }
.phone { border-radius: 26px; padding: 8px; background: var(--navy); box-shadow: 0 14px 34px rgba(17,26,58,.18); }
.phone .media { border-radius: 19px; }
.reel figcaption { margin-top: 12px; display: grid; gap: 2px; }
.reel figcaption b { font-family: var(--f-display); font-size: var(--step-1); }
.reel figcaption span { color: var(--muted); font-size: 0.9rem; }
.swipe-hint { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
@media (min-width: 800px) { .swipe-hint { display: none; } }

/* ---------- Reviews ---------- */
.rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.stars { color: #f5a623; font-size: 1.4rem; letter-spacing: 2px; }
.rating b { font-family: var(--f-display); font-size: var(--step-2); }
.reviews { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.review .stars { font-size: 1rem; }
.review p { color: var(--ink); }
.review footer { font-size: 0.88rem; color: var(--muted); }
.review.tbc-card { border: 1.5px dashed #b38b00; background: color-mix(in srgb, var(--tbc) 12%, var(--white)); }
.more-link { display: inline-block; margin-top: 18px; font-weight: 700; }

/* ---------- Before / after ---------- */
.ba-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .ba-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.ba {
  --pos: 50%; position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; border-radius: var(--radius);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.ba .layer { position: absolute; inset: 0; }
.ba .layer.after { background: repeating-linear-gradient(90deg, #56609f 0 16px, #4a538b 16px 20px, #5e69aa 20px 36px); }
.ba .layer.before { background: repeating-linear-gradient(90deg, #8a4a2c 0 16px, #6e3a22 16px 20px, #9c5733 20px 36px); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.ba img.loaded { opacity: 1; }
.ba .ph-note { position: absolute; inset: auto 0 14px; text-align: center; color: rgba(255,255,255,.85); font-size: 0.82rem; pointer-events: none; }
.ba .line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--white); transform: translateX(-50%); pointer-events: none; }
.ba .knob { position: absolute; top: 50%; left: var(--pos); width: 50px; height: 50px; border-radius: 50%; background: var(--white); transform: translate(-50%,-50%); box-shadow: 0 4px 14px rgba(0,0,0,.3); display: grid; place-items: center; pointer-events: none; font-weight: 800; color: var(--navy); }
.ba .tag { position: absolute; top: 12px; padding: 5px 10px; font-size: 0.75rem; letter-spacing: .14em; font-weight: 700; border-radius: 3px; pointer-events: none; text-transform: uppercase; }
.ba .tag.b { left: 12px; background: var(--rust); color: var(--white); }
.ba .tag.a { right: 12px; background: var(--white); color: var(--navy); }
.ba-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.ba-cap strong { font-family: var(--f-display); font-size: var(--step-1); text-transform: uppercase; letter-spacing: .02em; }
.ba-cap span { color: var(--muted); font-size: 0.95rem; text-align: right; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 50rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; font-size: var(--step-1); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 20px 20px; color: var(--muted); max-width: 65ch; }

/* ---------- Final CTA ---------- */
.final { background: var(--navy); color: var(--white); text-align: left; }
.final .wrap { display: grid; gap: 18px; }
.final h2 { font-size: var(--step-3); font-weight: 800; max-width: 34rem; }
.final p { color: rgba(255,255,255,.8); font-size: var(--step-1); max-width: 40rem; }
.final .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.foot { background: #0b1230; color: rgba(255,255,255,.7); font-size: 0.85rem; padding-block: 28px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: rgba(255,255,255,.85); }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(17,26,58,.96); backdrop-filter: blur(6px); display: flex; gap: 10px;
}
.callbar .btn { flex: 1; min-height: 50px; }
.callbar .btn.call { background: var(--white); color: var(--navy); }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- Simple pages (thank-you, not-a-fit, privacy) ---------- */
.simple { padding-block: clamp(40px, 8vw, 80px); }
.simple .wrap { max-width: 760px; display: grid; gap: 20px; }
.simple h1 { font-size: var(--step-4); font-weight: 800; }
.simple .lead-in { font-size: var(--step-1); color: rgba(255,255,255,.85); }
.next-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.next-steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); font-family: var(--f-display); font-weight: 800; }
.next-steps b { display: block; }
.next-steps span { color: var(--muted); }
.prose { max-width: 65ch; display: grid; gap: 14px; color: var(--ink); }
.prose h2 { font-size: var(--step-2); margin-top: 12px; }

/* Mobile: get the form closer to the top */
@media (max-width: 599px) {
  .hero-sub { font-size: 1rem; }
  .vsl-caption { display: none; }
  .hero-head { margin-bottom: 14px; gap: 8px; }
}
