/* =========================================================================
   Index v2 — long-form alternating sections, scan reveal, and RR blue swap.
   Layered on top of homepage.css.
   ========================================================================= */

/* Swap Echo (Reputation) module color from indigo to a distinct true blue.
   Keeps RR's identity as a blue module — separate from TMS cyan + Inspect indigo. */
:root {
  --module-echo-500-v2: #1d4ed8;
  --module-echo-bg-v2:  rgba(29,78,216,0.08);
  --module-echo-tint-v2:rgba(29,78,216,0.16);
}

/* ============================================================
   SCAN REVEAL — full-bleed result panel that appears after scan.
   Two visible cards + two locked/blurred cards.
   ============================================================ */
.hp2-reveal {
  background: linear-gradient(180deg, #050b14 0%, #0a1628 100%);
  color: #e2e8f0;
  padding: 80px 0 96px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hp2-reveal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; margin-bottom: 40px; flex-wrap: wrap;
}
.hp2-reveal-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: #67e8f9;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 12px;
}
.hp2-reveal-eyebrow strong { color: #f8fafc; text-transform: none; letter-spacing: 0; font-size: 13px; }
.hp2-pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.2); animation: hp2-pulse 1.6s infinite;
}
@keyframes hp2-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(16,185,129,0.2);} 50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } }
.hp2-reveal-title {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 800;
  color: #f8fafc; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 8px;
}
.hp2-reveal-sub { font-size: 16px; color: #94a3b8; margin: 0; }
.hp2-reveal-close {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05); color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.10); border-radius: 8px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.hp2-reveal-close:hover { background: rgba(255,255,255,0.08); }

.hp2-reveal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .hp2-reveal-grid { grid-template-columns: 1fr; } }

