/* ============================================================
   HedgeLists Product Page Styles
   Task 004 — Excel demo, SEO, schema, reviews
   ============================================================ */

#hl-product-page {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#hl-product-page *, #hl-product-page *::before, #hl-product-page *::after { box-sizing: border-box; }

.hl-container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.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-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; }

/* ── BREADCRUMBS ── */
.hlp-breadcrumbs { padding: 14px 0; font-size: 12px; color: #9ca3af; border-bottom: 0.5px solid #E5E7EB; }
.hlp-breadcrumbs a { color: #2EA3F2; text-decoration: none; }
.hlp-breadcrumbs a:hover { text-decoration: underline; }
.hlp-breadcrumbs__sep { margin: 0 6px; }

/* ── HERO ── */
.hlp-hero { padding: 36px 0 48px; }
.hlp-hero__grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.hlp-hero__title { font-size: 29px; font-weight: 700; letter-spacing: -0.6px; line-height: 1.25; margin: 0 0 8px; }
.hlp-hero__updated { font-size: 12px; color: #9ca3af; margin: 0 0 16px; }
.hlp-hero__desc { font-size: 15px; color: #6b7280; line-height: 1.65; margin-bottom: 24px; }
.hlp-hero__desc p { margin: 0 0 10px; }

.hlp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.hlp-stat { background: #F8F9FA; border-radius: 10px; padding: 14px 12px; text-align: center; }
.hlp-stat__num { display: block; font-size: 20px; font-weight: 700; color: #111; }
.hlp-stat__label { display: block; font-size: 11.5px; color: #6b7280; margin-top: 2px; }

.hlp-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-bottom: 24px; font-size: 12.5px; color: #374151; }

.hlp-demo-btn { display: block; width: 100%; padding: 13px 20px; border: 1.5px solid #2EA3F2; border-radius: 8px; background: transparent; color: #2EA3F2; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s; text-align: center; }
.hlp-demo-btn:hover { background: #2EA3F2; color: #fff; }

/* ── BUY CARD ── */
.hlp-buy-wrap { position: relative; }
.hlp-buy-card { position: sticky; top: 80px; border: 0.5px solid #E5E7EB; border-radius: 14px; padding: 28px 24px; background: #fff; }
.hl-buycard-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}
.hlp-buy-card__top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hlp-buy-card__img { display: block; width: 100px; height: auto; flex-shrink: 0; }
.hlp-buy-card__top-right { flex: 1; min-width: 0; }
.hlp-buy-card__rating { margin-bottom: 10px; }
.hlp-stars { color: #F4B942; font-size: 16px; letter-spacing: 1px; }
.hlp-rating-text { font-size: 12.5px; color: #6b7280; margin-left: 6px; }
.hlp-buy-card__price { margin-bottom: 0; }
.hlp-price-old { display: block; font-size: 13px; color: #9ca3af; text-decoration: line-through; }
.hlp-price-current { font-size: 32px; font-weight: 700; color: #111; }
.hlp-save-badge { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: #1E8449; background: #D5F5E3; padding: 3px 10px; border-radius: 24px; vertical-align: middle; }
.hlp-cart-form { margin-bottom: 10px; }
.hlp-add-to-cart { display: block; width: 100%; padding: 14px; font-size: 15px; font-weight: 600; color: #fff; background: #2EA3F2; border: none; border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.hlp-add-to-cart:hover { background: #1A8FD8; }
.hlp-trust-line { text-align: center; font-size: 11px; color: #9ca3af; margin: 0 0 16px; }
.hlp-buy-features { border-top: 0.5px solid #E5E7EB; padding-top: 14px; }
.hlp-buy-features span { display: block; font-size: 12px; color: #6b7280; margin-bottom: 8px; line-height: 1.4; }

/* ── Site Reviews overrides ── */
.glsr-summary .glsr-star { color: #F4B942 !important; }
.glsr .glsr-star { color: #F4B942 !important; }
.glsr-review { border: 0.5px solid #E5E7EB !important; border-radius: 14px !important; padding: 20px !important; margin-bottom: 16px !important; }

/* ============================================================
   EXCEL REPLICA DEMO
   ============================================================ */
.hlp-excel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.hlp-excel-overlay[aria-hidden="false"] { display: flex; }

.hlp-excel {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 1200px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* Title bar */
.hlp-excel__titlebar {
  background: #217346;
  color: #fff;
  padding: 6px 14px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hlp-excel__filename { opacity: 0.9; }
.hlp-excel__close {
  background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 0 4px; line-height: 1; opacity: 0.8;
}
.hlp-excel__close:hover { opacity: 1; }

/* Toolbar */
.hlp-excel__toolbar {
  background: #f3f3f3;
  border-bottom: 1px solid #d6d6d6;
  padding: 4px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #444;
}
.hlp-excel__menu { display: flex; gap: 16px; }
.hlp-excel__menu span { cursor: default; }
.hlp-excel__hint { font-size: 10.5px; color: #888; font-style: italic; }

/* Formula bar */
.hlp-excel__formula {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #d6d6d6;
  font-size: 12px;
  background: #fff;
}
.hlp-excel__cell-ref {
  display: inline-block;
  width: 48px;
  padding: 4px 8px;
  border-right: 1px solid #d6d6d6;
  font-weight: 600;
  text-align: center;
  color: #333;
}
.hlp-excel__fx {
  padding: 4px 8px;
  border-right: 1px solid #d6d6d6;
  font-style: italic;
  color: #999;
}
.hlp-excel__cell-val {
  padding: 4px 10px;
  flex: 1;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Grid */
.hlp-excel__grid-wrap {
  flex: 1;
  overflow: auto;
}
.hlp-excel__table {
  border-collapse: collapse;
  font-size: 11.5px;
  white-space: nowrap;
  width: max-content;
  min-width: 100%;
}
.hlp-excel__colheads th {
  background: #f3f3f3;
  color: #666;
  font-size: 10px;
  font-weight: 400;
  text-align: center;
  padding: 2px 6px;
  border: 1px solid #d6d6d6;
  position: sticky;
  top: 0;
  z-index: 2;
}
.hlp-excel__header th {
  background: #E2EFDA;
  color: #333;
  font-weight: 600;
  font-size: 10.5px;
  padding: 5px 10px;
  border: 1px solid #c5d9b2;
  position: sticky;
  top: 20px;
  z-index: 2;
  text-align: left;
}
.hlp-excel__table td {
  padding: 4px 10px;
  border: 1px solid #e8e8e8;
  color: #333;
  vertical-align: middle;
}
.hlp-excel__rownum {
  background: #f3f3f3 !important;
  color: #666 !important;
  font-size: 10px;
  text-align: center !important;
  width: 32px;
  min-width: 32px;
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid #d6d6d6 !important;
}
.hlp-excel__link { color: #0563C1; text-decoration: underline; }
.hlp-excel__num { text-align: right; font-variant-numeric: tabular-nums; }
.hlp-excel__selected-row td:first-child ~ td:first-of-type {
  background: #D6EAF8;
  outline: 2px solid #2E86C1;
  outline-offset: -1px;
}
.hlp-excel__selected-row td:nth-child(2) {
  background: #D6EAF8;
  outline: 2px solid #2E86C1;
  outline-offset: -1px;
}

.hlp-blurred td, .hlp-blurred .hlp-mcard__head,
.hlp-blurred .hlp-mcard__loc, .hlp-blurred .hlp-mcard__fields,
.hlp-blurred .hlp-mcard-person__info, .hlp-blurred .hlp-mcard-person__contact {
  filter: blur(4px);
  user-select: none;
}

/* Sheet tabs */
.hlp-excel__sheets {
  display: flex;
  background: #f3f3f3;
  border-top: 1px solid #d6d6d6;
  padding: 0 8px;
}
.hlp-excel__sheet {
  padding: 6px 18px;
  font-size: 11.5px;
  cursor: pointer;
  border: none;
  background: none;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.hlp-excel__sheet--active { color: #217346; font-weight: 600; border-bottom-color: #217346; }

/* Status bar */
.hlp-excel__status {
  background: #217346;
  color: #fff;
  padding: 6px 14px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hlp-excel__status-form { margin: 0; }
.hlp-excel__status-btn {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  padding: 4px 16px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.hlp-excel__status-btn:hover { background: #fff; color: #217346; }

/* Mobile: hide desktop grid, show cards */
.hlp-excel__mobile-wrap { display: none; }

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

/* ── WHAT'S INCLUDED ── */
.hlp-included { padding: 48px 0; }
.hlp-fields-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hlp-field-card { border: 0.5px solid #E5E7EB; border-radius: 12px; padding: 20px 18px; }
.hlp-field-card h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.hlp-field-card p { font-size: 13px; color: #6b7280; margin: 0; }

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

/* ── REVIEWS ── */
.hlp-reviews { padding: 48px 0; }
.hlp-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.hlp-review { border: 0.5px solid #E5E7EB; border-radius: 14px; padding: 24px 22px; }
.hlp-review__stars { color: #F4B942; font-size: 16px; letter-spacing: 1px; margin-bottom: 10px; }
.hlp-review__text { font-size: 14px; color: #374151; line-height: 1.55; margin: 0 0 12px; font-style: italic; }
.hlp-review__author { font-size: 12.5px; color: #9ca3af; margin: 0; }

/* ── FAQ ── */
.hlp-faq { padding: 48px 0; background: #F8F9FA; }
.hlp-accordion { max-width: 720px; margin: 28px auto 0; }
.hlp-accordion__item { border: 0.5px solid #E5E7EB; border-radius: 10px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.hlp-accordion__trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 20px; background: none; border: none; font-size: 14.5px; font-weight: 600; color: #1a1a1a; cursor: pointer; text-align: left; }
.hlp-accordion__icon { font-size: 20px; font-weight: 300; color: #9ca3af; transition: transform 0.2s; flex-shrink: 0; margin-left: 12px; }
.hlp-accordion__item--open .hlp-accordion__icon { transform: rotate(45deg); }
.hlp-accordion__content { display: none; padding: 0 20px 16px; }
.hlp-accordion__item--open .hlp-accordion__content { display: block; }
.hlp-accordion__content p { font-size: 13.5px; color: #6b7280; margin: 0; line-height: 1.6; }

/* ── SEO: About section ── */
.hl-seo-content { max-width: 800px; margin: 48px auto; padding: 0 20px; }
.hl-seo-content h2 { font-size: 22px; font-weight: 700; color: #111; margin-bottom: 16px; }
.hl-seo-prose { font-size: 15px; line-height: 1.7; color: #4a4a4a; }
.hl-seo-prose p { margin-bottom: 16px; }

/* ── SEO: Data fields icon grid ── */
.hl-data-fields { max-width: 800px; margin: 48px auto; padding: 0 20px; }
.hl-data-fields h2 { font-size: 28px; font-weight: 700; text-align: center; letter-spacing: -0.5px; color: #111; margin-bottom: 8px; }
.hl-fields-subtitle { text-align: center; font-size: 15px; color: #86868b; margin-bottom: 40px; }
.hl-spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.hl-spec-cell { padding: 28px 16px; text-align: center; border-top: 1px solid #e5e7eb; }
.hl-spec-cell:nth-child(-n+4) { border-top: none; }
.hl-spec-cell:not(:nth-child(4n)) { border-right: 1px solid #e5e7eb; }
.hl-spec-icon { font-size: 24px; margin-bottom: 10px; display: block; }
.hl-spec-label { font-size: 12px; font-weight: 600; color: #1d1d1f; margin-bottom: 4px; }
.hl-spec-detail { font-size: 11px; color: #86868b; line-height: 1.4; }

/* ── Site Reviews style overrides ── */
.glsr-star-rating .gl-star-full { color: #F4B942 !important; }
.glsr-star-rating .gl-star-empty { color: #E5E7EB !important; }
.glsr .glsr-star { color: #F4B942 !important; }
.glsr-review { border-bottom: 1px solid #f0f0f0; padding: 20px 0; }
.glsr-review:last-child { border-bottom: none; }
.glsr-review-title { font-size: 15px; font-weight: 600; color: #111; }
.glsr-review-content p { font-size: 14px; color: #4a4a4a; line-height: 1.6; }
.glsr-review-author { font-size: 13px; color: #888; }
.glsr-summary { display: flex; align-items: center; gap: 8px; }
.glsr-summary-rating { font-size: 16px; font-weight: 700; }
.glsr-reviews-wrap > .glsr-default-heading { display: none; }

/* Collapsed reviews */
.hlp-reviews-collapse { margin-top: 16px; }
.hlp-reviews-toggle {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #2EA3F2;
  padding: 10px 0;
  list-style: none;
}
.hlp-reviews-toggle::-webkit-details-marker { display: none; }
.hlp-reviews-toggle::before { content: '+ '; }
details[open] > .hlp-reviews-toggle::before { content: '- '; }
.hlp-reviews-body { padding-top: 12px; }

/* Review count in buy card */
.hlp-review-count {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 1px;
}

/* ── RELATED ── */
.hlp-related { padding: 48px 0; }
.hlp-related__track { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; margin-top: 24px; -webkit-overflow-scrolling: touch; }
.hlp-related__track::-webkit-scrollbar { height: 6px; }
.hlp-related__track::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.hlp-related-card { min-width: 180px; max-width: 200px; flex-shrink: 0; border: 0.5px solid #E5E7EB; border-radius: 12px; padding: 20px 18px; text-decoration: none; color: #1a1a1a; transition: border-color 0.15s, transform 0.15s; }
.hlp-related-card:hover { border-color: #2EA3F2; transform: translateY(-2px); }
.hlp-related-card img { display: block; width: 70px; height: auto; margin: 0 auto 12px; }
.hlp-related-card h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.hlp-related-card__count { font-size: 12.5px; color: #6b7280; margin: 0 0 4px; }
.hlp-related-card__price { font-size: 15px; font-weight: 700; margin: 0; }

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

/* ============================================================
   MOBILE CARD STYLES (for Excel demo)
   ============================================================ */
.hlp-mcard {
  border: 0.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}
.hlp-mcard__label { font-size: 10px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.hlp-mcard__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.hlp-mcard__name { font-weight: 600; font-size: 14px; }
.hlp-mcard__aum { font-size: 13px; font-weight: 600; color: #374151; }
.hlp-mcard__loc { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.hlp-mcard__strats { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.hlp-mcard__pill { background: #E2EFDA; color: #217346; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 12px; }
.hlp-mcard__fields { font-size: 12px; }
.hlp-mcard__fields > div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 0.5px solid #f3f4f6; }
.hlp-mcard__flabel { color: #9ca3af; font-weight: 500; }
.hlp-mcard__extra { margin-top: 8px; font-size: 12px; }
.hlp-mcard__extra summary { cursor: pointer; color: #2EA3F2; font-weight: 500; }
.hlp-mcard__extra > div { padding: 3px 0; color: #6b7280; }

.hlp-mcard-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 0.5px solid #E5E7EB;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
}
.hlp-mcard-person__avatar {
  width: 36px; height: 36px;
  background: #E2EFDA;
  color: #217346;
  font-size: 12px; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hlp-mcard-person__info { flex: 1; min-width: 0; }
.hlp-mcard-person__info strong { display: block; font-size: 13px; }
.hlp-mcard-person__info span { display: block; font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hlp-mcard-person__contact { text-align: right; flex-shrink: 0; }
.hlp-mcard-person__contact span { display: block; font-size: 11px; }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .hlp-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hlp-buy-card { position: static; max-width: 400px; margin: 0 auto; }
  .hlp-fields-grid { grid-template-columns: repeat(2, 1fr); }
  .hlp-who-cards { grid-template-columns: repeat(2, 1fr); }
  .hlp-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 767px) {
  .hlp-hero__title { font-size: 23px; }
  .hlp-stats { grid-template-columns: repeat(2, 1fr); }
  .hlp-checks { grid-template-columns: 1fr; }
  .hlp-fields-grid { grid-template-columns: 1fr 1fr; }
  .hlp-who-cards { grid-template-columns: 1fr; }
  .hlp-reviews-grid { grid-template-columns: 1fr; }

  /* Excel demo: switch to mobile cards */
  .hlp-excel-overlay { padding: 0; }
  .hlp-excel { max-width: 100%; max-height: 100vh; border-radius: 0; }
  .hlp-excel__grid-wrap { display: none; }
  .hlp-excel__mobile-wrap { display: block; flex: 1; overflow-y: auto; padding: 12px; background: #f9f9f9; }
  .hlp-excel__toolbar .hlp-excel__hint { display: none; }
  .hlp-excel__formula { display: none; }

  .hlp-cta__box { padding: 36px 20px; }
  .hlp-cta__box h2 { font-size: 22px; }
  .hl-section-title { font-size: 22px; }
  .hlp-logos__row { gap: 16px; }
  .hlp-logos__row span { font-size: 11px; }

  .hlp-excel__status { font-size: 10px; flex-wrap: wrap; gap: 6px; }
  .hlp-excel__status span { flex: 1; }
}

/* Icon grid mobile */
@media (max-width: 600px) {
  .hl-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-spec-cell:nth-child(-n+4) { border-top: 1px solid #e5e7eb; }
  .hl-spec-cell:nth-child(-n+2) { border-top: none; }
  .hl-spec-cell:not(:nth-child(4n)) { border-right: none; }
  .hl-spec-cell:not(:nth-child(2n)) { border-right: 1px solid #e5e7eb; }
  .hl-spec-cell:nth-child(2n) { border-right: none; }
  .hl-data-fields h2 { font-size: 22px; }
}
