/* ============================================================
   eInsights - Hero Variant B (light, two-column)
   Left: text + dominant CTA.  Right: "coverage discovery"
   results visualization (a service outcome, not a SaaS UI).
   Overrides scoped to .hero--v2; everything else inherits styles.css
   ============================================================ */

.hero--v2 {
  text-align: left;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: auto;
  padding: 120px 0 44px;
}
/* mirror the animated gradient to the RIGHT so the blue clears the left-side title text */
.hero--v2 .hero__bg { transform: scaleX(-1); }
/* uses the same animated mesh-gradient background + veil as the centered hero (inherited from styles.css) */

/* layout */
.hero-v2__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; width: 100%; }
.hero-v2__copy { max-width: 600px; }

.hero--v2 h1 {
  margin: 24px 0 0; max-width: none; text-align: left; color: var(--navy-900);
  font-size: clamp(33px, 3.7vw, 56px); line-height: 1.18; letter-spacing: -.025em;
}
.hero--v2 h1 .tealhi { color: var(--teal); }
.hero--v2 .hero__sub { margin: 28px 0 0; max-width: 48ch; color: var(--ink-soft); }
.hero--v2 .hero__sub b { color: var(--navy-900); }

.hero-v2__cta { margin-top: 48px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-v2__cta .btn--cta { font-size: 17px; padding: 17px 32px; }      /* dominant */
/* KLAS comparison bar chart (hero trust signal) */
.klas { margin-top: 32px; width: 100%; max-width: 366px; }
.klas__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 13px; }
.klas__title { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); }
.klas__value { font-size: 12.5px; color: var(--ink-mute); font-weight: 600; }
.klas__value b { font-size: 15px; color: var(--teal); font-weight: 700; margin-right: 2px; }
.klas__bars { display: flex; flex-direction: column; gap: 9px; }
.klas__row { display: grid; grid-template-columns: 74px 1fr 30px; align-items: center; gap: 10px; }
.klas__lab { font-size: 11.5px; font-weight: 600; color: var(--ink-mute); white-space: nowrap; }
.klas__row--lead .klas__lab { color: var(--navy-900); font-weight: 700; }
.klas__track { height: 8px; background: var(--ground-2); border-radius: 999px; overflow: hidden; }
.klas__fill { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--cyan)); transform-origin: left center; }
.klas__fill--muted { background: #b6c6d3; }
/* grow-in on reveal - base state is full width (robust if throttled); animation has no fill so it reverts to full */
.reveal.in .klas__fill { animation: klasGrow .8s var(--ease); }
.reveal.in .klas__row:nth-child(2) .klas__fill { animation-delay: .12s; }
.reveal.in .klas__row:nth-child(3) .klas__fill { animation-delay: .24s; }
@keyframes klasGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .reveal.in .klas__fill { animation: none; } }
.klas__num { font-size: 12.5px; font-weight: 700; color: var(--navy-900); text-align: right; }
.klas__row:not(.klas__row--lead) .klas__num { color: var(--ink-mute); }
.klas__attr { margin-top: 13px; font-size: 11px; color: var(--ink-mute); letter-spacing: .02em; }


/* KLAS recognition section card (bento styling) */
.klas-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; margin-top: 50px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 50px; box-shadow: var(--shadow-1); overflow: hidden; transition: transform .35s var(--ease), box-shadow .4s var(--ease); }
.klas-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,0) 16%, #fff 58%),
    linear-gradient(225deg, rgba(31,159,184,.20), rgba(31,159,184,0) 60%),
    repeating-linear-gradient(135deg, rgba(31,159,184,.10) 0 1.5px, transparent 1.5px 13px); }
.klas-card > * { position: relative; z-index: 1; }
.klas-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.klas-card__lead h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; line-height: 1.18; }
.klas-card__lead p { margin-top: 14px; font-size: 16px; color: var(--ink-soft); max-width: 40ch; }
.klas-card__lead p strong, .section-head p strong { color: var(--navy-900); font-weight: 700; }
.klas-card__stats { margin-top: 26px; display: flex; gap: 30px; }
.klas-card__stat b { display: block; font-size: 30px; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; line-height: 1; }
.klas-card__stat:first-child b { color: var(--teal); }
.klas-card__stat span { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }
.klas-card .klas { margin-top: 0; max-width: none; }
.klas-card .klas__track { height: 11px; }
.klas-card .klas__row { grid-template-columns: 86px 1fr 34px; }
.klas-card .klas__lab, .klas-card .klas__num { font-size: 13px; }
.klas-card .klas__title { font-size: 12.5px; }
@media (max-width: 860px) {
  .klas-card { grid-template-columns: 1fr; gap: 34px; padding: 38px 30px; }
}

