/* ============================================================
   HedgeLists Homepage Styles
   ============================================================ */

/* --- Base / Reset --- */
#hl-homepage {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#hl-homepage *, #hl-homepage *::before, #hl-homepage *::after {
  box-sizing: border-box;
}
.hl-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Utility --- */
.hl-accent { color: #2EA3F2; }
.hl-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.hl-btn:hover { opacity: 0.88; }
.hl-btn--blue { background: #2EA3F2; color: #fff; }
.hl-btn.hl-btn--ghost {
  background: transparent !important;
  border: 1.5px solid #111 !important;
  color: #111 !important;
}
.hl-btn.hl-btn--ghost:hover {
  background: #111 !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.hl-section-label {
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #2EA3F2;
  text-align: center;
  margin: 0 0 8px;
}
.hl-section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: -0.4px;
}
.hl-section-sub {
  text-align: center;
  color: #6b7280;
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ============================================================
   SECTION 1 — Hero
   ============================================================ */
.hl-hero {
  padding: 48px 0 36px;
  text-align: center;
}
.hl-hero__title {
  font-size: 35px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 0 0 16px;
}
.hl-hero__sub {
  font-size: 16px;
  color: #6b7280;
  max-width: 540px;
  margin: 0 auto 28px;
}

/* Pills */
.hl-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.hl-pill {
  padding: 7px 20px;
  border-radius: 24px;
  border: 0.5px solid #E5E7EB;
  background: #fff;
  color: #6b7280;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.hl-pill--active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Explorer */
.hl-explorer {
  display: flex;
  border: 1px solid #D1D5DB;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  max-width: 920px;
  margin: 0 auto;
  min-height: 420px;
}
.hl-explorer__sidebar {
  width: 220px;
  min-width: 220px;
  border-right: 0.5px solid #E5E7EB;
  background: #F8F9FA;
}
.hl-sidebar-item {
  padding: 10px 16px;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.1s;
  border-bottom: 0.5px solid #E5E7EB;
}
.hl-sidebar-item:hover { background: #f0f1f3; }
.hl-sidebar-item--active {
  background: #fff;
  font-weight: 600;
}
.hl-sidebar-item__count {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 400;
}

/* Preview panel */
.hl-explorer__preview {
  flex: 1;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
}
.hl-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.hl-preview-header__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.hl-preview-header__price {
  text-align: right;
  white-space: nowrap;
}
.hl-preview-header__old {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
  display: block;
}
.hl-preview-header__new {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

/* Badges */
.hl-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.hl-badge {
  background: #EBF5FF;
  color: #2EA3F2;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 24px;
}

/* Sub-tabs */
.hl-subtabs {
  display: flex;
  gap: 0;
  border-bottom: 0.5px solid #E5E7EB;
  margin-bottom: 12px;
}
.hl-subtab {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  transition: all 0.15s;
}
.hl-subtab--active {
  color: #1a1a1a;
  border-bottom-color: #2EA3F2;
}

/* Data table */
.hl-table-wrap { flex: 1; overflow-x: auto; }
.hl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hl-table th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6b7280;
  padding: 6px 10px 8px;
  border-bottom: 0.5px solid #E5E7EB;
}
.hl-table td {
  padding: 7px 10px;
  border-bottom: 0.5px solid #f3f4f6;
  color: #374151;
}
.hl-table tr.hl-blurred td {
  filter: blur(4px);
  user-select: none;
  color: #9ca3af;
}

/* Preview footer */
.hl-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 0.5px solid #E5E7EB;
}
.hl-preview-footer__showing {
  font-size: 12.5px;
  color: #9ca3af;
}
.hl-preview-footer__actions {
  display: flex;
  gap: 8px;
}

/* Trust signals */
.hl-trust-signals {
  margin-top: 22px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* ============================================================
   SECTION 2 — Logos
   ============================================================ */
.hl-logos {
  padding: 32px 0;
  border-top: 0.5px solid #E5E7EB;
  border-bottom: 0.5px solid #E5E7EB;
}
.hl-logos__label {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0 0 16px;
}
.hl-logos__row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.hl-logos__row span {
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  opacity: 0.45;
  letter-spacing: 0.4px;
}

/* ============================================================
   SECTION 3 — How it works
   ============================================================ */
.hl-how {
  padding: 48px 0;
}
.hl-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.hl-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hl-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}
.hl-step p {
  font-size: 13.5px;
  color: #6b7280;
  margin: 0;
}

/* ============================================================
   SECTION 4 — Who uses our data
   ============================================================ */
.hl-who {
  padding: 48px 0;
  background: #F8F9FA;
}
.hl-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hl-card {
  background: #fff;
  border: 0.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 28px 24px;
}
.hl-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}
.hl-card p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   SECTION 5 — Storefront carousels
   ============================================================ */
.hl-store {
  padding: 48px 0;
}
.hl-carousel { margin-bottom: 36px; }
.hl-carousel:last-child { margin-bottom: 0; }
.hl-carousel__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.hl-carousel__header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.hl-carousel__header a {
  font-size: 13.5px;
  color: #2EA3F2;
  text-decoration: none;
  font-weight: 500;
}
.hl-carousel__header a:hover { text-decoration: underline; }
.hl-carousel__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.hl-carousel__track::-webkit-scrollbar { height: 6px; }
.hl-carousel__track::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

.hl-product-card {
  min-width: 185px;
  max-width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 0.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px 18px;
  transition: border-color 0.15s, transform 0.15s;
  cursor: pointer;
  position: relative;
}
.hl-product-card:hover {
  border-color: #2EA3F2;
  transform: translateY(-2px);
}
.hl-product-card__icon {
  font-size: 26px;
  display: block;
  margin-bottom: 10px;
}
.hl-product-card__icon--abbr {
  font-size: 16px;
  font-weight: 700;
  color: #2EA3F2;
  background: #EBF5FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.hl-product-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}
.hl-product-card__count {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0 0 8px;
}
.hl-product-card__price {
  font-size: 14px;
  margin: 0;
}
.hl-product-card__price del {
  color: #9ca3af;
  font-size: 12.5px;
  margin-right: 4px;
}
.hl-product-card__price strong {
  color: #1a1a1a;
}
.hl-product-card__link {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #2EA3F2;
  opacity: 0;
  transition: opacity 0.15s;
}
.hl-product-card:hover .hl-product-card__link { opacity: 1; }

/* ============================================================
   SECTION 6 — CTA
   ============================================================ */
.hl-cta {
  padding: 12px 0 48px;
}
.hl-cta__box {
  background: #111;
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
}
.hl-cta__box h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
}
.hl-cta__box p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  margin: 0 0 24px;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .hl-hero__title { font-size: 28px; }
  .hl-steps { grid-template-columns: repeat(2, 1fr); }
  .hl-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 767px) {
  .hl-hero__title { font-size: 24px; }
  .hl-hero__sub { font-size: 14.5px; }

  /* Explorer: sidebar becomes horizontal chip selector */
  .hl-explorer {
    flex-direction: column;
    min-height: auto;
  }
  .hl-explorer__sidebar {
    width: 100%;
    min-width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 0.5px solid #E5E7EB;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: #F8F9FA;
  }
  .hl-sidebar-item {
    white-space: nowrap;
    border-bottom: none;
    border-right: 0.5px solid #E5E7EB;
    flex-shrink: 0;
    padding: 10px 14px;
  }
  .hl-sidebar-item:last-child { border-right: none; }
  .hl-sidebar-item__count { display: none; }
  .hl-explorer__preview { padding: 16px 18px; }
  .hl-preview-header { flex-direction: column; gap: 8px; }
  .hl-preview-header__price { text-align: left; }

  /* Steps */
  .hl-steps { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Cards */
  .hl-cards { grid-template-columns: 1fr; }

  /* Logos */
  .hl-logos__row { gap: 16px; }
  .hl-logos__row span { font-size: 11px; }

  /* Trust signals */
  .hl-trust-signals { font-size: 12px; }

  /* CTA */
  .hl-cta__box { padding: 36px 24px; }
  .hl-cta__box h2 { font-size: 22px; }

  /* Section headings */
  .hl-section-title { font-size: 22px; }
}
