/* Promotional landing — wider layout, reuses Civic Blueprint tokens from style.css */

body.is-landing {
  background: var(--pe-background);
}

.landing {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 0 3rem;
}

/* Full-bleed hero */
.landing-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(24rem, 72vh, 36rem);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.landing-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.landing-hero__scrim {
  position: absolute;
  inset: 0;
  /* Darker behind centered hero copy */
  background: linear-gradient(
    180deg,
    rgba(8, 18, 38, 0.42) 0%,
    rgba(8, 18, 38, 0.78) 48%,
    rgba(8, 18, 38, 0.9) 100%
  );
}

.landing-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  box-sizing: border-box;
  padding: clamp(2rem, 4.5vw, 3.25rem) 1.25rem;
  text-align: center;
}

/* Hero copy + device mock (phone column desktop only) */
.landing-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.landing-hero__inner {
  width: min(100%, 40rem);
  margin: 0 auto;
}

.landing-hero__phone {
  display: none;
  line-height: 0;
}

.landing-hero__phone img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.38));
}

.landing-hero__inner h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.landing-hero__inner .lead {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 1.75rem;
  max-width: 34rem;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

/* Official Google Play badge (unmodified asset; min height per Google guidelines) */
.landing-play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.landing-hero .landing-play-badge {
  display: block;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
}

.landing-play-badge:hover {
  opacity: 0.92;
}

.landing-play-badge:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.landing-play-badge img {
  display: block;
  height: clamp(72px, 12vw, 96px);
  width: auto;
  max-width: min(100%, 26rem);
}

.landing-hero .landing-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}

.landing-hero .landing-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--pe-on-primary);
  color: var(--pe-primary-container);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-cta:hover {
  background: var(--pe-primary-fixed);
  color: var(--pe-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.landing-cta.is-muted {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.landing-cta.is-muted:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

@media (min-width: 900px) {
  .landing-hero__image {
    object-position: center center;
  }

  .landing-hero__scrim {
    background: linear-gradient(
      90deg,
      rgba(8, 18, 38, 0.92) 0%,
      rgba(8, 18, 38, 0.78) 42%,
      rgba(8, 18, 38, 0.35) 68%,
      rgba(8, 18, 38, 0.12) 100%
    );
  }

  .landing-hero__content {
    align-self: stretch;
    align-items: stretch;
    min-height: clamp(24rem, 72vh, 36rem);
    padding-top: clamp(2rem, 4vw, 2.75rem);
    padding-bottom: clamp(2rem, 4vw, 2.75rem);
    text-align: start;
  }

  .landing-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 17.5rem);
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
    flex: 1;
    min-height: 100%;
  }

  .landing-hero__inner {
    max-width: none;
    margin: 0;
    align-self: center;
  }

  .landing-hero__inner .lead {
    margin-left: 0;
    margin-right: 0;
  }

  .landing-hero .landing-pill-row,
  .landing-hero__actions {
    justify-content: flex-start;
  }

  .landing-hero .landing-play-badge {
    margin: 0;
  }

  .landing-hero__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 100%;
    max-width: 17.5rem;
    height: 100%;
  }

  .landing-hero__phone img {
    width: auto;
    max-width: 100%;
    max-height: min(64vh, 32rem);
    height: auto;
    margin: 0 auto;
  }
}

html[dir="rtl"] .landing-hero__scrim {
  background: linear-gradient(
    180deg,
    rgba(8, 18, 38, 0.42) 0%,
    rgba(8, 18, 38, 0.78) 48%,
    rgba(8, 18, 38, 0.9) 100%
  );
}

@media (min-width: 900px) {
  html[dir="rtl"] .landing-hero__scrim {
    background: linear-gradient(
      -90deg,
      rgba(8, 18, 38, 0.92) 0%,
      rgba(8, 18, 38, 0.78) 42%,
      rgba(8, 18, 38, 0.35) 68%,
      rgba(8, 18, 38, 0.12) 100%
    );
  }

  html[dir="rtl"] .landing-hero__layout {
    grid-template-columns: minmax(12rem, 17.5rem) minmax(0, 1fr);
  }
}

.landing-section {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--pe-outline-variant);
}

.landing-hero + .landing-section {
  border-top: none;
}

.landing-section h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pe-hero-dark);
  margin: 0 0 0.5rem;
  text-align: center;
}

.landing-section .section-lead {
  text-align: center;
  color: var(--pe-on-surface-variant);
  font-size: 16px;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.landing-features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .landing-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .landing-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.landing-feature {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--pe-outline-variant);
  background: var(--pe-surface-low);
}

.landing-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 18px;
  color: var(--pe-primary);
}

.landing-feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pe-on-surface-variant);
}

/* Play badge below feature cards */
.landing-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.landing-section-cta .landing-play-badge {
  margin: 0;
}

.landing-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 900px) {
  .landing-screenshots {
    grid-template-columns: repeat(4, 1fr);
  }
}

.landing-screenshots figure {
  margin: 0;
}

/* Device PNGs already have rounded frames + alpha; avoid extra radius (white wedges). */
.landing-screenshots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 20px rgba(11, 19, 38, 0.1));
}

.landing-screenshots figcaption {
  margin-top: 0.5rem;
  font-size: 13px;
  color: var(--pe-on-surface-variant);
  text-align: center;
}

.landing-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--pe-surface-container);
  border: 1px solid var(--pe-primary-fixed);
  font-size: 14px;
  line-height: 1.5;
  color: var(--pe-on-surface-variant);
}

.landing-closing {
  margin-top: 1.5rem;
  text-align: center;
}

.landing-closing .landing-legal-link,
.landing-closing .landing-play-attribution,
.landing-closing .landing-contact {
  margin: 0;
  text-align: center;
}

.landing-closing .landing-play-attribution {
  margin-top: 1rem;
}

.landing-closing .landing-contact {
  margin-top: 0.75rem;
}

.landing-legal-link {
  font-size: 15px;
}

.landing-play-attribution {
  font-size: 12px;
  line-height: 1.45;
  color: var(--pe-on-surface-variant);
}

.landing-contact {
  font-size: 15px;
  color: var(--pe-on-surface-variant);
}
