/* Shared alignment and page-specific corrections. */

.store-windows {
  background: #1686e8;
}

.store-windows img {
  filter: brightness(0) invert(1);
}

@media (min-width: 981px) {
  .header-inner,
  .home-page .header-inner {
    position: relative;
    width: min(calc(100% - 188px), 1348px);
    justify-content: flex-start;
    gap: 0;
  }

  .site-nav,
  .home-page .site-nav {
    position: absolute;
    left: 50%;
    width: auto;
    flex: none;
    justify-content: center;
    gap: 72px;
    transform: translateX(-50%);
  }

  .home-page .hero .button-row {
    gap: 16px;
  }

  .home-page .hero .store-button,
  .home-page .hero .store-android,
  .home-page .hero .store-windows {
    width: 220px;
    padding: 0 16px;
    gap: 12px;
    font-size: 22px;
    white-space: nowrap;
  }

  .home-page .feature-strip article,
  .home-page .home-safety article,
  .home-page .home-safety .safety-lead {
    overflow: visible;
  }

  .home-page .feature-strip {
    background: #f8f9fb;
  }

  .home-page .feature-strip article {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .home-page .feature-strip .feature-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
    width: 74px;
    height: 74px;
    transform: none;
    object-fit: contain;
  }

  .home-page .feature-strip h2 {
    grid-column: 2;
    grid-row: 1;
  }

  .home-page .feature-strip p {
    grid-column: 2;
    grid-row: 2;
  }

  .home-page .feature-strip .feature-arrow {
    display: none;
  }

  .home-page .home-safety .safety-lead > img:first-child {
    width: 64px;
    height: 64px;
    transform: none;
    object-fit: contain;
  }

  .home-page .home-safety .line-icon-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
  }

  .features-page .feature-tabs {
    width: 680px;
    height: 94px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .features-page .feature-tabs a {
    min-width: 0;
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1.2;
  }

  .features-page .feature-tabs img {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .features-page .page-hero > img {
    width: 466px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
  }

  .features-page .feature-panel,
  .features-page .panel-art {
    overflow: visible;
  }

  .features-page .panel-art {
    padding: 14px 8px;
  }

  .features-page .panel-art img {
    width: auto;
    max-width: 100%;
    max-height: 222px;
    object-fit: scale-down;
    object-position: center;
  }

  .features-page #city .panel-art-left img,
  .features-page #reward .panel-art-left img,
  .features-page #party .panel-art-right img {
    max-height: 210px;
    margin-top: 10px;
  }

  .download-contact-hero {
    min-height: 720px;
  }

  .download-contact-hero .download-copy {
    align-self: center;
  }
}

@media (min-width: 981px) and (max-width: 1400px) {
  .home-page .feature-strip-inner {
    padding-right: 28px;
    padding-left: 28px;
  }

  .home-page .feature-strip article {
    padding-right: 12px;
    padding-left: 12px;
    grid-template-columns: 74px minmax(0, 1fr);
    column-gap: 10px;
  }

  .home-page .feature-strip article:first-child {
    padding-left: 0;
  }

  .home-page .feature-strip article:last-child {
    padding-right: 0;
  }

  .home-page .feature-strip h2 {
    font-size: 20px;
  }

  .home-page .feature-strip p {
    font-size: 14px;
  }
}

/* Keep every feature-tab icon centered above its label at all breakpoints. */
.features-page .feature-tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.features-page .feature-tabs a img {
  display: block;
  position: static;
  margin: 0 auto;
  transform: none;
  object-fit: contain;
}

.download-company {
  margin: 18px 0 0;
  color: #273347 !important;
  font-size: 24px !important;
  font-weight: 800;
}

.contact-list {
  max-width: 520px;
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.contact-list a {
  min-height: 84px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.contact-list img {
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 13px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
  background: #ff6500;
}

.contact-list a:last-child img {
  width: 34px;
  height: 34px;
  margin: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.safety-page .safety-contact-copy a img {
  padding: 12px;
  border-radius: 50%;
  background: #ff6500;
}

.contact-list span,
.contact-list strong {
  display: block;
}

.contact-list span {
  color: #4f5a6b;
  font-size: 16px;
  line-height: 1.6;
}

.contact-list strong {
  color: #111827;
  font-size: 18px;
}

@media (min-width: 761px) and (max-width: 980px) {
  .header-inner {
    position: relative;
    justify-content: flex-start;
  }

  .site-nav {
    position: absolute;
    left: 50%;
    width: auto;
    flex: none;
    justify-content: center;
    gap: 46px;
    transform: translateX(-50%);
  }

  .features-page .feature-panel,
  .features-page .panel-art {
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .home-page .hero .button-row {
    gap: 12px;
    transform: none;
  }

  .home-page .hero .store-button,
  .home-page .hero .store-android,
  .home-page .hero .store-windows {
    width: 210px;
    flex: 0 0 210px;
    white-space: nowrap;
  }

  .features-page .feature-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
  }

  .features-page .feature-tabs a {
    min-width: 0;
    padding: 9px 3px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    line-height: 1.15;
  }

  .features-page .feature-tabs img {
    display: block;
    width: 27px;
    height: 27px;
  }

  .features-page .feature-panel,
  .features-page .panel-art {
    overflow: visible;
  }

  .features-page .panel-art {
    padding: 12px;
  }

  .features-page .panel-art img {
    max-height: 230px;
    object-fit: scale-down;
  }

  .download-contact-hero {
    padding-top: 52px;
  }

  .download-contact-hero > img {
    order: -1;
    max-height: 380px;
  }

  .contact-list {
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .home-page .hero .button-row {
    gap: 1.63vw;
  }

  .home-page .hero .store-button,
  .home-page .hero .store-android,
  .home-page .hero .store-windows {
    width: 31.5vw;
    flex-basis: 31.5vw;
    height: 8.44vw;
    padding: 0 1.2vw;
    gap: 1vw;
    font-size: 2.75vw;
  }

  .home-page .hero .store-button img {
    width: 4.8vw;
    height: 4.8vw;
  }

  .contact-list a {
    min-height: 72px;
  }
}

/* One shared footer and sticky-page structure across the whole site. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  width: 100%;
  flex: 1 0 auto;
}

.site-footer,
.home-page .site-footer,
.features-page .site-footer {
  width: 100%;
  min-height: 76px;
  height: auto;
  margin: 0;
  padding: 18px 32px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  color: #687181;
  background: #f8f9fb;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.site-footer > * {
  margin: 0;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  border-left: 1px solid #b9bec6;
  color: #687181;
  font-weight: 400;
  white-space: nowrap;
}

.site-footer > *:first-child {
  border-left: 0;
}

.site-footer img {
  width: 18px;
  height: 18px;
  margin: 0 5px 0 0;
  object-fit: contain;
}

.download-contact-page .download-contact-hero {
  min-height: calc(100vh - 154px);
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
}

.download-contact-page .download-copy h1 {
  margin-top: 0;
}

.download-contact-page .download-contact-hero > img {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 190px);
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  .site-footer,
  .home-page .site-footer,
  .features-page .site-footer {
    min-height: 112px;
    padding: 16px 12px;
  }

  .site-footer > * {
    margin: 4px 0;
    padding: 0 10px;
    white-space: normal;
  }

  .download-contact-page .download-contact-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .download-contact-page .download-contact-hero > img {
    width: min(100%, 320px);
    max-height: 400px;
  }
}
