/* Align hero search + CTAs with “How it works” three-column row */
:root {
  --home-how-width: 820px;
}

.hero--home {
  text-align: center;
  padding: 56px 24px 48px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-intro { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 720px; }
.hero-badge { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--brass); background: var(--brass-l); padding: 5px 14px; border-radius: 20px; margin: 0; }
.hero--home h1 { font-size: 36px; font-weight: 600; letter-spacing: -1px; line-height: 1.2; max-width: 700px; margin: 0; }
.hero--home h1 em { color: var(--brass); font-style: normal; }
.hero--home .hero-sub { font-size: 17px; color: var(--muted); max-width: 540px; margin: 0; line-height: 1.6; }

.hero-actions {
  width: 100%;
  max-width: var(--home-how-width);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}
.hero-ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-cta-primary {
  padding: 14px 28px; font-size: 16px; font-weight: 600; border-radius: 12px;
  text-decoration: none; letter-spacing: -0.2px; display: inline-flex; align-items: center; justify-content: center;
}
.hero-cta-secondary {
  padding: 14px 22px; font-size: 15px; font-weight: 500; border-radius: 12px;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}

.hero-discover {
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-discover-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.hero-inst-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}
.hero-inst-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.hero-inst-row .inst-quick {
  justify-content: flex-start;
  margin: 0;
}

/* Search: grid keeps button in flow (no overlap with content below) */
.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 0;
}
.hero-search-field {
  position: relative;
  min-width: 0;
}
.hero-search-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px 14px 44px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.hero-search-field input:focus { border-color: var(--brass); background: var(--surface); }
.hero-search-field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.hero-search-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

.hero-ac-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  max-height: 280px;
  overflow-y: auto;
  display: none;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  text-align: left;
}
.hero-ac-list.is-open { display: block; }
.hero-ac-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid var(--faint);
}
.hero-ac-item:last-child { border-bottom: none; }
.hero-ac-item:hover,
.hero-ac-item.is-active { background: var(--brass-l); }
.hero-ac-brand { font-weight: 500; color: var(--text); }
.hero-ac-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hero-ac-empty { padding: 12px 16px; font-size: 13px; color: var(--muted); text-align: center; }

.inst-quick { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.features {
  max-width: var(--content-max-width, 1280px);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  justify-content: center;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: .2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feat-card:hover { border-color: var(--brass-b); box-shadow: 0 4px 20px rgba(0,0,0,.06); transform: translateY(-2px); }
.feat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; flex-shrink: 0; }
.feat-icon.brass { background: var(--brass-l); }
.feat-icon.blue { background: var(--blue-l); }
.feat-icon.green { background: var(--green-l); }
.feat-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feat-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

.brands-section { max-width: var(--content-max-width, 1280px); margin: 0 auto; padding: 0 24px 60px; }
.brands-section h2 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 10px; text-align: center; }
.brands-section-lead {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 18px;
  line-height: 1.5;
}
.brand-grid { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.brand-chip { padding: 8px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; transition: .15s; }
.brand-chip:hover { border-color: var(--brass); background: var(--brass-l); }

.popular-comps-sub { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 24px 0 12px; text-align: center; }
.popular-comps-sub:first-of-type { margin-top: 0; }
.popular-comps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-width: var(--content-max-width, 1280px); margin: 0 auto 8px; }
.popular-comp-link { display: block; padding: 8px 14px; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; transition: .15s; }
.popular-comp-link:hover { border-color: var(--brass); background: var(--brass-l); }

.stats-bar {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max-width, 1280px);
  margin: 0 auto 40px;
  padding: 24px 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  row-gap: 20px;
}
.stat { text-align: center; flex: 0 0 auto; min-width: 5.5rem; }
.stat-num { font-size: 28px; font-weight: 600; color: var(--brass); font-family: 'DM Mono', monospace; }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-top: 2px; }

/* ── How it works ── */
.how-it-works {
  max-width: var(--content-max-width, 1280px);
  margin: 0 auto;
  padding: 0 24px 52px;
  text-align: center;
}
.how-it-works h2 {
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 28px;
}
.hiw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: var(--home-how-width); margin: 0 auto; }
.hiw-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 20px 24px; text-align: center;
}
.hiw-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brass); color: #fff;
  font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-family: 'DM Mono', monospace;
}
.hiw-step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.hiw-step p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ── Value propositions ── */
.value-props {
  max-width: 640px; margin: 0 auto; padding: 0 24px 48px;
  display: flex; flex-direction: column; gap: 10px;
}
.vp-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text); line-height: 1.4;
}
.vp-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-l, #E8F4E8); color: #2E7D52;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* ── Core / More tools section headings ── */
.core-tools, .more-tools {
  max-width: var(--content-max-width, 1280px); margin: 0 auto;
}
.core-tools h2, .more-tools h2 {
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 16px; text-align: center; padding: 0 24px;
}
.feat-card--highlight { border-color: var(--brass-b, var(--brass)); border-width: 2px; }

/* ── Final CTA ── */
.final-cta-section {
  max-width: var(--content-max-width, 1280px); margin: 0 auto;
  text-align: center; padding: 48px 24px 56px;
  border-top: 1px solid var(--border);
}
.final-cta-section h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 8px; }
.final-cta-section p { font-size: 15px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }

@media (max-width: 640px) {
  .hero--home { padding: 44px 20px 40px; gap: 22px; }
  .hero--home h1 { font-size: 26px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-cta-primary,
  .hero-cta-secondary { width: 100%; box-sizing: border-box; }
  .hero-search {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-search-btn { width: 100%; }
  .hero-discover { padding: 16px 16px 14px; }
  .stats-bar { gap: 24px 28px; padding: 20px 24px; }
  .final-cta-section h2 { font-size: 20px; }
}
