/* Homepage hero, split layout (Carson 2026-10-19): the site's own white background,
   words on the left, the real dashboard on the right. No stock photography -- the product
   is the picture. The dashboard is a small tabbed viewer of real portal screens
   (Your leads / Lead details) that cycles on its own and can be clicked.
   Loaded by index.html only, after style.css, so it overrides the centred .hero rules there. */

.hero.hero-split { text-align: left; padding: 100px 0 56px; }
.hero-split .container { max-width: 1320px; }
.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-split-copy { min-width: 0; }

.hero-split .hero-eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 6px 14px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.9px; text-transform: uppercase;
  color: var(--gold); white-space: nowrap; background: var(--gold-soft);
  border: 1px solid rgba(139,105,20,0.18); border-radius: 999px;
}
.hero-split h1 {
  max-width: none; margin: 0 0 14px;
  font-size: clamp(36px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.035em;
}
.hero-split .hero-subtitle {
  max-width: 540px; margin: 0 0 18px;
  font-size: 16.5px; line-height: 1.55; color: var(--text-1);
}
.hero-split .hero-search-wrap { margin: 0 0 14px; max-width: 540px; }
.hero-split .hero-search input { padding-top: 15px; padding-bottom: 15px; }
.hero-split .hero-cta { justify-content: flex-start; margin-top: 0; gap: 12px; }

/* ---- the product viewer ---- */
.hero-split-shot {
  min-width: 0;
  margin-right: calc(-1 * max(24px, (100vw - 1320px) / 2 + 24px));
}
.hero-tabs-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.hero-tabs-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }
.hero-tabs { counter-reset: herotab; display: inline-flex; gap: 4px; padding: 4px; background: #F2F2F4; border-radius: 999px; }
.hero-tab { counter-increment: herotab; }
.hero-tab-n::before { content: counter(herotab); }
.hero-tab-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-right: 7px; border-radius: 50%;
  font-size: 11px; font-weight: 700; background: rgba(0,0,0,0.08); color: inherit;
}
.hero-tab[aria-selected="true"] .hero-tab-n { background: rgba(255,255,255,0.22); }
.hero-tab {
  appearance: none; border: 1px solid transparent; background: transparent; display: inline-flex; align-items: center;
  color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.hero-tab:hover { color: var(--text-0); background: #FFFFFF; }
.hero-tab[aria-selected="true"] { color: #FFFFFF; background: var(--text-0); border-color: var(--text-0); }
.hero-window {
  position: relative; aspect-ratio: 2 / 1; overflow: hidden;
  border-radius: 16px 0 0 16px;
  border: 1px solid var(--border); border-right: 0; background: #F5F5F7;
  box-shadow: 0 40px 90px -36px rgba(0,0,0,0.28), 0 12px 40px -18px rgba(139,105,20,0.22);
}
.hero-window { cursor: pointer; }
.hero-hint {
  position: absolute; right: 18px; bottom: 16px; z-index: 3;
  appearance: none; border: 0; cursor: pointer; font: inherit;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text-0); color: #FFFFFF; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.45);
  transition: transform .2s ease, background .2s ease;
}
.hero-hint:hover, .hero-window:hover .hero-hint { transform: translateY(-2px); background: var(--gold); }
.hero-screen {
  position: absolute; inset: 0; opacity: 0;
  transform: scale(1.015); transition: opacity .7s ease, transform 1.2s ease;
}
.hero-screen.is-active { opacity: 1; transform: none; }
.hero-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
/* Zoomed in (Carson 2026-10-20: on a laptop the whole 3800px-wide screen shrank into ~700px and nothing
   could be read). The picture is drawn wider than the window and cropped, so the part that matters is
   bigger: the lead list from its left edge, the lead-details panel from its right edge. */
.hero-screen img { position: absolute; top: 0; height: auto; min-height: 100%; max-width: none; object-fit: cover; width: var(--hero-zoom, 150%); }
#heroScreen1 img { object-position: right top; }
#heroScreen0 img { left: 0; }
#heroScreen1 img { right: 0; }
@media (min-width: 1600px) { .hero-window { --hero-zoom: 128%; } }
/* progress bar under the tabs: shows the viewer is alive and when it will change */
.hero-progress { height: 2px; background: var(--border); border-radius: 2px; margin: 0 0 12px; overflow: hidden; }
.hero-progress i { display: block; height: 100%; width: 0; background: var(--gold); }
.hero-progress.run i { animation: heroProgress var(--hero-cycle, 6s) linear forwards; }
@keyframes heroProgress { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .hero-screen { transition: none; transform: none; }
  .hero-progress { display: none; }
}

/* Laptop screens (short windows): tighten the hero so the four stats sit right under it, in view. */
@media (min-width: 981px) and (max-height: 860px) {
  .hero.hero-split { padding: 88px 0 48px; }
  .stats-bar .stat-item { padding: 20px 24px; }
  .hero-split .hero-eyebrow { margin-bottom: 12px; }
  .hero-split h1 { font-size: clamp(34px, 3.3vw, 48px); margin-bottom: 12px; }
  .hero-split .hero-subtitle { margin-bottom: 14px; }
  .hero-tabs-row, .hero-progress { margin-bottom: 10px; }
}

/* Tablets: stack, viewer under the words. */
@media (max-width: 1100px) { .hero-split .hero-eyebrow { white-space: normal; } }
@media (max-width: 980px) {
  .hero.hero-split { padding: 104px 0 48px; }
  .hero-split-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-split-shot { margin-right: 0; }
  .hero-window { border-radius: 14px; border-right: 1px solid var(--border); }
}

/* Phones: centred words, as the old hero had them. */
@media (max-width: 640px) {
  .hero.hero-split { text-align: center; padding: 92px 0 32px; }
  .hero-split .hero-eyebrow { font-size: 10.5px; padding: 5px 12px; white-space: normal; }
  .hero-split h1 { font-size: 34px; line-height: 1.08; }
  .hero-split .hero-subtitle { font-size: 16px; margin: 0 auto 20px; }
  .hero-split .hero-search-wrap { margin: 0 auto 14px; }
  .hero-split .hero-cta { justify-content: center; flex-direction: row; flex-wrap: nowrap; gap: 8px; }
  .hero-split .hero-cta .btn { flex: 1 1 0; width: auto; max-width: none; padding: 13px 8px; font-size: 14px; white-space: nowrap !important; }
  .hero-tabs-row { justify-content: center; }
  .hero-hint { right: 10px; bottom: 10px; padding: 8px 12px; font-size: 13px; }
  .hero-split-grid { gap: 28px; }
  /* A full desktop screen shrunk to 360px is unreadable: show the part that matters, larger.
     List view = its left side (names, dates, lead types); detail view = the opened lead on the right. */
  .hero-window { aspect-ratio: 4 / 3; }
  #heroScreen0 img { object-position: left top; }
  #heroScreen1 img { object-position: right top; }
}

/* Small phones (360-ish wide, ~640 tall): keep both buttons in the first screen. */
@media (max-width: 380px) {
  .hero.hero-split { padding-top: 84px; }
  .hero-split h1 { font-size: 30px; margin-bottom: 10px; }
  .hero-split .hero-subtitle { font-size: 15px; line-height: 1.45; margin-bottom: 14px; }
  .hero-split .hero-eyebrow { margin-bottom: 12px; }
}

/* The stats tiles sit on white like the section after them: their own bottom padding plus the next
   section's top padding left a ~140px empty band under the tiles (2026-10-19 review). */
.hero-split + .stats-bar { padding-bottom: 8px; }
