/* ============================================================
   Home page redesign — Texas Police Salaries
   Mirrors the synthesized direction from the Claude Design handoff:
     HERO       ← V1 (asymmetric, headline + live snapshot card)
     SPONSORED  ← V3 (compact 4-up, gold top-border)
     REGION MAP ← V2 (dark navy section, TX outline + region list)
     HOW IT WORKS ← shared (light, 3-up)
     RECRUITER CTA ← V1 (dark gradient strip with big star)
   All rules scoped under `.home` so they don't bleed elsewhere.
   ============================================================ */

.home {
  --navy: #0a1f44;
  --navy-2: #14305f;
  --navy-3: #1e3a8a;
  --gold: #fdb913;
  --gold-d: #b45309;
  --gold-l: #fff7ed;
  --indigo: #0e7490;
  --indigo-l: #a5f3fc;
  --indigo-bg: #ecfeff;
  --text: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e4e4e7;
  --line-2: #f1f5f9;
  --bg: #fafafa;
  --card: #ffffff;
  --success: #15803d;

  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.home *,
.home *::before,
.home *::after { box-sizing: border-box; }

.home img { display: block; max-width: 100%; }

.home-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   PRIMITIVES
   ============================================================ */
.h-eyebrow {
  font: 700 10.5px/1 'Work Sans', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-eyebrow.is-gold { color: var(--gold-d); }
.h-eyebrow.is-indigo { color: var(--indigo); }

.h-section { padding: 72px 0; }
.h-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}
.h-section-title {
  font: 400 36px/1 'Bebas Neue', sans-serif;
  letter-spacing: .01em;
  color: var(--navy);
  margin: 8px 0 0;
}
.h-section-sub {
  color: var(--muted);
  font-size: 14px;
  max-width: 460px;
}
.h-section-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.h-num { font-variant-numeric: tabular-nums; letter-spacing: -.005em; }

.home .h-btn {
  font: 500 12.5px/1 'Work Sans', sans-serif;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home .h-btn-ghost { color: var(--body); border-color: var(--line); background: #fff; }
.home .h-btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.home .h-btn-navy { background: var(--navy); color: #fff; }
.home .h-btn-navy:hover { background: var(--navy-3); }
.home .h-btn-gold { background: var(--gold); color: #1b1300; font-weight: 600; }
.home .h-btn-gold:hover { background: #f7a900; }
.home .h-btn-lg { padding: 13px 22px; font-size: 14px; }

/* ============================================================
   V1 HERO — asymmetric headline + live snapshot card
   ============================================================ */
.v1-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}
.v1-hero::before {
  /* Faint Texas state outline behind the hero.
     The PNG has a white background, so mix-blend-mode: multiply
     drops the white and leaves only the black outline strokes. */
  content: '';
  position: absolute;
  left: 50%; top: -20px;
  transform: translateX(-50%);
  width: 640px; height: 820px;
  background-image: url("../images/texas-outline.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  mix-blend-mode: multiply;
  opacity: .28;
  pointer-events: none;
}
.v1-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.v1-hero-text { max-width: 600px; }
.v1-headline {
  font: 400 92px/1.0 'Bebas Neue', sans-serif;
  letter-spacing: .002em;
  color: var(--navy);
  margin: 0 0 32px;
}
.v1-headline-accent { color: var(--gold-d); }
.v1-sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  max-width: 520px;
  margin: 0 0 28px;
}
.v1-sub strong { color: var(--navy); font-weight: 600; }
.v1-hero-cta { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }

/* SNAPSHOT CARD */
.v1-snap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px 18px;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.04);
  position: relative;
}
.v1-snap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.v1-snap-meta {
  font: 500 11px/1 'JetBrains Mono', monospace;
  color: var(--faint);
  letter-spacing: .04em;
}
.v1-snap-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 16px;
}
.v1-stat-num {
  font: 700 26px/1 'Work Sans', sans-serif;
  color: var(--navy);
  letter-spacing: -.01em;
}
.v1-stat-lbl {
  font: 500 12px/1.2 'Work Sans', sans-serif;
  color: var(--muted);
  margin-top: 4px;
}
.v1-snap-list-head {
  display: flex;
  justify-content: space-between;
  font: 700 10px/1 'Work Sans', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.v1-snap-list-head-r { color: var(--faint); }
.v1-snap-list { list-style: none; margin: 0; padding: 0; }
.v1-snap-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}
.v1-snap-list li:last-child { border-bottom: 0; }
.v1-snap-list .v1-rank {
  font: 600 11px/1 'JetBrains Mono', monospace;
  color: var(--faint);
}
.v1-snap-list .v1-li-name {
  color: var(--navy);
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.v1-snap-list .v1-li-tag {
  display: inline-flex; align-items: center;
  padding: 2px 5px;
  font: 700 8px 'Work Sans', sans-serif;
  text-transform: uppercase; letter-spacing: .07em;
  background: #fef3c7; color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1;
  vertical-align: middle;
  margin-left: 5px;
}
.v1-snap-list .v1-li-val { font-weight: 600; color: var(--navy); }
.v1-snap-list .is-spon {
  background: linear-gradient(to right, #fffaf0, transparent);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}
.v1-snap-cta {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  color: var(--navy);
  font: 600 13px/1 'Work Sans', sans-serif;
  text-decoration: none;
}
.v1-snap-cta:hover { background: var(--indigo-bg); color: var(--indigo); }

/* ============================================================
   V3 SPONSORED — 4-up compact cards w/ gold top-border
   ============================================================ */
.v3-spon { background: #f8fafc; }
.v3-spon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.v3-spon-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v3-spon-tag {
  display: inline-flex; align-items: center;
  align-self: flex-start;
  padding: 2px 5px;
  font: 700 8px/1 'Work Sans', sans-serif;
  text-transform: uppercase; letter-spacing: .07em;
  background: #fef3c7; color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 4px;
  white-space: nowrap;
  margin-bottom: 4px;
}
.v3-spon-name-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.v3-spon-name-link:hover .v3-spon-name { color: var(--indigo); }
.v3-spon-name {
  margin: 0;
  font: 400 22px/1.1 'Bebas Neue', sans-serif;
  letter-spacing: .005em;
  color: var(--navy);
  min-height: 2.2em;
  display: flex;
  align-items: flex-start;
  transition: color .12s;
}
.v3-spon-meta {
  font: 500 11.5px/1 'Work Sans', sans-serif;
  color: var(--muted);
  margin-bottom: 4px;
}
.v3-spon-patch {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0 6px;
  margin-top: auto;
  text-decoration: none;
  transition: transform .15s;
}
.v3-spon-patch:hover { transform: scale(1.04); }
.v3-spon-patch img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}
.v3-spon-grid-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.v3-spon-stat {
  font: 700 16px/1 'Work Sans', sans-serif;
  color: var(--navy);
  letter-spacing: -.01em;
}
.v3-spon-stat.is-gold { color: var(--gold-d); }
.v3-spon-stat-l {
  font: 500 10px/1 'Work Sans', sans-serif;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.v3-spon-cta {
  margin-top: 6px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 9px;
  border-radius: 6px;
  font: 600 12px/1 'Work Sans', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.v3-spon-cta:hover { background: var(--navy-3); }

/* ============================================================
   V2 REGION MAP — dark navy section, TX outline + region list
   ============================================================ */
.v2-map-section {
  background: #0a1f44 !important;
  color: #fff;
}
.v2-map-section .h-section-title { color: #fff; }
.v2-map-section .h-section-sub { color: rgba(255,255,255,.65); }

.v2-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.v2-map-list { height: 100%; justify-content: stretch; }
.v2-map-list .v2-map-row { flex: 1; }
.v2-map-canvas {
  position: relative;
  /* Aspect ratio chosen to match the Texas outline PNG (0.77 w/h),
     so the state outline fills nearly the whole panel. */
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse at center, rgba(99,102,241,.08) 0%, transparent 60%),
    rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px;
  /* overflow visible so hover tooltips near the edges aren't clipped */
  overflow: visible;
}
/* Real Texas state outline as a subtle backdrop. The PNG is black-on-white,
   so we invert it (→ white-on-black) and screen-blend it so the black
   background drops out and only the white outline shows on the navy section. */
.v2-map-canvas::before {
  content: '';
  position: absolute;
  inset: 8px;
  background-image: url("../images/texas-outline.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: .6;
  pointer-events: none;
}
.v2-map-svg { width: 100%; height: 100%; display: none; }
.v2-map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 14px/1 'JetBrains Mono', monospace;
  box-shadow: 0 6px 16px rgba(253,185,19,.4), 0 0 0 4px rgba(253,185,19,.15);
  cursor: pointer;
  transition: transform .15s;
}
.v2-map-pin:hover { transform: translate(-50%, -50%) scale(1.15); }
.v2-map-pin-l {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 6px;
  font: 600 11px/1.3 'Work Sans', sans-serif;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.v2-map-pin-l em { font-style: normal; font-weight: 500; color: var(--muted); }
.v2-map-pin:hover .v2-map-pin-l { opacity: 1; }

.v2-map-list { display: flex; flex-direction: column; gap: 4px; }
.v2-map-row {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 20px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: background .12s;
}
.v2-map-row:hover { background: rgba(255,255,255,.16); border-color: rgba(253,185,19,.4); }
.v2-map-row-name { font: 600 14.5px/1.2 'Work Sans', sans-serif; }
.v2-map-row-name small {
  display: block;
  font: 500 11.5px/1 'Work Sans', sans-serif;
  color: rgba(255,255,255,.5);
  margin-top: 3px;
}
.v2-map-row-stats {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 600 14px/1 'Work Sans', sans-serif;
}
.v2-map-row-stats > span { white-space: nowrap; }
.v2-map-row-stats em {
  font-style: normal;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  margin-left: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.v2-map-row-stats .is-hero { color: var(--gold); }
.v2-map-row-arrow {
  color: rgba(255,255,255,.4);
  font-size: 18px;
  text-align: right;
}

/* ============================================================
   HOW IT WORKS — 3 steps (light)
   ============================================================ */
.h-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.h-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 10px;
  align-items: center;
  position: relative;
}
.h-step-num {
  font: 400 48px/1 'Bebas Neue', sans-serif;
  color: var(--gold-d);
  letter-spacing: .02em;
  grid-row: 1;
  grid-column: 1;
}
.h-step-title {
  font: 600 18px/1.2 'Work Sans', sans-serif;
  color: var(--navy);
  grid-row: 1;
  grid-column: 2;
}
.h-step-body {
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.55;
  grid-row: 2;
  grid-column: 1 / -1;
}

/* ============================================================
   V1 RECRUITER CTA STRIP — dark gradient + big star
   ============================================================ */
.v1-cta-strip {
  background: linear-gradient(135deg, #0a1f44 0%, #14305f 100%);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.v1-cta-strip::before { content: none; }
.v1-cta-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
}
.v1-cta-h {
  font: 600 32px/1.15 'Work Sans', sans-serif;
  color: #fff;
  margin: 8px 0 14px;
  letter-spacing: -.01em;
  max-width: 640px;
}
.v1-cta-sub {
  color: rgba(255,255,255,.65);
  font-size: 15px;
  max-width: 560px;
  margin: 0;
}
.v1-cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.v1-cta-strip .h-eyebrow { color: rgba(255,255,255,.5); }
.v1-cta-strip .h-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.v1-cta-strip .h-btn-ghost:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .v1-hero { padding: 64px 0 72px; }
  .v1-hero-grid { gap: 48px; }
  .v1-headline { font-size: 72px; }
  .v3-spon-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-map-grid { grid-template-columns: 1fr; }
  .v1-cta-inner { grid-template-columns: 1fr; }
  .v1-cta-actions { flex-direction: row; align-items: flex-start; }
}

@media (max-width: 760px) {
  .home-wrap { padding: 0 20px; }
  .h-section { padding: 56px 0; }
  .v1-hero { padding: 48px 0 56px; }
  .v1-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .v1-headline { font-size: 56px; }
  .v1-sub { font-size: 15px; }
  .h-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .h-section-title { font-size: 30px; }
  .h-steps { grid-template-columns: 1fr; }
  .v3-spon-grid { grid-template-columns: 1fr; }
  .v2-map-canvas { display: none; }
  .v2-map-grid { gap: 16px; }
  .v1-cta-strip { padding: 56px 0; }
  .v1-cta-h { font-size: 24px; }

  /* Region rows: stack name above stats, drop the arrow column,
     shrink padding so they fit on narrow screens. */
  .v2-map-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
  .v2-map-row-stats {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
  }
  .v2-map-row-arrow { display: none; }
}
