/* CBS — dark/industrial aesthetic. Mobile-first. */

/* ── Reset & tokens ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0f0f0f;
  --bg-surface:  #181818;
  --bg-elevated: #212121;
  --border:      #2e2e2e;
  --text:        #e8e8e8;
  --text-muted:  #888;
  --accent:      #f4a12a;
  --accent-dark: #c07d10;
  --danger:      #e05555;
  --success:     #4caf72;
  --radius:      6px;
  --max-w:       1080px;
  --nav-h:       56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: block; /* override template's flex centering */
  align-items: unset;
  justify-content: unset;
}

/* ── Utility ────────────────────────────────────────────────────────────── */
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section-heading { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 2rem; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 700; cursor: pointer; border: none;
  border-radius: var(--radius); text-decoration: none; transition: background 0.15s, transform 0.1s;
  white-space: nowrap; letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.98); }
.btn--cta {
  background: var(--accent); color: #0f0f0f;
  padding: 14px 28px; font-size: 1rem;
}
.btn--cta:hover { background: var(--accent-dark); }
.btn--sm { padding: 9px 18px; font-size: 0.875rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,15,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.06em; color: var(--accent); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(64px, 10vw, 100px) 0 clamp(48px, 8vw, 80px);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #1e1a0e 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--border);
}
.hero__inner { max-width: 700px; margin: 0 auto; padding: 0 20px; text-align: center; }
.hero__eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
  background: rgba(244,161,42,0.1); padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(244,161,42,0.25);
}
.hero__headline {
  font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.12;
  margin-bottom: 1.2rem; color: #fff;
  /* Subtle industrial texture: slight text-shadow */
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero__sub { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--text-muted); max-width: 520px; margin: 0 auto 2rem; }
.hero__proof {
  list-style: none; margin-top: 1.8rem;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.9rem; color: var(--text-muted);
}
.hero__proof li::before { content: '— '; color: var(--border); }

/* ── Pain section ───────────────────────────────────────────────────────── */
.pain { padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid var(--border); }
.pain__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.pain__card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.pain__icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.pain__card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.pain__card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* ── Form section ───────────────────────────────────────────────────────── */
.form-section {
  padding: clamp(48px, 7vw, 80px) 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.form-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 780px) {
  .form-section__inner { grid-template-columns: 1fr 1fr; align-items: start; }
}
.form-section__copy h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
.form-section__copy p { color: var(--text-muted); margin-bottom: 1.4rem; line-height: 1.6; }
.form-section__bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.form-section__bullets li { font-size: 0.95rem; color: var(--success); }
.form-section__form-wrap {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}

/* ── Lead form ──────────────────────────────────────────────────────────── */
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form__optional { font-weight: 400; opacity: 0.7; }
.form__row input,
.form__row textarea {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: inherit;
  font-size: 1rem; padding: 11px 14px; transition: border-color 0.15s;
  -webkit-appearance: none; /* iOS fix */
  width: 100%;
}
.form__row input::placeholder,
.form__row textarea::placeholder { color: #555; }
.form__row input:focus,
.form__row textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(244,161,42,0.18);
}
.form__row textarea { resize: vertical; min-height: 88px; }
.form__row--hidden { display: none; }

.form__confirm { font-size: 0.9rem; margin-top: 4px; min-height: 22px; }
.form__confirm--success { color: var(--success); font-weight: 600; }
.form__confirm--error   { color: var(--danger);  font-weight: 600; }

/* ── Nav email link (secondary/tertiary — hidden on small screens) ──────── */
.nav__email-link {
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav__email-link:hover { color: var(--text); }
/* Hide on narrow viewports so the nav doesn't crowd */
@media (max-width: 600px) { .nav__email-link { display: none; } }

/* ── Form section email alt line ────────────────────────────────────────── */
.form-section__email-alt {
  margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); text-align: center;
}
.form-section__email-alt a { color: var(--text-muted); text-decoration: underline; }
.form-section__email-alt a:hover { color: var(--text); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { padding: 32px 20px; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.footer__contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 16px; margin-bottom: 10px;
}
.footer__brand { font-weight: 700; color: var(--text); }
.footer__contact-item { color: var(--text-muted); text-decoration: underline; }
.footer__contact-item:hover { color: var(--text); }
.footer__copy { color: var(--text-muted); }
.footer a { color: var(--text-muted); text-decoration: underline; }
.footer a:hover { color: var(--text); }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.72); align-items: center; justify-content: center;
  padding: 16px;
  /* iOS bounce-scroll fix */
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px 24px; max-width: 480px; width: 100%;
  max-height: calc(100vh - 40px); overflow-y: auto;
  position: relative;
  /* Subtle industrial top accent */
  border-top: 3px solid var(--accent);
}
.modal__close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: 4px;
  line-height: 1;
}
.modal__close:hover { background: var(--border); color: var(--text); }
.modal__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; padding-right: 32px; }
.modal__sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }

