/* ============================================
   Homepage Hero — LSA Performance Card
   All styles scoped under .hero-lsa-card so nothing leaks out.
   ============================================ */

.hero-lsa-card {
  /* Local design tokens (don't pollute the global namespace) */
  --hl-navy: #0F2B46;
  --hl-navy-deep: #0a1f33;
  --hl-teal: #00B4D8;
  --hl-teal-dim: rgba(0, 180, 216, 0.08);
  --hl-orange: #FF6B2B;
  --hl-orange-dim: rgba(255, 107, 43, 0.06);
  --hl-green: #10B981;
  --hl-green-dim: rgba(16, 185, 129, 0.06);
  --hl-blue: #2563EB;
  --hl-blue-dim: rgba(37, 99, 235, 0.06);
  --hl-white: #fff;
  --hl-g50: #F8FAFC;
  --hl-g100: #F1F5F9;
  --hl-g200: #E2E8F0;
  --hl-g300: #CBD5E1;
  --hl-g400: #94A3B8;
  --hl-g500: #64748B;
  --hl-g600: #475569;

  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: var(--hl-white);
  border-radius: 16px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  animation: hlFloatCard 6s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-lsa-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.hero-lsa-card *,
.hero-lsa-card *::before,
.hero-lsa-card *::after {
  box-sizing: border-box;
}

/* ── Header ── */
.hero-lsa-card .lh {
  background: linear-gradient(135deg, var(--hl-navy), var(--hl-navy-deep));
  padding: 14px 18px;
}

.hero-lsa-card .lh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hero-lsa-card .lh-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--hl-g400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-lsa-card .lh-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--hl-white);
}

.hero-lsa-card .lh-gg {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 9px;
  border-radius: 6px;
}

.hero-lsa-card .lh-gg svg {
  width: 11px;
  height: 11px;
  color: var(--hl-green);
}

.hero-lsa-card .lh-gg span {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--hl-green);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Google search preview */
.hero-lsa-card .lh-search {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
}

.hero-lsa-card .lh-search-label {
  font-size: 7.5px;
  color: var(--hl-g400);
  font-weight: 500;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* LSA result */
.hero-lsa-card .lh-lsa {
  background: rgba(0, 180, 216, 0.06);
  border: 1px solid rgba(0, 180, 216, 0.12);
  border-radius: 6px;
  padding: 7px 9px;
  margin-bottom: 4px;
  position: relative;
}

.hero-lsa-card .lh-lsa-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 5px;
  border-radius: 3px;
}

.hero-lsa-card .lh-lsa-badge svg {
  width: 7px;
  height: 7px;
  color: var(--hl-green);
}

.hero-lsa-card .lh-lsa-badge span {
  font-size: 6.5px;
  font-weight: 700;
  color: var(--hl-green);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.hero-lsa-card .lh-lsa-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--hl-teal);
}

.hero-lsa-card .lh-lsa-meta {
  font-size: 8px;
  color: var(--hl-g400);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.hero-lsa-card .lh-lsa-stars svg {
  width: 8px;
  height: 8px;
}

.hero-lsa-card .lh-lsa-tag {
  font-size: 6.5px;
  font-weight: 700;
  color: var(--hl-teal);
  background: var(--hl-teal-dim);
  padding: 1px 4px;
  border-radius: 2px;
  margin-left: 2px;
}

/* Regular ads below, dimmed */
.hero-lsa-card .lh-reg {
  padding: 5px 9px;
  opacity: 0.4;
}

.hero-lsa-card .lh-reg-label {
  font-size: 6.5px;
  font-weight: 700;
  color: var(--hl-g400);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.hero-lsa-card .lh-reg-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  margin-bottom: 3px;
}

.hero-lsa-card .lh-reg-line.short {
  width: 65%;
}

/* ── 3 Reasons Row ── */
.hero-lsa-card .lr {
  display: flex;
  border-bottom: 1px solid var(--hl-g100);
}

.hero-lsa-card .lr-item {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid var(--hl-g100);
}

.hero-lsa-card .lr-item:last-child {
  border-right: none;
}

.hero-lsa-card .lr-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-lsa-card .lr-icon svg {
  width: 12px;
  height: 12px;
}

.hero-lsa-card .lr-icon.vis {
  background: var(--hl-blue-dim);
  color: var(--hl-blue);
}

.hero-lsa-card .lr-icon.trust {
  background: var(--hl-green-dim);
  color: var(--hl-green);
}

.hero-lsa-card .lr-icon.cost {
  background: var(--hl-orange-dim);
  color: var(--hl-orange);
}

.hero-lsa-card .lr-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--hl-navy);
  line-height: 1.3;
}

