:root {
  --blue-hero: #1e347a;
  --blue-hero-deep: #192f74;
  --blue-news: #13296f;
  --blue-news-soft: #284895;
  --blue-weather: #142c78;
  --white: #ffffff;
  --ice-blue: #82aef2;
  --shadow: rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--blue-hero);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--white);
  background: var(--blue-hero);
  font-family: Montserrat, Avenir Next, Arial Black, Arial, Helvetica, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  -webkit-tap-highlight-color: transparent;
}

.landing {
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--blue-hero);
}

.hero {
  position: relative;
  height: 86.4vw;
  min-height: 21.5rem;
  padding: max(14.4vw, env(safe-area-inset-top)) 7vw 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.035), transparent 48vw),
    linear-gradient(180deg, var(--blue-hero), var(--blue-hero-deep));
}

.hero__content {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  width: max-content;
  margin: 0 auto;
  color: var(--white);
  font-size: clamp(2.4rem, 8.9vw, 5.25rem);
  font-weight: 700;
  line-height: 0.93;
  /* letter-spacing: -0.035em; */
  text-align: left;
  text-transform: uppercase;
}

.hero__caret {
  width: 7vw;
  min-width: 1.2rem;
  max-width: 2.9rem;
  margin: 4vw auto 3.5vw;
}

.hero p {
  max-width: 84vw;
  margin: 0 auto;
  color: var(--ice-blue);
  font-size: clamp(1.45rem, 5.45vw, 3.15rem);
  font-weight: 600;
  line-height: 1.27;
  /* letter-spacing: 0.035em; */
  text-wrap: balance;
}

.app-section {
  position: relative;
  height: 68.7vw;
  min-height: 17.2rem;
  padding: 6.4vw 6.7vw 0;
}

.app-section--news {
  background: linear-gradient(180deg, var(--blue-news-soft) 0%, var(--blue-news) 1px, var(--blue-news) 100%);
}

.app-section--weather {
  background: linear-gradient(180deg, #173783 0%, var(--blue-weather) 1px, var(--blue-weather) 100%);
}

.app-card {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.app-icon {
  width: 25.8vw;
  height: 25.8vw;
  min-width: 6.9rem;
  min-height: 6.9rem;
  max-width: 15rem;
  max-height: 15rem;
  object-fit: cover;
  border: 0.12rem solid rgba(255, 255, 255, 0.86);
  border-radius: 6vw;
  box-shadow: 0 0.65rem 1.55rem var(--shadow);
}

.app-card h2 {
  margin: 4.2vw 0 7.1vw;
  font-size: clamp(1.95rem, 5.85vw, 3.45rem);
  font-weight: 600;
  line-height: 1;
  /* letter-spacing: 0.045em; */
}

.app-card h2 a,
.app-card h2 a:visited {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.13em;
}

.store-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7.8vw;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 0.55rem;
  transform: translateZ(0);
  transition: transform 160ms ease, filter 160ms ease;
}

.store-link:active {
  transform: scale(0.97);
  filter: brightness(0.94);
}

.store-link:focus-visible {
  outline: 0.18rem solid var(--white);
  outline-offset: 0.25rem;
}

.store-link img {
  width: auto;
  height: 10vw;
  min-height: 2.4rem;
  max-height: 5.6rem;
  object-fit: contain;
}

html[data-platform="ios"] .store-link[data-store="android"],
html[data-platform="android"] .store-link[data-store="ios"] {
  display: none;
}

html[data-platform="ios"] .store-row,
html[data-platform="android"] .store-row {
  gap: 0;
}

html[data-platform="ios"] .store-link img,
html[data-platform="android"] .store-link img {
  height: 13.2vw;
  min-height: 3.1rem;
  max-height: 6.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .store-link {
    transition: none;
  }
}

/* Keep the landing page readable and balanced on phone-sized viewports. */
@media (max-width: 767px) {
  .landing {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding-top: clamp(3rem, 5svh, 3.5rem);
    padding-bottom: 0.8rem;
  }

  .hero__content > img:first-child {
    display: block;
    width: clamp(15rem, 67vw, 17rem) !important;
    margin: 0 auto;
  }

  .hero__caret {
    width: 1.35rem;
    min-width: 0;
    margin: -8px auto 18px;
  }

  .hero p {
    max-width: 21.5rem;
    font-size: 1.5rem;
    line-height: 1.24;
  }

  .app-section {
    display: flex;
    height: auto;
    min-height: 0;
    padding-top: clamp(1.15rem, 2.6svh, 1.65rem);
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    flex-direction: column;
    flex: 1 0 auto;
  }

  .app-card {
    height: auto;
    flex: 0 1 auto;
    justify-content: flex-start;
  }

  .app-icon {
    width: clamp(7.5rem, 30vw, 9rem);
    height: clamp(7.5rem, 30vw, 9rem);
    min-width: 0;
    min-height: 0;
    border-radius: 1.35rem;
  }

  .app-card h2 {
    max-width: 18rem;
    margin: 0.9rem 0 0;
    font-size: 2rem;
    line-height: 0.98;
  }

  .app-card h2 a:focus-visible {
    outline: 0.18rem solid var(--white);
    outline-offset: 0.25rem;
  }
}

@media (max-width: 767px) and (max-height: 45rem) {
  .hero {
    padding-top: 2.75rem;
    padding-bottom: 0.65rem;
  }

  .hero__content > img:first-child {
    width: 12.75rem !important;
  }

  .hero__caret {
    margin: 1.45rem auto 0.85rem;
  }

  .hero p {
    max-width: 20rem;
    font-size: 1.32rem;
  }

  .app-section {
    padding-top: 1rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .app-icon {
    width: 6.8rem;
    height: 6.8rem;
  }

  .app-card h2 {
    max-width: 16rem;
    margin-top: 0.9rem;
    font-size: 1.85rem;
  }
}
