/* ============================================================
   bobclary.com — homepage v3 (Q4 2026)
   Loaded only by /index.html, after site.css.
   New sections are prefixed .hm- so nothing here can collide
   with the shared stylesheet the inner pages depend on.
   ============================================================ */

:root {
  --hm-ink: #0A1A2F;
  --hm-panel: #11233B;
  --hm-line-dark: rgba(255, 255, 255, 0.14);
  --hm-text-dark: rgba(255, 255, 255, 0.72);
  --hm-cool: #F2F4F7;
}

/* keyboard focus — the shared sheet only styles focus on form fields */
a:focus-visible, button:focus-visible, input[type="range"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- hero ---------- */
.hero.hm-hero { padding-bottom: clamp(56px, 8vw, 96px); }
.hm-hero .hero-grid { grid-template-columns: 1.5fr 0.85fr; gap: clamp(40px, 5vw, 80px); }
@media (max-width: 900px) { .hm-hero .hero-grid { grid-template-columns: 1fr; } }
.hm-hero .hero-headline {
  font-size: clamp(44px, 5.4vw, 80px);
  line-height: 0.96;
  margin-bottom: 32px;
  text-wrap: balance;
}
.hm-hero .hero-headline .hm-line { display: block; }
.hm-hero .hero-headline .hm-line-accent { color: var(--accent); }
.hm-hero .hero-sub { max-width: 52ch; }
.hm-hero .hero-sub + .hero-sub { margin-top: 16px; }
.hm-hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  max-width: 52ch;
}
@media (max-width: 900px) {
  .hm-hero .hero-photo-col { max-width: 420px; }
  .hm-hero .portrait-badge { right: -8px; top: -18px; }
}

/* ---------- fee math (the one loud section) ---------- */
.hm-fee {
  background: var(--hm-ink);
  color: #fff;
  padding: clamp(72px, 10vw, 140px) 0;
}
.hm-fee-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 900px) { .hm-fee-head { grid-template-columns: 1fr; align-items: start; } }
.hm-h2 {
  font-weight: 900;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hm-lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  max-width: 54ch;
}
.hm-fee .hm-lede { color: var(--hm-text-dark); }
.hm-fee .hm-lede strong { color: #fff; font-weight: 700; }

.hm-calc {
  background: var(--hm-panel);
  border: 1px solid var(--hm-line-dark);
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 48px);
}
.hm-calc-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hm-calc-top label { font-size: 16px; font-weight: 500; color: var(--hm-text-dark); }
.hm-spend {
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hm-spend small { font-size: 0.42em; font-weight: 500; letter-spacing: 0; color: var(--hm-text-dark); margin-left: 6px; }

.hm-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 32px; background: transparent; cursor: pointer; display: block;
}
.hm-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill, 8%), rgba(255,255,255,0.18) var(--fill, 8%));
}
.hm-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.18); }
.hm-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.hm-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 6px solid var(--accent);
  margin-top: -11px;
}
.hm-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 6px solid var(--accent);
}
.hm-range-ends {
  display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.hm-rows { margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--hm-line-dark); }
.hm-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 2fr minmax(190px, 0.9fr);
  gap: 16px 32px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--hm-line-dark);
}
.hm-row-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.hm-row-name span { display: block; font-weight: 400; font-size: 14px; color: var(--hm-text-dark); margin-top: 2px; letter-spacing: 0; }
/* the track is 0–40% of spend; bars sit at their true share of it */
.hm-track { position: relative; height: 18px; border-radius: 999px; background: rgba(255,255,255,0.07); }
.hm-bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.hm-bar-agency { left: 50%; width: 50%; background: rgba(255,255,255,0.55); }
.hm-bar-me { left: 25%; width: 12.5%; background: var(--accent); }
.hm-row-amt {
  text-align: right;
  font-weight: 800; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hm-row-amt small { font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--hm-text-dark); }
.hm-row-me .hm-row-amt { color: var(--accent); }
@media (max-width: 760px) {
  .hm-row { grid-template-columns: 1fr auto; }
  .hm-track { grid-column: 1 / -1; order: 3; }
}

.hm-result {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px 40px; flex-wrap: wrap;
}
.hm-result-label { font-size: 16px; color: var(--hm-text-dark); margin-bottom: 6px; }
.hm-result-num {
  font-weight: 900; font-size: clamp(34px, 4.6vw, 64px);
  letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hm-result-num small { font-size: 0.36em; font-weight: 500; letter-spacing: 0; color: var(--hm-text-dark); margin-left: 8px; white-space: nowrap; }
.hm-fineprint { margin-top: 24px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.5); max-width: 86ch; }

