/* Homepage: video + live experiences.
   The hero links directly to the approved V4 AI Business System film.
   Below it: the gated Audit film, live Receptionist, the V4 CRM showcase,
   and the Lead Follow-Up and Sales Pipeline experience.
   Players use the shared click-to-play poster/caption controls; no autoplay. */

/* ---- Films ---- */
.home-film {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(var(--space-lg), 4vh, var(--space-3xl)) var(--grid-margin);
  border-top: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 60% 55% at 50% 58%, oklch(52% 0.17 255 / 0.22), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 15%, oklch(55% 0.2 300 / 0.14), transparent 70%),
    var(--surface-0);
}
.home-film--crm {
  background:
    radial-gradient(ellipse 55% 60% at 72% 50%, oklch(55% 0.15 215 / 0.2), transparent 70%),
    radial-gradient(ellipse 35% 45% at 12% 80%, oklch(55% 0.2 290 / 0.12), transparent 70%),
    var(--surface-0);
}
.home-film-inner {
  width: 100%;
  max-width: var(--grid-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(var(--space-md), 2.6vh, var(--space-xl));
}
.home-film-head { text-align: center; max-width: 760px; }
.home-film-head h2 {
  margin: var(--space-xs) 0 0;
  font: 700 clamp(30px, 4.4vw, 56px) / var(--lh-tight) var(--font-display);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  text-wrap: balance;
}
.home-film-lede {
  margin: var(--space-md) auto 0;
  max-width: 62ch;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}
/* The film is the largest thing in its section: as wide as the viewport height leaves room for. */
.home-film-player {
  margin: 0;
  width: min(100%, 1180px, calc((100svh - var(--nav-h, 90px) - 440px) * 16 / 9));
  min-width: min(100%, 520px);
}
.home-film-player video {
  box-shadow: 0 0 90px -18px oklch(68% 0.19 240 / 0.6), 0 30px 70px -30px oklch(0% 0 0 / 0.9);
  border-color: oklch(84% 0.14 205 / 0.45);
}
.home-film-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
}
.home-film-meta { flex-basis: 100%; margin: 0; text-align: center; font: 400 var(--fs-micro) var(--font-mono); color: var(--text-tertiary); }

/* The approved CRM showcase is the central visual, not an outbound link. */
.home-crm-summary { max-width: 1180px; gap: clamp(var(--space-sm), 1.8vh, var(--space-lg)); text-align: center; }
.home-crm-summary .home-film-head { max-width: 880px; }
.home-crm-summary .home-film-lede { max-width: 68ch; }
.home-film--crm .home-film-player { width: min(100%, 1180px, calc((100svh - var(--nav-h, 90px) - 350px) * 16 / 9)); min-width: min(100%, 520px); }
.home-film--crm .home-film-player figcaption { color: var(--text-tertiary); font-size: var(--fs-micro); text-align: center; }
.home-film--crm .home-film-head h2 { font-size: clamp(29px, 3.8vw, 48px); }
.home-film--crm .home-film-lede { margin-top: var(--space-sm); }
.home-crm-results { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm) var(--space-lg); width: 100%; }
.home-crm-results span { font: 600 var(--fs-small) var(--font-display); color: var(--text-secondary); padding: var(--space-sm) 0; border-bottom: 1px solid var(--accent-blue); }

/* ---- Automation showcase ---- */
.automation-showcase {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(var(--space-lg), 4vh, var(--space-3xl)) var(--grid-margin);
  border-top: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 45% 50% at 25% 60%, oklch(55% 0.18 255 / 0.16), transparent 70%),
    radial-gradient(ellipse 45% 50% at 78% 55%, oklch(55% 0.2 295 / 0.14), transparent 70%),
    var(--surface-0);
}
.showcase-inner { width: 100%; max-width: var(--grid-max); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(var(--space-md), 2.6vh, var(--space-xl)); }
.showcase-head { text-align: center; }
.showcase-head h2 {
  margin: var(--space-xs) 0 0;
  font: 700 clamp(28px, 3.6vw, 48px) / var(--lh-tight) var(--font-display);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(var(--space-md), 2vw, var(--space-xl)); }
