/* Marketing page heroes ? full-width bands that start below the fixed navbar. */

.marketing-hero {
  position: relative;
  width: 100%;
  /* Hero height stepped down from 3:2 (25%, then 10%, then 10%). */
  aspect-ratio: 200 / 81;
  /* lvh — stable across mobile browser-chrome show/hide (not svh). */
  min-height: max(12.15rem, calc(100lvh - var(--marketing-navbar-height, 5.0625rem)));
  max-height: calc(100lvh - var(--marketing-navbar-height, 5.0625rem));
  background-color: #1a2e35;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

/* Gradient overlay fills the band; photo covers edge to edge. */
.marketing-hero:not(.marketing-hero--photo-only) {
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center top;
  background-size: 100% 100%, cover;
}

.marketing-hero--light {
  background-color: #eef4f7;
}

/* About page ? panel sits in lower third; photo focal point keeps face visible. */
.marketing-hero--about {
  align-items: flex-end;
}

/* How it works ? photo-forward hero; copy on image with bottom gradient. */
.marketing-hero--how-it-works {
  align-items: flex-end;
}

.marketing-hero--how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 25, 47, 0.78) 0%,
    rgba(10, 25, 47, 0.42) 32%,
    rgba(10, 25, 47, 0.12) 58%,
    transparent 82%
  );
  pointer-events: none;
}

.marketing-hero__how-content {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  width: 100%;
  max-width: 42rem;
  padding-inline: 0.5rem;
  text-align: center;
}

.marketing-hero--how-it-works .marketing-hero__title {
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(10, 25, 47, 0.85),
    0 4px 20px rgba(10, 25, 47, 0.55);
}

.marketing-hero--how-it-works .marketing-hero__lead {
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 1px 2px rgba(10, 25, 47, 0.8),
    0 3px 14px rgba(10, 25, 47, 0.5);
}

.marketing-hero__how-cta {
  margin-top: 2rem;
  display: inline-flex;
  border-radius: 1.25rem;
  padding: 0.375rem;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(10, 25, 47, 0.22);
}

.marketing-hero--about:not(.marketing-hero--photo-only) {
  background-position: center 28%, center 28%;
}

@media (max-height: 720px) {
  .marketing-hero--about:not(.marketing-hero--photo-only) {
    background-position: center 22%, center 22%;
  }
}

.marketing-hero__panel {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  width: 100%;
  max-width: 48rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  text-align: center;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
  .marketing-hero__panel {
    padding: 2.5rem;
  }
}

.marketing-hero__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #069658;
}

.marketing-hero__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.875rem;
  line-height: 1.2;
  color: #1a2e35;
}

@media (min-width: 640px) {
  .marketing-hero__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .marketing-hero__title {
    font-size: 3rem;
  }
}

.marketing-hero__lead {
  margin-inline: auto;
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(26, 46, 53, 0.75);
}

@media (min-width: 640px) {
  .marketing-hero__lead {
    font-size: 1.125rem;
  }
}

.marketing-hero__meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(26, 46, 53, 0.6);
}

.marketing-hero-media {
  object-fit: cover;
  object-position: center top;
}

/* Homepage cinematic hero — fills the viewport below the fixed navbar. */
.marketing-hero-viewport {
  min-height: var(--marketing-hero-height, max(520px, calc(100lvh - 5.0625rem)));
}

/*
 * Phone: lock the hero box to a fixed height so object-cover cannot re-crop
 * when the browser chrome toggles (the "zoom while scrolling" effect).
 * Maple's hero-minimal-image uses a fixed min-height for the same reason.
 */
@media (max-width: 768px) {
  .marketing-hero-viewport {
    height: var(--marketing-hero-height);
    min-height: var(--marketing-hero-height);
    max-height: var(--marketing-hero-height);
  }
}

/* Homepage hero copy ? legibility over video without changing the media. */
.marketing-hero-copy::before {
  content: '';
  position: absolute;
  inset: -1.75rem -1.25rem;
  z-index: -1;
  border-radius: 1rem;
  background: radial-gradient(
    ellipse at center,
    rgba(26, 46, 53, 0.78) 0%,
    rgba(26, 46, 53, 0.52) 52%,
    rgba(26, 46, 53, 0) 100%
  );
  pointer-events: none;
}

.marketing-hero-copy,
.marketing-hero-copy h1,
.marketing-hero-copy p {
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(26, 46, 53, 0.9),
    0 4px 18px rgba(26, 46, 53, 0.65);
}