/* ---- coverage-discovery panel ---- */
.hero-v2__panel { display: flex; justify-content: center; }
.discover {
  position: relative; width: 100%; max-width: 356px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-2); padding: 16px 16px 15px; overflow: hidden;
}
.discover__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.discover__title { font-size: 13px; font-weight: 700; color: var(--navy-900); letter-spacing: -.01em; line-height: 1.3; max-width: 26ch; }
.discover__scope { font-size: 11px; font-weight: 600; color: var(--ink-mute); margin-bottom: 13px; display: inline-flex; align-items: center; gap: 7px; }
.discover__scope::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(54,181,204,.18); flex: none; }
.discover__illus { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); background: var(--ground); border: 1px solid var(--line); padding: 5px 9px; border-radius: 999px; }
.discover__illus-logo { flex: none; height: 15px; width: auto; display: block; opacity: .92; }

.discover__list { display: flex; flex-direction: column; gap: 3px; position: relative; }
.drow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 9px;
  padding: 4px 10px; border-radius: 8px; background: var(--ground); border: 1px solid var(--line);
  transition: background .45s var(--ease), border-color .45s var(--ease); }
.drow.is-found { background: rgba(31,159,184,.075); border-color: rgba(31,159,184,.32); }
.drow__main { display: flex; flex-direction: row; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.drow__acct { font-size: 10.5px; font-weight: 700; color: var(--navy-700); letter-spacing: .02em; flex: none; white-space: nowrap; }
.drow__states { display: block; min-width: 0; flex: 1; }
.drow__state { font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.drow__before { color: var(--ink-mute); }
.drow__after { display: none; color: var(--teal); align-items: center; gap: 5px; }
.drow__after svg { width: 13px; height: 13px; flex: none; }
.drow.is-found .drow__before { display: none; }
.drow.is-found .drow__after { display: flex; }
.drow__amt { flex: none; font-size: 13px; font-weight: 700; color: var(--teal); opacity: 0; transform: translateX(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); font-variant-numeric: tabular-nums; }
.drow.is-found .drow__amt { opacity: 1; transform: none; }

/* scanning line sweeping top -> bottom */
.discover__scan { position: absolute; left: 8px; right: 8px; top: 0; height: 54px; pointer-events: none; opacity: 0; z-index: 4;
  background: linear-gradient(180deg, rgba(54,181,204,0) 0%, rgba(54,181,204,.14) 72%, rgba(54,181,204,.42) 100%);
  border-bottom: 2px solid var(--cyan); border-radius: 8px;
  transform: translateY(-54px); }
.discover.is-scanning .discover__scan { opacity: 1; }
.discover__scanhead { position: absolute; right: 12px; bottom: -15px; width: 30px; height: 30px; border-radius: 50%;
  background: #fff url("../einsights-icon.png") center / 19px auto no-repeat;
  border: 1.5px solid var(--cyan); box-shadow: 0 3px 12px rgba(31,159,184,.5); }

.discover__total { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.discover__total span { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.discover__total b { display: inline-block; font-size: 20px; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.discover__total b.is-pop { animation: totalPop .62s var(--ease); }
@keyframes totalPop {
  0%   { transform: scale(1); color: var(--navy-900); }
  35%  { transform: scale(1.22); color: var(--teal); }
  60%  { transform: scale(.98); }
  100% { transform: scale(1); color: var(--navy-900); }
}
@media (prefers-reduced-motion: reduce) { .discover__total b.is-pop { animation: none; } }

/* reduced motion: show fully resolved, no scan/count */
@media (prefers-reduced-motion: reduce) {
  .drow { background: rgba(31,159,184,.075); border-color: rgba(31,159,184,.32); }
  .drow__before { display: none; }
  .drow__after { display: inline-flex; }
  .drow__amt { opacity: 1; transform: none; }
  .discover__scan { display: none; }
}

/* responsive: stack, text first */
@media (max-width: 980px) {
  /* minmax(0, 1fr) lets the single column shrink below its content's
     min-content width; a plain 1fr keeps the track as wide as the widest
     child, which pushed the heading and copy off-screen on narrow phones */
  .hero-v2__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-v2__copy, .hero-v2__panel { min-width: 0; }
  .hero-v2__panel { justify-content: flex-start; }
  .discover { max-width: 100%; }
}
