/* ==========================================================================
   SECTION: Hero
   Layout mapped from reference. Colour and type from tokens.css.
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--sp-6) var(--sp-24);
  background: var(--bg-base);
}

/* --- Atmosphere ----------------------------------------------------------
   Reference used a navy field with star grain and a top vignette. Same three
   layers here, rebuilt on our near-black base: blue halo, grain, edge falloff.
   ------------------------------------------------------------------------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__bg::before {                       /* blue halo, top-centre */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% -5%,  rgba(27, 110, 243, 0.20) 0%,
                                          rgba(27, 110, 243, 0) 68%),
    radial-gradient(48% 40% at 50% 42%,  rgba(33, 168, 242, 0.09) 0%,
                                          rgba(33, 168, 242, 0) 72%);
}
.hero__bg::after {                        /* grain */
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.045;
  mix-blend-mode: overlay;
}

/* --- Brand bar ------------------------------------------------------------ */
.hero__brand {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-16);
}
.hero__logo {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1;
}
.hero__logo span {
  display: block;
  font-size: 0.5em;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: var(--sp-1);
}

/* --- Eyebrow -------------------------------------------------------------- */
.hero__eyebrow {
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}

/* --- Headline -------------------------------------------------------------
   88 characters. 30ch measure lands it on three lines at 44px.
   ------------------------------------------------------------------------- */
.hero__title {
  max-width: 30ch;
  margin: 0 auto var(--sp-6);
  text-align: center;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: var(--fw-bold);
  line-height: 1.14;
  letter-spacing: -0.018em;
  color: var(--text-primary);
}

/* Inline highlight. Sits mid-sentence in the subhead, so it uses a tight
   plate rather than a block one. --accent-hover because --accent at full
   strength loses contrast once it sits on its own tint. */
.hero__highlight {
  display: inline;
  padding: 0.12em 0.4em;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  color: var(--accent-hover);
  font-weight: var(--fw-bold);
  /* Keeps the plate intact if the phrase wraps across two lines */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --- Subhead -------------------------------------------------------------- */
.hero__sub {
  max-width: 62ch;
  margin: 0 auto var(--sp-16);
  text-align: center;
  text-wrap: pretty;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--text-body);
}
.hero__sub strong,
.checklist strong {
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

/* --- Split: video | points ------------------------------------------------ */
.hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-16);
  align-items: center;
}

/* --- Video ---------------------------------------------------------------- */
/* Reference used a thick light border with a dark inset. Rebuilt as an outer
   plate with padding rather than a fat border, so the corner radii nest. */
.hero__media { position: relative; }

.video-plate {
  padding: 5px;
  border-radius: calc(var(--r-2xl) + 5px);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-raised);
}
.video-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: #000 center / cover no-repeat;
  cursor: pointer;
}
.video-frame::after {                      /* darken toward the CTA */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}
.video-frame:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.video-frame__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: #FFFFFF;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
  transition: scale var(--dur-base) var(--ease-out);
}
.video-frame:hover .video-frame__play { scale: 1.06; }
.video-frame__play svg { width: 26px; height: 26px; fill: var(--accent); margin-left: 4px; }

/* Floating CTA, straddling the video's bottom edge.
   Label runs 52 characters, so it wraps rather than blowing out the column. */
.hero__cta {
  position: absolute;
  left: 50%;
  width: 70% ;
  bottom: 0;
  width: 70% !important ;
  translate: -50% 50%;
  z-index: 2;
  max-width: 92%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  border-radius: var(--r-full);
  /* Ring cuts the button out of the video, then the blue halo lifts it. */
  box-shadow:
    0 0 0 6px var(--bg-base),
    0 0 0 7px var(--border-medium),
    0 10px 30px rgba(27, 110, 243, 0.45);
}
.hero__cta:hover {
  box-shadow:
    0 0 0 6px var(--bg-base),
    0 0 0 7px var(--border-strong),
    0 12px 36px rgba(27, 110, 243, 0.55);
}

/* --- Checklist ------------------------------------------------------------ */
.checklist {
  list-style: none;
  margin: 0 0 var(--sp-10);
  padding: 0;
  display: grid;
  gap: var(--sp-5);
}
.checklist li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--sp-4);
  align-items: start;
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
  color: var(--text-body);
}
.checklist svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Social proof --------------------------------------------------------- */
.proof {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.proof__avatars { display: flex; }
.proof__avatars img,
.proof__avatars .avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--r-full);
  border: 2px solid var(--bg-base);
  object-fit: cover;
  margin-left: -12px;
  background: var(--bg-tile);
}
.proof__avatars > :first-child { margin-left: 0; }

.proof__text {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  line-height: 1.3;
}
.proof__stars {
  display: flex;
  gap: 2px;
  margin-top: var(--sp-1);
}
.proof__stars svg { width: 14px; height: 14px; fill: var(--star); }

/* --- Qualifier / scarcity note -------------------------------------------
   Kept restrained on purpose. A loud amber alert box undercuts credibility
   with a clinical audience; a quiet plate reads as a real condition of entry.
   ------------------------------------------------------------------------- */
.hero__warning {
  max-width: 78ch;
  margin: var(--sp-20) auto 0;
  padding: var(--sp-5) var(--sp-8);
  text-align: center;
  text-wrap: pretty;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
}
.hero__warning strong {
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero              { padding-block: var(--sp-5) var(--sp-20); }
  .hero__brand       { margin-bottom: var(--sp-10); }
  .hero__title       { max-width: 24ch; }
  .hero__sub         { margin-bottom: var(--sp-10); }
  .hero__split       { grid-template-columns: 1fr; gap: var(--sp-16); }
  .hero__warning     { margin-top: var(--sp-12); padding: var(--sp-4) var(--sp-5); }
  .video-frame__play { width: 60px; height: 60px; }
  .video-frame__play svg { width: 20px; height: 20px; }
}

@media (max-width: 520px) {
  .hero__cta         { font-size: var(--fs-xs); padding: var(--sp-3) var(--sp-5); }
  .proof__avatars img,
  .proof__avatars .avatar { width: 34px; height: 34px; margin-left: -10px; }
}