/* ── Proof section ──────────────────────────────────────────────────────── */
.proof {
  background: var(--bg);
  padding: var(--space-3xl, clamp(48px, 7vw, 80px)) 0;
}
.proof__stat-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.proof__dot { color: var(--text-muted); }
.proof__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 48px;
  text-align: center;
  line-height: 1.6;
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proof__card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.proof__card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.proof__archetype {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.proof__region {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
}
.proof__card-body {
  padding: 20px;
  flex: 1;
}
.proof__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.proof__label--after { color: var(--accent); }
.proof__state p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.proof__card-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #333, transparent);
  margin: 16px 0;
}
.proof__card-footer {
  padding: 16px 20px 20px;
  background: #141414;
  border-top: 1px solid #222;
}
.proof__quote {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 6px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.proof__cite {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: normal;
}

@media (max-width: 900px) {
  .proof__grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .proof { padding: clamp(48px, 7vw, 64px) 0; }
  .proof__stat-strip { gap: 6px; font-size: 0.7rem; }
}

/* ── Assessment section ─────────────────────────────────────────────────── */
.assessment {
  padding: clamp(48px, 7vw, 80px) 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.assessment__header { text-align: center; margin-bottom: 40px; }
.assessment__eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
  background: rgba(244,161,42,0.1); padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(244,161,42,0.25);
}
.assessment__header .section-heading { margin-bottom: 0.75rem; }
.assessment__sub {
  color: var(--text-muted); font-size: 1.05rem; max-width: 560px;
  margin: 0 auto; line-height: 1.6;
}

/* Progress */
.assessment__progress {
  height: 3px; background: var(--border); border-radius: 2px;
  margin-bottom: 8px; overflow: hidden;
}
.assessment__progress-bar {
  height: 100%; background: var(--accent);
  border-radius: 2px; transition: width 0.3s ease;
}
.assessment__progress-label {
  font-size: 0.75rem; color: var(--text-muted); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 28px;
}

/* Question card */
.assessment__q { display: none; }
.assessment__q.active { display: block; }
.assessment__q-text {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 700; color: #fff;
  margin-bottom: 24px; line-height: 1.4; max-width: 680px;
}
.assessment__options {
  display: flex; flex-direction: column; gap: 10px; max-width: 680px;
}
.assessment__opt {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px; text-align: left;
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  line-height: 1.4;
}
.assessment__opt:hover { border-color: var(--accent); background: rgba(244,161,42,0.06); }
.assessment__opt.selected {
  border-color: var(--accent); background: rgba(244,161,42,0.12);
  color: #fff;
}

/* Results */
.assessment__results-header { margin-bottom: 32px; }
.assessment__results-title { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.assessment__results-sub { color: var(--text-muted); font-size: 1rem; max-width: 640px; line-height: 1.6; }

.assessment__scores { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.assessment__score-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.assessment__score-card--high { border-left: 3px solid var(--danger); }
.assessment__score-card--medium { border-left: 3px solid var(--accent); }
.assessment__score-card--low { border-left: 3px solid var(--success); }

.assessment__score-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.assessment__score-name { font-size: 0.9rem; font-weight: 700; color: #fff; }
.assessment__score-badge {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.assessment__score-badge--high   { background: rgba(224,85,85,0.15);  color: var(--danger);  }
.assessment__score-badge--medium { background: rgba(244,161,42,0.15); color: var(--accent);  }
.assessment__score-badge--low    { background: rgba(76,175,114,0.15); color: var(--success); }

.assessment__score-bar-wrap {
  height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 12px;
}
.assessment__score-bar {
  height: 100%; border-radius: 2px; transition: width 0.5s ease;
}
.assessment__score-bar--high   { background: var(--danger);  }
.assessment__score-bar--medium { background: var(--accent);  }
.assessment__score-bar--low    { background: var(--success); }

.assessment__score-copy {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin: 0;
}

/* Email gate */
.assessment__email-gate {
  background: var(--bg); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); border-radius: var(--radius);
  padding: 28px 24px; margin-bottom: 28px;
}
.assessment__email-gate-headline {
  font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.assessment__email-gate-sub {
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.55;
}
.assessment__email-form { display: flex; flex-direction: column; gap: 10px; }
.assessment__email-input {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: inherit;
  font-size: 1rem; padding: 11px 14px; transition: border-color 0.15s;
  -webkit-appearance: none; width: 100%;
}
.assessment__email-input::placeholder { color: #555; }
.assessment__email-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(244,161,42,0.18);
}
.assessment__email-btn { white-space: nowrap; }
.assessment__email-confirm { font-size: 0.9rem; margin-top: 4px; min-height: 22px; }
.assessment__email-confirm--success { color: var(--success); font-weight: 600; }
.assessment__email-confirm--error   { color: var(--danger);  font-weight: 600; }

/* ── ROI Calculator section ─────────────────────────────────────────────── */
.roi {
  padding: clamp(48px, 7vw, 80px) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.roi__header { text-align: center; margin-bottom: 40px; }
.roi__eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
  background: rgba(244,161,42,0.1); padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(244,161,42,0.25);
}
.roi__header .section-heading { margin-bottom: 0.75rem; }
.roi__sub {
  color: var(--text-muted); font-size: 1.05rem; max-width: 560px;
  margin: 0 auto; line-height: 1.6;
}

/* Inputs grid */
.roi__inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.roi__input-group { display: flex; flex-direction: column; gap: 8px; }
.roi__input-label {
  font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.roi__input-label span { font-weight: 400; opacity: 0.7; }
.roi__input-row { display: flex; gap: 10px; align-items: center; }
.roi__number {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: inherit;
  font-size: 1rem; padding: 10px 12px; width: 90px;
  -webkit-appearance: none; transition: border-color 0.15s;
  /* Remove spinner arrows */
  -moz-appearance: textfield;
}
.roi__number::-webkit-outer-spin-button,
.roi__number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.roi__number:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(244,161,42,0.18); }
.roi__slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 3px; background: var(--border); border-radius: 2px; outline: none;
  cursor: pointer;
}
.roi__slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent); cursor: pointer;
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--accent);
}
.roi__slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 2px solid var(--bg-elevated);
}
.roi__slider-val {
  font-size: 0.85rem; font-weight: 700; color: var(--accent);
  min-width: 40px; text-align: right;
}