.showcase-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--space-md), 2vw, var(--space-xl));
  padding: clamp(var(--space-md), 2.4vw, var(--space-xl));
  border-radius: var(--radius-xl);
  border: 1px solid oklch(62% 0.06 265 / 0.28);
  background: linear-gradient(165deg, oklch(19% 0.016 262 / 0.82), oklch(13% 0.012 262 / 0.9));
  box-shadow: inset 0 1px 0 0 oklch(100% 0 0 / 0.05), 0 30px 80px -30px oklch(0% 0 0 / 0.6);
  scroll-margin-top: var(--nav-h, 90px);
}
.showcase-copy { min-width: 0; }
.showcase-copy h3 {
  margin: var(--space-xs) 0 var(--space-sm);
  font: 700 clamp(22px, 2vw, 30px) / var(--lh-tight) var(--font-display);
  color: var(--text-primary);
}
.showcase-copy > p:not(.eyebrow) { margin: 0; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--text-secondary); }
.showcase-points { list-style: none; margin: var(--space-md) 0; padding: 0; display: grid; gap: var(--space-sm); }
.showcase-points li { position: relative; padding-left: 22px; font-size: var(--fs-micro); line-height: 1.45; color: var(--text-tertiary); }
.showcase-points li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-gradient); box-shadow: 0 0 10px oklch(68% 0.19 255 / 0.6); }
.showcase-points strong { display: block; font-size: var(--fs-small); color: var(--text-primary); font-weight: 600; }
.showcase-link { font: 600 var(--fs-small) var(--font-display); color: var(--accent-blue); text-decoration: none; }
.showcase-link:hover, .showcase-link:focus-visible { text-decoration: underline; }

/* The follow-up phone, at a size that sits beside its copy instead of filling a screen. */
.showcase-followup .phone-shell-wrap { height: clamp(340px, 46vh, 470px); }
.showcase-followup .sms-bubble { padding: 8px 12px; border-radius: 18px; font-size: clamp(11px, 3.2cqh, 14px); line-height: 1.4; }
.showcase-followup .sms-bubble.from-lead { border-bottom-left-radius: 6px; }
.showcase-followup .sms-bubble.from-ai { border-bottom-right-radius: 6px; box-shadow: 0 2px 6px oklch(68% 0.19 255 / 0.28); }

/* The pipeline card, tightened to the same height as the phone. */
.showcase-pipeline .pipeline-card { width: clamp(250px, 23vw, 320px); max-width: none; padding: var(--space-lg) var(--space-md); }
.showcase-pipeline .pipeline-stage-label { white-space: nowrap; }
.showcase-pipeline .pipeline-stages { gap: clamp(8px, 1.4vh, 14px); }
.showcase-pipeline .pipeline-activity { margin-top: var(--space-md); padding-top: var(--space-sm); min-height: 72px; }

.showcase-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs) var(--space-lg);
  font-size: var(--fs-small);
  color: var(--text-tertiary);
}
.showcase-more a { color: var(--text-secondary); text-decoration: none; border-bottom: 1px solid var(--border-default); }
.showcase-more a:hover, .showcase-more a:focus-visible { color: var(--text-primary); border-color: var(--accent-blue); }

@media (max-width: 1180px) {
  .showcase-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .home-film-player, .home-film--crm .home-film-player { min-width: 0; width: 100%; }
  .home-film-head h2 { font-size: clamp(28px, 8vw, 38px); }
  .showcase-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .showcase-points { text-align: left; }
  .showcase-pipeline .pipeline-card { width: min(100%, 320px); }
  .showcase-more { flex-direction: column; }
}
