/* SheriffHQ's home page (Views/Home/Index.cshtml), with the design's values.
   Phones first; the hero's two columns and the viewers beside their text from 900px. Font weights are one step under the
   design's numbers (500 / 600 / 700 for its 600 / 700 / 800): Site.css maps those Noto Sans weights to SemiBold, Bold and ExtraBold. */

/* The layout's <main class="pb-8"> leaves 3.5rem under every page; here the closing blue band meets the footer. */
.hl { margin-bottom: -3.5rem; background: #fff; color: #333; font-size: 16px; line-height: 1.5; }
.hl p { margin: 0; }
.hl h1, .hl h2 { font-family: inherit; }
.hl a { color: #2a6db0; text-decoration: none; }
.hl a:hover { color: #1d4f86; text-decoration: underline; }
.hl-wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.hl-band { background: #1f4e8c; }

.hl .hl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; box-sizing: border-box; padding: 0 24px; border: none; border-radius: 4px; background: #e8961f; color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; text-align: center; cursor: pointer; }
.hl .hl-btn:hover, .hl .hl-btn:focus { background: #d4840f; color: #fff; text-decoration: none; }
.hl .hl-btn-lg { min-height: 52px; padding: 0 30px; font-size: 17px; }

/* Hero */
.hl-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 5vw, 64px); align-items: start; padding-top: 24px; padding-bottom: 28px; }
.hl-hero-copy { min-width: 0; }
.hl-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px 0; }
.hl-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 4px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: #1f4e8c; line-height: 1.3; }
.hl-pill-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2e8b47; }
.hl .hl-eyebrow { margin: 0 0 10px 0; font-size: 16px; font-weight: 500; color: #f5b35c; }
.hl-h1 { margin: 0 0 14px 0; font-size: clamp(28px, 3.9vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -0.6px; color: #fff; text-wrap: balance; }
.hl .hl-sub { margin: 0 0 24px 0; font-size: clamp(17px, 1.9vw, 19px); line-height: 1.5; color: #fff; text-wrap: pretty; }
.hl-points { display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: #fff; }
.hl-point { display: flex; gap: 12px; align-items: flex-start; }
.hl-tick { margin-top: 2px; flex: none; }
/* The "Sign up takes only 30 seconds" ribbons: on the right beside the form, centred above it when stacked. */
.hl-cue img { display: block; max-width: 100%; height: auto; }
.hl-cue-stacked { display: flex; justify-content: center; margin: 16px 0 0 0; }
.hl-cue-stacked img { width: 150px; }
.hl-cue-wide { display: none; justify-content: flex-end; margin-top: 5px; }

/* Sign-up card (Views/Home/SheriffHQ/_HomeSignUpForm.cshtml); Scripts/repo-landing.js adds .sr-flash when a button scrolls to it. */
.hl-form { justify-self: center; width: 100%; max-width: 420px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); transition: box-shadow 400ms ease; }
.hl-form.sr-flash { box-shadow: 0 0 0 3px #e8961f, 0 10px 30px rgba(0, 0, 0, 0.2); }
.hl-form-title { font-size: 22px; font-weight: 600; color: #1f4e8c; letter-spacing: -0.3px; line-height: 1.2; }
.hl-fields { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.hl-field-group { display: flex; flex-direction: column; gap: 8px; }
.hl-field { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.hl .hl-label { margin: 0; font-size: 13px; font-weight: 500; color: #444; }
/* 16px: under that, iOS zooms the page into a field when it is tapped. */
.hl .hl-input { height: auto; min-height: 46px; box-sizing: border-box; padding: 8px 12px; border: 1px solid #c5ced9; border-radius: 4px; box-shadow: none; font-family: inherit; font-size: 16px; color: #222; }
.hl .hl-input::placeholder { color: #8a94a3; }
.hl .hl-input:focus { border-color: #2a6db0; outline: 3px solid #d6e2f3; box-shadow: none; }
.hl .hl-input.input-validation-error { border-color: #d93025; }
.hl-form .field-validation-valid { display: none; }
.hl-form .field-validation-error { margin: 0; font-size: 13px; }
.hl .hl-terms { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 14px; font-weight: 400; color: #444; line-height: 1.4; cursor: pointer; }
.hl-terms input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: #1f4e8c; cursor: pointer; }
.hl .hl-submit { min-height: 50px; padding: 8px 14px; font-size: 17px; }
.hl .hl-form-note { text-align: center; font-size: 13px; color: #666; }
.hl a.hl-google { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; box-sizing: border-box; background: #fff; border: 1px solid #c5ced9; border-radius: 4px; font-size: 15px; font-weight: 500; color: #333; }
.hl a.hl-google:hover, .hl a.hl-google:focus { background: #f5f7fa; color: #333; text-decoration: none; }

/* Current listings by bank */
.hl-banks { background: #f5f7fa; border-bottom: 1px solid #e3e8ee; }
.hl-banks-wrap { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; padding-bottom: 16px; }
.hl-banks-total { flex: none; font-size: 14px; color: #222; line-height: 1.3; }
.hl-banks-total strong { font-size: 16px; font-weight: 600; color: #1f4e8c; }
.hl-banks-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 0; }
.hl-bank { display: flex; align-items: baseline; gap: 7px; min-width: 0; padding-left: 16px; border-left: 1px solid #d9e0e8; font-size: 14px; line-height: 1.3; }
.hl-bank-name { color: #444; }
.hl-bank-count { font-weight: 600; color: #222; }

/* The three tools: text beside an example */
.hl-section { padding-top: clamp(20px, 2.75vw, 36px); padding-bottom: clamp(20px, 2.75vw, 36px); }
.hl-section-first { padding-top: clamp(40px, 5.5vw, 72px); }
.hl-section-last { padding-bottom: clamp(40px, 5.5vw, 72px); }
.hl-head { margin-bottom: clamp(16px, 2.2vw, 24px); }
.hl .hl-kicker { margin: 0 0 6px 0; font-size: 14px; font-weight: 500; color: #666; }
.hl-h2 { margin: 0; font-size: clamp(23px, 2.7vw, 30px); font-weight: 600; color: #1f4e8c; letter-spacing: -0.3px; line-height: 1.25; text-wrap: pretty; }
.hl-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.hl-copy { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hl-lead { font-size: 18px; line-height: 1.6; color: #333; text-wrap: pretty; }
.hl-list { display: flex; flex-direction: column; border-bottom: 1px solid #e3e8ee; }
.hl-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid #e3e8ee; }
.hl-item p { font-size: 16px; line-height: 1.6; color: #333; }
.hl-item strong { display: block; font-size: 18px; font-weight: 600; color: #1f4e8c; line-height: 1.35; }
.hl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hl-cta span { font-size: 14px; color: #666; }

/* The numbered buttons that pick a viewer's slide (Scripts/home-landing.js) */
.hl-pick { position: relative; display: flex; gap: 14px; align-items: flex-start; width: 100%; box-sizing: border-box; padding: 14px 12px; border: none; border-top: 1px solid #e3e8ee; background: transparent; transition: background 320ms ease; text-align: left; font-family: inherit; cursor: pointer; }
.hl-pick.is-on { background: #eef3fb; }
.hl-pick-num { flex: none; width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%; border: 1px solid #1f4e8c; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; background: #fff; color: #1f4e8c; transition: background 320ms ease, color 320ms ease; }
.hl-pick.is-on .hl-pick-num { background: #1f4e8c; color: #fff; }
.hl-pick-text { min-width: 0; flex: 1; font-size: 16px; line-height: 1.6; color: #333; }
.hl-pick-text strong { display: block; font-size: 18px; font-weight: 600; color: #1f4e8c; line-height: 1.45; }
.hl-pick-text span { display: block; font-size: 15px; line-height: 1.5; color: #444; }

/* Example cards */
.hl-viewer { min-width: 0; background: #eef3fb; border-radius: 8px; padding: clamp(14px, 2vw, 22px); }
.hl-mock { background: #fff; border: 1px solid #d6e2f3; border-radius: 6px; box-shadow: 0 6px 18px rgba(31, 78, 140, 0.10); overflow: hidden; }
.hl-mock-regions { display: flex; flex-direction: column; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #e3e8ee; }
.hl-mock-regions > span { font-size: 12px; color: #666; }
.hl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hl-chip { font-size: 13px; font-weight: 500; color: #1f4e8c; background: #eef3fb; border: 1px solid #d6e2f3; border-radius: 4px; padding: 3px 9px; white-space: nowrap; }
.hl-chip-add { font-size: 13px; font-weight: 500; color: #2a6db0; padding: 3px 4px; white-space: nowrap; }
.hl-mock-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 16px; background: #f5f7fa; border-bottom: 1px solid #e3e8ee; }
.hl-mock-bar strong { font-size: 14px; font-weight: 600; color: #222; }
.hl-mock-bar span { font-size: 13px; color: #666; }
.hl-lot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 11px 16px; border-bottom: 1px solid #eef1f5; }
.hl-lot:last-child { border-bottom: none; }
.hl-lot-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hl-lot-place { font-size: 14px; font-weight: 600; color: #1f4e8c; line-height: 1.35; }
.hl-lot-type { font-size: 13px; color: #333; line-height: 1.45; }
.hl-lot-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hl-lot-when { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #222; line-height: 1.35; white-space: nowrap; }
.hl-lot-new { font-size: 11px; font-weight: 600; color: #fff; background: #1f6b3a; border-radius: 3px; padding: 2px 6px; white-space: nowrap; }
.hl-lot-reserve { font-size: 12px; color: #666; line-height: 1.45; white-space: nowrap; }

.hl-mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #e3e8ee; }
.hl-mock-head > div { min-width: 0; }
.hl-mock-place { font-size: 16px; font-weight: 600; color: #1f4e8c; line-height: 1.3; }
.hl-mock-type { font-size: 13px; color: #444; }
.hl-mock-example { flex: none; padding-top: 2px; font-size: 13px; color: #666; white-space: nowrap; }

/* Slides */
.hl-slides { position: relative; box-sizing: border-box; padding: 14px 16px; }
.hl-slides-fact { min-height: 292px; }
.hl-slides-val { min-height: 246px; }
.hl-slide { display: flex; flex-direction: column; }
.hl-slide[hidden] { display: none; }
.hl-slide-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid #1f4e8c; }
.hl-slide-title { font-size: 15px; font-weight: 600; color: #222; }
.hl-slide-title span { color: #1f4e8c; }
.hl-slide-source { flex: none; font-size: 12px; color: #666; white-space: nowrap; }
.hl-kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #eef1f5; font-size: 14px; }
.hl-kv:last-child { border-bottom: none; }
.hl-kv span:first-child { color: #666; }
.hl-kv span:last-child { font-weight: 500; color: #222; text-align: right; }
.hl-price { padding: 14px 0 12px 0; }
.hl-price-value { font-size: 28px; font-weight: 600; color: #222; letter-spacing: -0.5px; line-height: 1.15; }
.hl-price-note { font-size: 13px; color: #666; }
.hl-subhead { padding-bottom: 4px; font-size: 13px; font-weight: 600; color: #222; }
.hl-map { display: block; width: 100%; height: 150px; margin-top: 12px; border-radius: 4px; object-fit: cover; background: #dfe6ee; }
.hl-map-note { padding-top: 8px; font-size: 13px; color: #444; }
.hl .hl-slide-intro { margin: 10px 0 4px 0; font-size: 13px; line-height: 1.5; color: #444; }
.hl-fact { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-bottom: 1px solid #eef1f5; line-height: 1.4; }
.hl-fact:last-child { border-bottom: none; }
.hl-fact span:first-child { font-size: 12px; color: #666; }
.hl-fact span:last-child { font-size: 14px; font-weight: 500; color: #222; }
.hl-contacts { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.hl-contact { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #d6e2f3; border-radius: 4px; padding: 9px 12px; font-size: 14px; }
.hl-contact span:first-child { min-width: 0; color: #222; }
.hl-contact span:last-child { flex: none; font-weight: 600; color: #2a6db0; }
.hl-meter-row { display: flex; flex-direction: column; gap: 5px; padding-top: 12px; }
.hl-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hl-meter-head span:first-child { font-size: 13px; color: #666; }
.hl-meter-head span:last-child { font-size: 17px; font-weight: 600; color: #222; letter-spacing: -0.2px; }
.hl-meter { height: 10px; background: #eef1f5; border-radius: 2px; }
.hl-meter span { display: block; height: 100%; border-radius: 2px; }
.hl-meter-value { width: 100%; background: #c9d8ee; }
.hl-meter-reserve { width: 59%; background: #1f4e8c; }
.hl-discount { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #eef1f5; font-size: 14px; }
.hl-discount span:first-child { color: #666; }
.hl-discount span:last-child { font-weight: 600; color: #1f6b3a; }
.hl-trend-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 10px 0 6px 0; }
.hl-trend-head > div { min-width: 0; }
.hl-trend-head .hl-trend-side { flex: none; text-align: right; }
.hl-trend-label { font-size: 12px; color: #666; line-height: 1.3; }
.hl-trend-value { font-size: 22px; font-weight: 600; color: #222; letter-spacing: -0.4px; line-height: 1.2; }
.hl-trend-up { font-size: 13px; font-weight: 600; color: #1f6b3a; line-height: 1.3; }
.hl-chart { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; overflow: visible; }
.hl-chart-line { stroke-dasharray: 260; stroke-dashoffset: 0; }
.hl-chart-years { display: flex; justify-content: space-between; width: 100%; max-width: 260px; box-sizing: border-box; margin: 0 auto; padding: 4px 2px 0 2px; font-size: 12px; color: #666; }
.hl-chart-years span:last-child { font-weight: 600; color: #222; }
.hl-average { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: 14px; font-weight: 600; }
.hl-average span:first-child { color: #222; }
.hl-average span:last-child { color: #1f4e8c; }

/* A viewer's progress line and buttons. The moving segment takes one step of Scripts/home-landing.js (4500ms). */
.hl-progress { position: relative; height: 4px; background: #d9e0e8; }
.hl-progress-done { position: absolute; left: 0; top: 0; width: 0; height: 100%; background: #6b7785; }
.hl-progress-seg { position: absolute; top: 0; height: 100%; }
.hl-progress-seg[hidden] { display: none; }
.hl-progress-seg span { display: block; height: 100%; background: #6b7785; animation: hlLoad 4500ms linear both; }
.hl-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 4px 6px; background: #f5f7fa; }
.hl-controls-side { display: flex; justify-content: flex-start; }
.hl-controls-end { justify-content: flex-end; }
.hl-controls-mid { display: flex; align-items: center; gap: 4px; }
.hl-control { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: none; border-radius: 4px; background: transparent; color: #4a5563; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.hl-control:hover { background: #e3e8ee; color: #222; }
/* Shown only where the slides can play by themselves: the last media query. */
.hl-control-play { display: none; justify-content: center; width: 44px; padding: 0; }
.hl-icon-pause, .is-playing .hl-icon-play { display: none; }
.is-playing .hl-icon-pause { display: block; }
.hl-pos { font-size: 13px; color: #4a5563; white-space: nowrap; }

/* Band to the form */
.hl-tools { background: #f5f7fa; border-top: 1px solid #e3e8ee; border-bottom: 1px solid #e3e8ee; }
.hl-tools-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; padding-top: 28px; padding-bottom: 28px; }
.hl-tools-text { font-size: clamp(18px, 2.1vw, 22px); font-weight: 600; color: #1f4e8c; letter-spacing: -0.2px; line-height: 1.3; }

/* Success stories */
.hl-stories { padding-top: clamp(40px, 5.5vw, 72px); padding-bottom: clamp(40px, 5.5vw, 72px); }
.hl-stories .hl-h2 { margin-bottom: clamp(20px, 3vw, 32px); }
.hl-stories-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3.5vw, 40px); }
.hl-story { min-width: 0; border-top: 2px solid #1f4e8c; padding-top: 16px; }
.hl .hl-story-figure { margin: 0 0 6px 0; font-size: clamp(24px, 2.8vw, 30px); font-weight: 600; color: #222; letter-spacing: -0.5px; line-height: 1.15; }
.hl .hl-story-text { margin: 0 0 10px 0; font-size: 15px; line-height: 1.6; color: #333; }
.hl .hl-story-quote { line-height: 1.65; text-wrap: pretty; }
.hl-story-who { font-size: 14px; color: #666; }

/* Closing band */
.hl-close { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.hl-close-copy { min-width: 0; }
.hl-close-title { margin: 0 0 4px 0; font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: #fff; letter-spacing: -0.4px; line-height: 1.2; }
.hl-close p { font-size: 16px; color: #fff; }

/* Phones: a bar to the form once it has scrolled off the top (Scripts/repo-landing.js shows and hides it). */
.hl-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-top: 1px solid #d9e0e8; }
.hl-bar[hidden] { display: none; }
.hl-bar-copy { min-width: 0; }
.hl-bar-title { font-size: 14px; font-weight: 600; color: #222; line-height: 1.3; }
.hl-bar-note { font-size: 12px; color: #666; }
.hl .hl-bar .hl-btn { flex: none; min-height: 46px; padding: 0 18px; font-size: 15px; }

@keyframes hlFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hlLoad { from { width: 0; } to { width: 100%; } }
@keyframes hlDraw { to { stroke-dashoffset: 0; } }
@keyframes hlPop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

/* The banks: two to a row, three from 520px, one line beside the total from 1100px. A row's first bank has no rule. */
@media (max-width: 519px) {
    .hl-bank:nth-child(2n+1) { padding-left: 0; border-left: none; }
}

/* Phones: the buttons to the form span the column; the phone bar's button stays beside its text. */
@media (max-width: 719px) {
    .hl .hl-btn { width: 100%; }
    .hl .hl-bar .hl-btn { width: auto; }
}

@media (min-width: 520px) and (max-width: 1099px) {
    .hl-banks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hl-bank:nth-child(3n+1) { padding-left: 0; border-left: none; }
}

@media (min-width: 720px) {
    .hl-stories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hl-bar { display: none !important; }
}

@media (min-width: 900px) {
    .hl-hero-band { display: flex; align-items: center; min-height: 580px; }
    .hl-hero-band > .hl-hero { width: 100%; }
    .hl-hero { grid-template-columns: minmax(0, 1fr) 360px; padding-top: 36px; padding-bottom: 36px; }
    .hl-hero-copy { padding-top: 14px; }
    .hl-cue-stacked { display: none; }
    .hl-cue-wide { display: flex; }
    .hl-form { gap: 9px; padding: 16px 22px 18px 22px; }
    .hl-fields { gap: 9px; }
    .hl .hl-input { min-height: 40px; }
    .hl .hl-terms { min-height: 26px; }
    .hl-terms input { width: 18px; height: 18px; }
    .hl .hl-submit { min-height: 46px; }
    .hl a.hl-google { min-height: 42px; }
    .hl-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .hl-row-alt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
    .hl-row-alt .hl-copy { order: 2; }
    .hl-row-alt .hl-viewer { order: 1; }
}

@media (min-width: 1100px) {
    .hl-banks-wrap { flex-direction: row; align-items: center; gap: 28px; padding-bottom: 14px; }
    .hl-banks-grid { display: flex; justify-content: space-between; gap: 0; }
}

/* The slides play by themselves beside their text only, and not for a visitor who asked for less motion (as home-landing.js). */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .hl-control-play { display: inline-flex; }
    .hl-slide { animation: hlFade 380ms ease both; }
    .hl-chart-area { animation: hlFade 700ms ease 300ms both; }
    .hl-chart-line { stroke-dashoffset: 260; animation: hlDraw 900ms ease 150ms forwards; }
    .hl-chart-dot { animation: hlPop 350ms ease both; }
}