.roi__cta-row {
  text-align: center; margin-bottom: 32px;
}

/* Results card */
.roi__results {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); border-radius: var(--radius);
  padding: 28px 24px; margin-top: 0;
}
.roi__results-title {
  font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 20px;
}
.roi__line-items { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
.roi__line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--border); gap: 12px;
}
.roi__line:last-child { border-bottom: none; }
.roi__line-label { font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }
.roi__line-label small { display: block; font-size: 0.75rem; color: #555; margin-top: 2px; }
.roi__line-val { font-size: 1rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.roi__line--total .roi__line-label { font-size: 1rem; font-weight: 700; color: #fff; }
.roi__line--total .roi__line-val { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

.roi__savings {
  background: rgba(244,161,42,0.06); border: 1px solid rgba(244,161,42,0.2);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 28px;
}
.roi__savings p { font-size: 0.92rem; color: var(--text); line-height: 1.5; margin: 0; }
.roi__savings strong { color: var(--accent); }

/* Results CTAs */
.roi__result-ctas {
  display: flex; flex-direction: column; gap: 14px; align-items: stretch;
}
@media (min-width: 520px) {
  .roi__result-ctas { flex-direction: row; align-items: flex-start; }
}

.roi__email-wrap { flex: 1; }
.roi__email-form { display: flex; gap: 8px; flex-wrap: wrap; }
.roi__email-input {
  flex: 1; min-width: 180px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: inherit;
  font-size: 1rem; padding: 10px 14px; transition: border-color 0.15s;
  -webkit-appearance: none;
}
.roi__email-input::placeholder { color: #555; }
.roi__email-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(244,161,42,0.18); }
.roi__email-confirm { font-size: 0.85rem; margin-top: 6px; min-height: 20px; }
.roi__email-confirm--success { color: var(--success); font-weight: 600; }
.roi__email-confirm--error   { color: var(--danger);  font-weight: 600; }

.roi__book-btn {
  /* secondary CTA — outlined style */
  background: transparent; border: 2px solid var(--accent); color: var(--accent);
  padding: 10px 20px; font-size: 0.95rem; font-weight: 700; border-radius: var(--radius);
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.roi__book-btn:hover { background: var(--accent); color: #0f0f0f; }

/* ── Mobile tweaks ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero__headline { font-size: 2rem; }
  .btn--lg { padding: 15px 24px; font-size: 1rem; }
  .modal { padding: 24px 16px; }
}
