/* ════════════════════════════════════════════════════════════════════ */
/*  home.css — home page and landing page styles                         */
/*                                                                       */
/*  Moved out of the <style> block in templates/home.html (Nov 2026) so  */
/*  the indexed /advisor/ and /firm/ landing pages can share it. Loaded  */
/*  AFTER search.css, exactly where the inline block used to sit, so the */
/*  cascade is unchanged. The sections these rules style are the macros  */
/*  in templates/_home_sections.html.                                    */
/* ════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════ */
/*  RESET & BASE                          */
/* ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════ */
/*  NAV BAR                               */
/* ═══════════════════════════════════════ */
.nav-bar {
  background: var(--primary);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}
.nav-brand sup {
  font-size: 0.55em;
  vertical-align: super;
  font-weight: 400;
  opacity: 0.7;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: color 0.2s;
}
.nav-links a:hover { color: #FFFFFF; }

/* ═══════════════════════════════════════ */
/*  HERO                                  */
/* ═══════════════════════════════════════ */
.hero {
  background: linear-gradient(172deg, #0E2841 0%, #1B3A4B 38%, #264F74 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
/* Subtle texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 30%, rgba(74,124,143,0.15) 0%, transparent 65%);
  pointer-events: none;
}
/* Horizontal gutter lives INSIDE .hero-inner (border-box), exactly
   mirroring .search-section's `max-width:1120px; padding:0 40px`.
   This makes the hero column and the search-card column identical, so
   the hero left edge lines up with the search card's left edge. */
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
/* Additional inset equal to .search-panel's 36px left padding, so the
   hero copy aligns with the "INDIVIDUAL NAME" label rather than the
   card's outer edge. Keep in sync with .search-panel padding-left. */
.hero-text {
  padding-left: 36px;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.hero-text h1 span {
  color: var(--accent);
}
.hero-text p {
  font-size: clamp(14px, 1.3vw, 16.5px);
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-text p.hero-sub {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 24px);
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.1px;
  /* No nowrap. This line grew from "has them" to "has conflicts" — roughly
     60px more at the 24px ceiling, in a row it already shares with the
     distribution chart. It was only released at the mobile breakpoint,
     which left it clipping at mid-size widths. Wrapping costs nothing. */
}
/* The grade line now CLOSES the hero, so it carries the bottom spacing that
   used to belong to the body paragraph, and the body paragraph tightens up
   to sit closer to the headline it explains. */
.hero-text p.hero-sub { margin-bottom: 0; }
.hero-text p.hero-body { margin-bottom: 18px; }
/* Question hooks under the headline (Nov 2026 site review, item 2). */
.hero-hooks {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-hooks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.3;
  color: #FFFFFF;
}
.hero-hooks li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════ */
/*  HERO REPORT PREVIEW (right side)      */
/*  A static miniature of the top of the  */
/*  sample report (/sample): fabricated   */
/*  firm, its band and score, and the top */
/*  three items. Replaces the live band   */
/*  distribution chart (Nov 2026 site     */
/*  review, item 1). KEEP IN STEP with    */
/*  sample.html: same firm, band, score,  */
/*  marker position and three items.      */
/* ═══════════════════════════════════════ */
.hero-preview {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 20px 22px 18px;
  box-shadow: 0 12px 40px rgba(6,20,34,0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hp-firm {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--primary);
}
.hp-stamp { display: flex; align-items: center; gap: 12px; }
.hp-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--grade-c-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hp-badge svg { width: 34px; height: 34px; }
.hp-badge rect { fill: #0E2841; }
.hp-badge rect.off { fill-opacity: 0.22; }
.hp-stamp-text { display: flex; flex-direction: column; gap: 1px; }
.hp-eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #3F6C7D;
}
.hp-band-row { display: flex; align-items: baseline; gap: 10px; }
.hp-band {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  color: var(--primary);
}
.hp-score {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: #5F6F78;
}
.hp-scale { display: flex; flex-direction: column; gap: 5px; }
.hp-track {
  position: relative;
  height: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}
.hp-track .seg-1 { background: var(--grade-a-circle); border-radius: 5px 0 0 5px; }
.hp-track .seg-2 { background: var(--grade-b-circle); }
.hp-track .seg-3 { background: var(--grade-c-circle); }
.hp-track .seg-4 { background: var(--grade-d-circle); border-radius: 0 5px 5px 0; }
.hp-marker {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 20px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 2px #FFFFFF;
}
.hp-scale-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  font-size: 10.5px;
  line-height: 1.3;
  color: #5F6F78;
}
.hp-scale-labels .on { font-weight: 600; color: var(--primary); }
.hp-drivers { display: flex; flex-direction: column; gap: 6px; }
.hp-drivers-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--primary);
}
.hp-driver {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
}
.hp-actions {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hp-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  background: #FFFFFF;
  border: 2px solid var(--accent);
  border-radius: 40px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.hp-pill:hover { background: var(--accent); color: #FFFFFF; }
.hp-pill:focus-visible { outline: 3px solid rgba(233,113,50,0.45); outline-offset: 2px; }
.hp-note {
  text-align: center;
  font-size: 11.5px;
  color: #5F6F78;
  margin-top: -4px;
}
/* Second copy of the card, used on phones only (see RESPONSIVE). */
.hero-preview-mobile { display: none; }

/* ═══════════════════════════════════════ */
/*  SEARCH CARD                           */
/* ═══════════════════════════════════════ */
.search-section {
  max-width: 1120px;
  margin: -40px auto 0;
  padding: 0 40px;
  position: relative;
  z-index: 10;
}
.search-card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(14,40,65,0.12), 0 1px 3px rgba(14,40,65,0.06);
  overflow: hidden;
}

/* Tab navigation */

/* Form panel (single unified — no tabs, no visibility gating) */
.search-panel {
  padding: 32px 36px 36px;
}
.search-form-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.search-field {
  flex: 1;
  min-width: 180px;
}
.search-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.search-field label .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 11px;
}
.search-field input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.search-field input::placeholder {
  color: var(--muted);
  font-weight: 300;
}
.search-field input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(74,124,143,0.12);
}
.search-btn {
  padding: 12px 36px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: #FFFFFF;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  letter-spacing: 0.3px;
  height: 46px;
}
.search-btn:hover {
  background: #D4622A;
  transform: translateY(-1px);
}
.search-btn:active {
  transform: translateY(0);
}
.search-btn svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -3px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.search-hint a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}
.search-hint a:hover { text-decoration: underline; }
.search-hint-center { text-align: center; }
/* The single recommendation line under the fields. */
.search-hint-lead { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ═══════════════════════════════════════ */
/*  ON YOUR SIDE OF THE TABLE              */
/* ═══════════════════════════════════════ */
/* Trust / positioning section. HTML-positioned AFTER the hidden
   results-section in DOM order. On first load, results-section is
   display:none so trust appears directly below the search card.
   After a search, results render between the search card and trust,
   pushing trust down without displacing it. Card pattern mirrors the
   methodology page principle-cards: white surfaces with subtle
   elevation, three-color icon palette (navy/accent/secondary). */
.trust-section {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 0 40px;
}
.trust-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.3px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(14,40,65,0.08), 0 1px 3px rgba(14,40,65,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.trust-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 6px 24px rgba(74,124,143,0.12);
}
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.trust-icon svg {
  width: 24px;
  height: 24px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #0E2841;
  margin-bottom: 8px;
  letter-spacing: -0.1px;
}
.trust-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}
.ti-01 { background: #0E2841; }
.ti-02 { background: var(--accent); }
.ti-03 { background: var(--secondary); }

/* ═══════════════════════════════════════ */
/*  WHAT THE REPORT EXAMINES              */
/* ═══════════════════════════════════════ */
.features {
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 0 40px;
}
.features-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.features-subheading {
  font-size: 15px;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 16px rgba(74,124,143,0.08);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.1px;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.55;
}

/* Section icon badge colors — Editorial palette */
.fi-01 { background: #0E2841; }
.fi-02 { background: #1A3B5B; }
.fi-03 { background: #264F74; }
.fi-04 { background: #33628A; }
.fi-05 { background: #3F7598; }
.fi-06 { background: #4D84A2; }

/* ═══════════════════════════════════════ */
/*  VALUE PROPOSITION                     */
/* ═══════════════════════════════════════ */
.value-section {
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 0 40px;
}
.value-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  text-align: center;
}
.value-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.value-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
}
.value-label {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.45;
  max-width: 200px;
}

/* ═══════════════════════════════════════ */
/*  HOW IT WORKS                          */
/* ═══════════════════════════════════════ */
.how-section {
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 0 40px;
}
.how-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.3px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.how-step {
  text-align: center;
  position: relative;
}
.how-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.how-step h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
}
.how-step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════ */
/*  PRICING TEASER                        */
/* ═══════════════════════════════════════ */
.pricing-section {
  max-width: 1180px;
  margin: 72px auto 0;
  padding: 0 40px;
}
.pricing-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.pricing-subheading {
  font-size: 15px;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.price-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 20px rgba(74,124,143,0.1);
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(233,113,50,0.12);
  position: relative;
}
.price-card h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}
.price-card .price-desc {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 18px;
}
.price-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.price-per {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.price-detail {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.5;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pricing-callout {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  background: linear-gradient(172deg, #1B3A4B 0%, #264F74 45%, #4A7C8F 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 22px 28px;
  box-shadow: 0 8px 30px rgba(14,40,65,0.16), 0 2px 6px rgba(14,40,65,0.08);
  text-align: center;
}
.pricing-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 30%, rgba(255,255,255,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.pricing-callout-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}
.pricing-callout-cap {
  display: block;
  white-space: normal;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════ */
/*  SEARCH FILTERS                       */
/* ═══════════════════════════════════════ */
.search-filters {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.filters-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.filters-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-right: 4px;
  white-space: nowrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  white-space: nowrap;
}
.filter-chip:hover {
  border-color: var(--secondary);
  color: var(--text);
  background: var(--bg-subtle);
}
.filter-chip.active {
  border-color: var(--primary);
  background: #E8F0F4;
  color: var(--primary);
  font-weight: 600;
}
.filter-chip svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

/* Firm size dropdown */
.filter-select-wrap {
  position: relative;
  display: inline-flex;
}
.filter-select {
  appearance: none;
  padding: 6px 30px 6px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
}
.filter-select:hover {
  border-color: var(--secondary);
  color: var(--text);
}
.filter-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(74,124,143,0.12);
}
.filter-select.active {
  border-color: var(--primary);
  background: #E8F0F4;
  color: var(--primary);
  font-weight: 600;
}
.filter-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 14px;
  height: 14px;
}
.filter-select-arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filters-active-count {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 500;
  margin-left: 4px;
}
.filters-clear {
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: auto;
  transition: color 0.15s;
}
.filters-clear:hover { color: var(--accent); }

/* "What do these mean?" — opens the curated glossary drawer for the five
   filter terms. A help affordance, deliberately NOT a .filter-chip, so it
   never reads as a toggle. Subtle underlined link + info glyph for
   discoverability by first-time users. */
.filters-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary);
  padding: 4px 6px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(74, 124, 143, 0.4);
  transition: color 0.15s;
}
.filters-help:hover { color: var(--accent); text-decoration-color: var(--accent); }
.filters-help svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════ */
/*  SAMPLE REPORT PILLS                  */
/* ═══════════════════════════════════════ */
.sample-reports {
  text-align: center;
  margin-top: 40px;
}
.sample-reports-label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.sample-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* Pill styling itself is the shared .pill-cta component in common.css. */

/* ── Dollar stakes block (Nov 2026 site review, item 3) ───────────────
   Sits directly under the search card on first load; search results
   render between the two. Deliberately OPEN: no box, no fill, centered.
   The first build was a dark band, and it pulled the eye past the search
   card; the search button should be the strongest thing in view.
   Both bars share one scale (0 to $61,500): the car bar is
   27,027 / 61,500 = 44%, and the fee bar is solid to the low end
   (31,500 / 61,500 = 51%) and lighter out to the high end.
   The same block, with a different supporting line, is on the order page
   (get-report.html, .gr-stakes). */
.stakes-band {
  padding: 16px 0 4px;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.stakes-head { text-align: center; }
.stakes-head h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(21px, 2.3vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--primary);
  margin-bottom: 6px;
}
/* Darker than --accent so the phrase holds contrast as text on white. */
.stakes-head h2 span { color: #C2571F; white-space: nowrap; }
.stakes-head p {
  font-size: 16px;
  line-height: 1.55;
  color: #4B5A63;
}
.stakes-bars {
  width: 720px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stakes-row { display: flex; flex-direction: column; gap: 6px; }
.stakes-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.stakes-label { font-size: 14px; color: #4B5A63; }
.stakes-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--primary);
  white-space: nowrap;
}
.stakes-track {
  display: flex;
  height: 12px;
  border-radius: 6px;
  background: #EEF2F4;
  overflow: hidden;
}
.stakes-fill-car  { width: 44%; background: var(--grade-b-circle); }
.stakes-fill-low  { width: 51%; background: var(--accent); }
.stakes-fill-high { width: 49%; background: var(--accent); opacity: 0.4; }
.stakes-note {
  font-size: 12px;
  line-height: 1.5;
  color: #5F6F78;
  text-align: center;
}

/* ═══════════════════════════════════════ */
/*  SEARCH RESULTS                       */
/* ═══════════════════════════════════════ */
.results-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: none;
}
.results-section.visible { display: block; }
.results-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  margin-top: -8px;
  overflow: hidden;
}
.results-header {
  padding: 20px 28px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.results-count {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-light);
}
.results-count strong {
  color: var(--text);
  font-weight: 600;
}
.results-clear {
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.results-clear:hover { color: var(--accent); background: var(--bg-subtle); }

.results-list {
  max-height: 520px;
  overflow-y: auto;
}

/* Individual result row */
.result-row {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.result-row:last-child { border-bottom: none; }
.result-row:hover { background: var(--bg-subtle); }

.result-info {
  flex: 1;
  min-width: 0;
}
.result-firm-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.5;
}
.result-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Registration type pills */
.reg-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  line-height: 1.6;
}
.reg-pill-ria {
  background: #E8F0F4;
  color: var(--primary);
}
.reg-pill-bd {
  background: #FFF0E6;
  color: #B85C2A;
}

/* Action buttons */
.result-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn-report {
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: #FFFFFF;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-report:hover { background: #D4622A; }
.btn-compare {
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--secondary);
  background: transparent;
  border: 1.5px solid var(--secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-compare:hover {
  background: rgba(74,124,143,0.08);
}
.btn-compare.added {
  background: #E8F0F4;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-compare svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}



/* Body padding when tray is visible */
body.tray-open { padding-bottom: 72px; }

/* ═══════════════════════════════════════ */
/*  RESPONSIVE                            */
/* ═══════════════════════════════════════ */
@media (max-width: 1090px) {
  .pricing-callout-text { white-space: normal; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* On phones the preview card moves BELOW the search card so search
     stays near the top: the copy in the hero is hidden and the second
     copy, at the top of .trust-section, is shown. It sits on a white
     page there, so it gets a border and a lighter shadow. */
  .hero .hero-preview { display: none; }
  .hero-preview-mobile {
    display: flex;
    max-width: 420px;
    margin: 0 auto 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(14,40,65,0.10);
  }
  .hero-text p.hero-sub { margin-bottom: 4px; }
  .stakes-band { padding: 8px 0 0; }
  .stakes-row-head { flex-wrap: wrap; gap: 2px 16px; }
  .features-grid, .how-steps, .pricing-cards, .trust-grid { grid-template-columns: 1fr; }
  .pricing-callout { padding: 20px; }
  .value-banner { grid-template-columns: 1fr; gap: 24px; }
  .search-form-row { flex-direction: column; }
  .search-field { min-width: 100%; }
  .hero { padding: 48px 0 60px; }
  /* Mirror .search-section's mobile gutter (0 20px), keeping the hero
     column identical to the search-card column. */
  .hero-inner { padding: 0 20px; }
  /* On mobile the card's own edge is the visible alignment line, so the
     extra 36px panel inset would read as a lopsided indent (56px left vs
     20px right). Align to the card edge instead. */
  .hero-text { padding-left: 0; }
  .search-section, .features, .value-section, .how-section, .pricing-section, .results-section, .trust-section { padding: 0 20px; }
  .result-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .result-actions { width: 100%; }
  .result-actions button { flex: 1; }
  .filters-row { gap: 6px; }
  .filter-chip { font-size: 12px; padding: 5px 10px; }
}
/* Keep the homepage navigation in the same responsive flow as the
   shared header. The desktop-only nav rules above otherwise leave its
   56px height fixed while links wrap into the hero at phone widths. */
@media (max-width: 760px) {
  .nav-bar {
    height: auto;
    min-height: 56px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
  }
  .nav-brand { display: flex; align-items: center; }
  .nav-links { flex-wrap: wrap; gap: 8px 16px; }
}

/* ═══════════════════════════════════════ */
/*  LANDING PAGE VARIANTS                  */
/* ═══════════════════════════════════════ */
/* How It Works with two steps (landing pages drop the Search step). */
.how-steps.how-steps-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .how-steps.how-steps-2 { grid-template-columns: 1fr; }
}