.hero-lsa-card .lr-desc {
  font-family: 'Inter', sans-serif;
  font-size: 7.5px;
  color: var(--hl-g400);
  margin-top: 2px;
  line-height: 1.3;
}

/* ── HVAC Campaign Example ── */
.hero-lsa-card .lc {
  padding: 14px 18px 6px;
}

.hero-lsa-card .lc-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--hl-g400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-lsa-card .lc-title svg {
  width: 12px;
  height: 12px;
  color: var(--hl-teal);
}

.hero-lsa-card .lc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--hl-g100);
  opacity: 0;
  animation: hlFadeIn 0.4s ease forwards;
}

.hero-lsa-card .lc-row:last-child {
  border-bottom: none;
}

.hero-lsa-card .lc-row-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  color: var(--hl-g600);
  font-weight: 500;
}

.hero-lsa-card .lc-row-val {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hl-navy);
  text-align: right;
}

.hero-lsa-card .lc-row-val.green { color: var(--hl-green); }
.hero-lsa-card .lc-row-val.teal  { color: var(--hl-teal); }

/* ── Revenue highlight ── */
.hero-lsa-card .lrev {
  margin: 10px 18px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--hl-green-dim), rgba(16, 185, 129, 0.02));
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 10px;
  text-align: center;
}

.hero-lsa-card .lrev-label {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--hl-g400);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}

.hero-lsa-card .lrev-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--hl-green);
}

.hero-lsa-card .lrev-val small {
  font-size: 12px;
  color: var(--hl-g400);
  font-weight: 600;
}

.hero-lsa-card .lrev-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: var(--hl-g500);
  margin-top: 3px;
}

/* ── Footer ── */
.hero-lsa-card .lf {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--hl-g50);
  border-top: 1px solid var(--hl-g100);
  border-radius: 0 0 16px 16px;
}

.hero-lsa-card .lf svg {
  width: 13px;
  height: 13px;
  color: var(--hl-green);
  flex-shrink: 0;
}

.hero-lsa-card .lf-text {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  color: var(--hl-g500);
}

.hero-lsa-card .lf-text b {
  color: var(--hl-green);
  font-weight: 700;
}

/* ── Animations ── */
@keyframes hlFloatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes hlFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-lsa-card .lc-row:nth-child(1) { animation-delay: 0.30s; }
.hero-lsa-card .lc-row:nth-child(2) { animation-delay: 0.38s; }
.hero-lsa-card .lc-row:nth-child(3) { animation-delay: 0.46s; }
.hero-lsa-card .lc-row:nth-child(4) { animation-delay: 0.54s; }
.hero-lsa-card .lc-row:nth-child(5) { animation-delay: 0.62s; }
.hero-lsa-card .lc-row:nth-child(6) { animation-delay: 0.70s; }

/* ── Hero visual wrapper — keep visible on mobile ── */
.hero-section .hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  min-width: 0;
}

@media (max-width: 991px) {
  .hero-lsa-card { max-width: 320px; }
}

@media (max-width: 640px) {
  .hero-lsa-card { max-width: 300px; }
  .hero-lsa-card .lrev-val { font-size: 20px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-lsa-card,
  .hero-lsa-card .lc-row {
    animation: none !important;
  }
}