.hm-why {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
@media (max-width: 900px) { .hm-why { grid-template-columns: 1fr; } }
.hm-why h3 { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.hm-why p { font-size: 16px; line-height: 1.6; color: var(--hm-text-dark); max-width: 42ch; }

/* ---------- audit + form ---------- */
.hm-audit {
  background: var(--hm-cool);
  padding: clamp(72px, 10vw, 140px) 0;
  scroll-margin-top: 72px;
}
.hm-audit-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
@media (max-width: 960px) { .hm-audit-grid { grid-template-columns: 1fr; } }
.hm-audit .hm-lede { color: var(--ink-soft); margin-top: 24px; }
.hm-contents { margin-top: 36px; border-top: 1px solid var(--rule); }
.hm-contents > div {
  display: grid; grid-template-columns: minmax(150px, 0.7fr) 1.6fr; gap: 8px 28px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
@media (max-width: 560px) { .hm-contents > div { grid-template-columns: 1fr; } }
.hm-contents dt { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.hm-contents dd { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.hm-recent { margin-top: 28px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.hm-recent strong { color: var(--ink); font-weight: 600; }

.hm-form-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 30px 60px -40px rgba(10, 26, 47, 0.35);
}
.hm-form-card h3 { font-weight: 800; font-size: 26px; letter-spacing: -0.025em; line-height: 1.1; }
.hm-form-card .hm-form-sub { font-size: 15px; color: var(--muted); margin: 8px 0 24px; }
.hm-form-card .form { gap: 18px; }
.hm-form-card .form-field label {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  text-transform: none; letter-spacing: 0; color: var(--ink);
}
.hm-form-card .form-field input,
.hm-form-card .form-field select { border-radius: 10px; border-color: rgba(10, 26, 47,0.22); }
.hm-form-card .form-field input:focus,
.hm-form-card .form-field select:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.hm-form-card .form button[type="submit"] { width: 100%; justify-content: center; border-radius: 999px; }
.hm-assure { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); list-style: none; }
.hm-assure li { font-size: 14px; line-height: 1.5; color: var(--ink-soft); padding: 3px 0; }
.hm-assure a { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--accent); }

/* ---------- what I run ---------- */
.hm-run { padding: clamp(72px, 10vw, 140px) 0; }
.hm-run .hm-h2 { max-width: 16ch; margin-bottom: clamp(32px, 4vw, 56px); }
.hm-svc { border-top: 1px solid var(--ink); }
.hm-svc-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 190px;
  gap: 12px clamp(24px, 4vw, 64px); align-items: baseline;
  padding: clamp(24px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 860px) { .hm-svc-row { grid-template-columns: 1fr; } .hm-svc-row a.hm-more { justify-self: start; } }
.hm-svc-row h3 { font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.03em; line-height: 1.08; }
.hm-svc-row p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }
.hm-svc-row a.hm-more { justify-self: end; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.hm-svc-row a.hm-more:hover { color: var(--accent-dim); }
.hm-run-foot { margin-top: 28px; font-size: 16px; color: var(--muted); max-width: 70ch; }
.hm-run-foot a { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); }

/* ---------- proof ---------- */
.hm-proof { padding: 0 0 clamp(72px, 10vw, 140px); }
.hm-proof .hm-h2 { margin-bottom: clamp(32px, 4vw, 56px); max-width: 18ch; }
.hm-proof .case-client { max-width: 44ch; }

/* ---------- closing: how it starts ---------- */
.hm-close { background: var(--hm-ink); color: #fff; padding: clamp(72px, 10vw, 140px) 0; }
.hm-close .hm-h2 { max-width: 15ch; }
.hm-steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin: clamp(40px, 5vw, 72px) 0;
  padding-top: 28px; border-top: 1px solid var(--hm-line-dark);
}
@media (max-width: 860px) { .hm-steps { grid-template-columns: 1fr; } }
.hm-steps li { counter-increment: step; }
.hm-steps li::before {
  content: counter(step);
  display: block; font-weight: 900; font-size: 44px; letter-spacing: -0.04em; line-height: 1;
  color: var(--accent); margin-bottom: 14px;
}
.hm-steps h3 { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.hm-steps p { font-size: 16px; line-height: 1.6; color: var(--hm-text-dark); max-width: 40ch; }
.hm-close-cta { display: flex; gap: 16px 28px; align-items: center; flex-wrap: wrap; }
.hm-close .btn-accent:hover { background: #fff; color: var(--ink); }
.hm-close-phone { font-size: 17px; color: var(--hm-text-dark); }
.hm-close-phone a { color: #fff; font-weight: 700; border-bottom: 2px solid var(--accent); }
.hm-close-alt { margin-top: 36px; font-size: 15px; color: rgba(255,255,255,0.55); max-width: 70ch; }
.hm-close-alt a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); }

/* ---------- mobile call / audit bar ---------- */
.hm-mbar { display: none; }
@media (max-width: 760px) {
  .hm-mbar {
    display: grid; grid-template-columns: 1fr 1.3fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--hm-ink);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--hm-line-dark);
  }
  .hm-mbar a { padding: 16px 12px; text-align: center; font-weight: 700; font-size: 15px; color: #fff; }
  .hm-mbar a.hm-mbar-main { background: var(--accent); color: var(--ink); }
  body { padding-bottom: 56px; }
}

/* broken third-party image safety net (testimonial avatars / press logos are hotlinked) */
img.hm-img-failed { visibility: hidden; }
.t-avatar:has(img.hm-img-failed) { background: var(--hm-cool); }
.press-item:has(img.hm-img-failed) { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* very narrow phones: stack the fee rows so long ranges never push the track wide */
@media (max-width: 440px) {
  .hm-row { grid-template-columns: minmax(0, 1fr); }
  .hm-row-amt { text-align: left; white-space: normal; }
  .hm-track { order: 0; }
  .hm-result-num small { display: block; margin: 6px 0 0; }
}
@media (max-width: 440px) {
  .hm-result .btn, .hm-close-cta .btn { white-space: normal; width: 100%; justify-content: center; line-height: 1.2; }
}