.hp2-reveal-card {
  position: relative;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 24px; min-height: 280px;
}
.hp2-reveal-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hp2-reveal-card-icon {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
.hp2-reveal-card-t { font-size: 15px; font-weight: 700; color: #f1f5f9; }
.hp2-reveal-card-s { font-size: 12px; color: #94a3b8; margin-top: 2px; }

.hp2-issue-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hp2-issue {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: rgba(255,255,255,0.02); border-radius: 8px;
  border-left: 3px solid transparent;
}
.hp2-issue-sev { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hp2-issue-high { border-left-color: #ef4444; }
.hp2-issue-high .hp2-issue-sev { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.hp2-issue-med  { border-left-color: #f59e0b; }
.hp2-issue-med  .hp2-issue-sev { background: #f59e0b; }
.hp2-issue-low  { border-left-color: #06b6d4; }
.hp2-issue-low  .hp2-issue-sev { background: #06b6d4; }
.hp2-issue-t { font-size: 13px; font-weight: 600; color: #f1f5f9; }
.hp2-issue-d { font-size: 12px; color: #94a3b8; margin-top: 2px; }

.hp2-kw-table { width: 100%; border-collapse: collapse; }
.hp2-kw-table th {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: #64748b; font-weight: 600; text-align: left;
  padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hp2-kw-table td {
  padding: 12px 10px; font-size: 13px; color: #e2e8f0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.hp2-kw-table tr:last-child td { border-bottom: none; }
.hp2-kw-pos {
  display: inline-block; padding: 2px 8px; background: rgba(8,145,178,0.16);
  color: #67e8f9; border-radius: 6px; font-weight: 700; font-size: 12px;
}

.hp2-reveal-card-locked { overflow: hidden; }
.hp2-blur-content { filter: blur(4px); pointer-events: none; user-select: none; }
.hp2-blur-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; margin-bottom: 6px;
  background: rgba(255,255,255,0.02); border-radius: 8px;
  font-size: 13px; color: #cbd5e1;
}
.hp2-blur-row span:nth-child(2) { font-weight: 700; color: #f8fafc; }
.hp2-blur-row span:nth-child(3) { font-size: 11px; color: #64748b; }

.hp2-lock-overlay {
  position: absolute; inset: 60px 24px 24px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, rgba(5,11,20,0.4) 0%, rgba(5,11,20,0.92) 60%);
  border-radius: 12px; pointer-events: none;
}
.hp2-lock-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #10b981, #06b6d4); color: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(6,182,212,0.4);
}
.hp2-lock-t { font-size: 14px; font-weight: 700; color: #f1f5f9; }

.hp2-reveal-cta {
  text-align: center; padding: 32px 24px;
  background: rgba(6,182,212,0.06); border: 1px solid rgba(6,182,212,0.20);
  border-radius: 18px;
}
.hp2-reveal-cta-sub { font-size: 16px; color: #cbd5e1; margin: 0 0 18px; }
.hp2-reveal-cta-fine { font-size: 12px; color: #64748b; margin: 14px 0 0; }

/* ============================================================
   ALTERNATING SECTIONS
   ============================================================ */
.hp2-section { padding: 96px 0; position: relative; }
.hp2-section-light { background: #fff; color: #0f172a; }
.hp2-section-dark {
  background: linear-gradient(180deg, #050b14 0%, #0a1628 100%);
  color: #e2e8f0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.hp2-section-dark .hp-eyebrow { color: #67e8f9; background: rgba(6,182,212,0.10); border-color: rgba(6,182,212,0.28); }

.hp2-section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.hp2-h2 {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.1; color: #0f172a; margin: 0 0 16px;
  text-wrap: balance;
}
.hp2-h2-light { color: #f8fafc; }
.hp2-h2-xl { font-size: clamp(40px, 5vw, 60px); }
.hp2-lede { font-size: 19px; line-height: 1.55; color: #475569; margin: 0 0 24px; max-width: 720px; }
.hp2-lede-dark { color: #475569; margin-left: auto; margin-right: auto; }
.hp2-lede-light { color: #cbd5e1; }
.hp2-p { font-size: 16px; line-height: 1.7; color: #334155; margin: 0 0 18px; max-width: 640px; }
.hp2-p-light { color: #cbd5e1; }
.hp2-p strong { color: #f8fafc; font-weight: 700; }
.hp2-section-light .hp2-p strong { color: #0f172a; }
.hp2-p em { color: #67e8f9; font-style: normal; font-weight: 600; }
.hp2-section-light .hp2-p em { color: #0891b2; }

/* 2-column text + aside */
.hp2-2col {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 64px; align-items: start;
}
@media (max-width: 980px) { .hp2-2col { grid-template-columns: 1fr; gap: 40px; } }
.hp2-stat-block {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 28px; margin-bottom: 16px;
}
.hp2-stat-num {
  font-size: 56px; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 10px;
}
.hp2-stat-d { font-size: 14px; color: #cbd5e1; margin: 0; line-height: 1.5; }

.hp2-dl { margin: 0; padding: 0; }
.hp2-dl dt {
  font-size: 12px; font-weight: 700; color: #67e8f9;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 16px 0 6px; border-top: 1px solid rgba(255,255,255,0.08);
}
.hp2-dl dt:first-child { border-top: none; padding-top: 4px; }
.hp2-dl dd { font-size: 14px; color: #cbd5e1; line-height: 1.55; margin: 0 0 8px; }

.hp2-pillars { display: flex; flex-direction: column; gap: 14px; }
.hp2-pillar {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
}
.hp2-pillar-mark {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  background: linear-gradient(135deg, #10b981, #06b6d4); color: #fff;
  border-radius: 8px;
}
.hp2-pillar-t { font-size: 15px; font-weight: 700; color: #f8fafc; margin-bottom: 2px; }
.hp2-pillar-d { font-size: 13px; color: #94a3b8; line-height: 1.5; }

/* Steps grid */
.hp2-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .hp2-steps { grid-template-columns: 1fr; } }
.hp2-step {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px;
  position: relative;
}
.hp2-step-num {
  font-size: 13px; font-weight: 800; color: #06b6d4; letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.hp2-step-t {
  font-size: 14px; font-weight: 800; color: #0f172a;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.hp2-step-d { font-size: 14px; color: #475569; line-height: 1.6; margin: 0; }

/* Testimonials */
.hp2-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .hp2-testi-grid { grid-template-columns: 1fr; } }
.hp2-testi {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px;
  margin: 0; display: flex; flex-direction: column;
}
.hp2-testi-stars { display: flex; gap: 2px; color: #f59e0b; margin-bottom: 14px; }
.hp2-testi-q { font-size: 16px; line-height: 1.6; color: #0f172a; margin: 0 0 18px; flex: 1; text-wrap: pretty; }
.hp2-testi-c { font-style: normal; font-size: 13px; color: #0f172a; font-weight: 600; }
.hp2-testi-c span { color: #64748b; font-weight: 500; }

/* FAQ */
.hp2-faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.hp2-faq-item {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; transition: background .15s;
}
.hp2-faq-item[open] { background: rgba(6,182,212,0.06); border-color: rgba(6,182,212,0.28); }
.hp2-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; color: #f1f5f9;
}
.hp2-faq-q::-webkit-details-marker { display: none; }
.hp2-faq-mark {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(255,255,255,0.05); color: #94a3b8;
  transition: transform .2s;
}
.hp2-faq-item[open] .hp2-faq-mark { transform: rotate(45deg); background: rgba(6,182,212,0.20); color: #67e8f9; }
.hp2-faq-a {
  padding: 0 22px 22px; margin: 0; font-size: 15px; color: #cbd5e1; line-height: 1.65;
}

/* Local SEO cities */
.hp2-cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .hp2-cities { grid-template-columns: 1fr; } }
.hp2-city {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px;
  transition: border-color .15s, transform .15s;
}
.hp2-city:hover { border-color: #06b6d4; transform: translateY(-2px); }
.hp2-city-c { font-size: 22px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.hp2-city-a { font-size: 12px; color: #06b6d4; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin: 4px 0 12px; }
.hp2-city-d { font-size: 14px; color: #475569; line-height: 1.55; margin: 0 0 16px; }
.hp2-city-l {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: #0e7490; text-decoration: none;
}
.hp2-city-l:hover { gap: 8px; }

/* Final CTA */
.hp2-section-finale { text-align: center; padding: 120px 0; }
.hp2-finale { max-width: 760px; margin: 0 auto; }
.hp2-finale .hp-btn-primary { margin-top: 24px; }
.hp2-finale-fine { font-size: 13px; color: #64748b; margin: 24px 0 0; }

/* RR / Echo blue swap — apply when v2 active */
.v2-blue-echo .hp-suite-card[style*="79,70,229"],
.v2-blue-echo .hp-result-grade[style*="79,70,229"] {
  /* will be overridden by inline --c on card; we rewrite the value via JS */
}
