/* Homepage composition based on Endtek's updated desktop/mobile direction. */
@media (min-width: 701px) {
  .navbar { min-height: 64px; }
  .brand { width: 166px; }
  .nav-links { gap: 36px; font-size: 14px; }
  .contact-button { min-height: 40px; min-width: 104px; padding: 8px 18px; }
}

.hero {
  min-height: 404px;
  position: relative;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(250,253,255,.84) 38%, rgba(234,246,255,.44) 72%, rgba(223,241,254,.30) 100%),
    url("../img/footer/footer.png") center 55% / cover no-repeat;
}

.hero-grid {
  min-height: 404px;
  grid-template-columns: minmax(0, 1.24fr) minmax(230px, .54fr) minmax(190px, .44fr);
  column-gap: 24px;
}

.hero h1 {
  max-width: 570px;
  font-size: clamp(45px, 4.5vw, 58px);
  line-height: 1.02;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin: 17px 0 20px;
  font-size: 15px;
  line-height: 1.42;
}

.hero-phone { height: 404px; align-items: flex-start; }
.hero-phone img { width: min(100%, 275px); transform: translateY(16px) rotate(1.5deg); }

.hero-note {
  align-self: start;
  margin-top: 86px;
  color: #173552;
  font: 23px/1.18 "Segoe Print", "Comic Sans MS", cursive;
  transform: rotate(-7deg);
  text-align: center;
}

.hero-note::after {
  content: "";
  display: block;
  width: 90px;
  height: 28px;
  margin: -2px auto 0;
  border-top: 3px solid var(--blue);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.feature-strip { min-height: 96px; }
.feature { min-height: 70px; padding-inline: 18px; }
.feature img { width: 28px; height: 28px; margin-bottom: 2px; }
.feature h2 { font-size: 13px; }
.feature p { font-size: 11.5px; }

.apps-section { padding: 24px 0 28px; }
.apps-heading { margin-bottom: 15px; }
.apps-heading h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 2px; }
.apps-heading p:not(.eyebrow) { font-size: 14px; }

.apps-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.app-card {
  min-width: 0;
  min-height: 195px;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid rgba(226,236,244,.7);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(14,36,58,.055);
}
.app-icon { width: 61px; height: 61px; flex: none; border-radius: 13px; }
.app-card h3 { margin: 9px 0 3px; font-size: 15px; line-height: 1.05; overflow-wrap: anywhere; }
.app-subtitle { display: block; margin-top: 2px; font-size: .78em; line-height: 1.08; font-weight: 700; }
.app-card p { font-size: 11.5px; line-height: 1.32; }
.learn-more { margin-top: auto; padding-top: 6px; font-size: 12px; }

.future-section { min-height: 185px; }
.future-grid { grid-template-columns: minmax(0, 1fr) 365px; gap: 38px; padding-block: 20px; }
.future-copy .eyebrow { margin-bottom: 5px; font-size: 10px; }
.future-copy h2 { margin-bottom: 5px; font-size: clamp(25px, 2.7vw, 31px); }
.future-copy p:not(.eyebrow) { margin-bottom: 10px; font-size: 13px; line-height: 1.35; }
.future-copy .button { min-height: 38px; padding: 7px 18px; font-size: 13px; }
.future-points {
  min-height: 105px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 20px;
  padding-left: 28px;
}
.future-point { grid-template-columns: 23px 1fr; gap: 9px; font-size: 10px; }
.future-point img { width: 21px; height: 21px; }
.future-note {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  color: white;
  font: 20px/1.05 "Segoe Print", "Comic Sans MS", cursive;
  transform: rotate(-9deg);
  text-align: center;
}
.future-note::after { content:""; display:block; width:74px; height:18px; margin:4px auto 0; border-top:2px solid #43a7ff; border-radius:50%; }

.footer-main { min-height: 66px; grid-template-columns: 160px 1fr auto; }
.footer-logo { width: 135px; }
.footer-links { font-size: 11px; }
.footer-email { font-size: 11px; }
.footer-bottom { min-height: 32px; font-size: 10px; }

@media (max-width: 1120px) and (min-width: 701px) {
  .hero-grid {
    position: relative;
    grid-template-columns: minmax(330px, 1fr) 285px;
    column-gap: 22px;
  }
  .hero h1 { font-size: clamp(43px, 6.2vw, 52px); }
  .hero-phone img { width: 245px; }
  .hero-note {
    position: absolute;
    z-index: 2;
    top: 78px;
    right: 0;
    width: 150px;
    margin: 0;
    font-size: 17px;
  }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .app-card,
  .app-card:nth-child(n+4) { min-height: 170px; }
  .app-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 66px; }
  .navbar { min-height: 66px; }
  .brand { width: 145px; }
  .menu-toggle { width: 42px; height: 42px; }

  .hero { min-height: 500px; background-position: 58% 55%; }
  .hero-grid { min-height: 500px; grid-template-columns: 1fr; padding-top: 38px; position: relative; }
  .hero-copy { width: 100%; max-width: none; }
  .hero h1 { font-size: clamp(37px, 11.2vw, 45px); line-height: 1; }
  .hero-copy > p:not(.eyebrow) { margin: 15px 0 18px; font-size: 14px; line-height: 1.35; }
  .hero-copy .button { min-height: 42px; padding: 8px 18px; font-size: 13px; }
  .hero-phone { height: 280px; margin-top: 4px; justify-content: flex-start; padding-left: 38px; }
  .hero-phone img { width: 190px; transform: translateY(12px) rotate(3deg); }
  .hero-note { position: absolute; right: 0; bottom: 90px; width: 135px; margin: 0; font-size: 16px; }
  .hero-note::after { width: 64px; height: 18px; border-width: 2px; }

  .feature-strip { min-height: 0; padding: 0; }
  .feature { min-height: 78px; padding: 8px 5px; }
  .feature img { width: 24px; height: 24px; }
  .feature h2 { font-size: 11px; }
  .feature p { font-size: 9.5px; line-height: 1.22; }

  .apps-section { padding: 28px 0 24px; }
  .apps-heading { gap: 13px; margin-bottom: 12px; }
  .apps-heading h2 { font-size: 27px; line-height: .98; max-width: 330px; }
  .apps-heading p:not(.eyebrow) { font-size: 12px; line-height: 1.35; }
  .apps-heading .button { min-height: 36px; padding: 6px 16px; font-size: 12px; }
  .apps-grid { grid-template-columns: 1fr; gap: 7px; }
  .app-card,
  .app-card:last-child {
    min-height: 72px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 34px;
    grid-template-rows: auto auto;
    column-gap: 10px;
    padding: 8px 10px;
    align-items: center;
  }
  .app-icon { width: 48px; height: 48px; grid-row: 1 / 3; border-radius: 10px; }
  .app-card h3 { margin: 0 0 2px; font-size: 12px; line-height: 1.05; }
  .app-subtitle { display: inline; margin: 0; font-size: 1em; }
  .app-card p { font-size: 9.5px; line-height: 1.2; }
  .learn-more { grid-column: 3; grid-row: 1 / 3; align-self: stretch; justify-content: center; padding: 0; font-size: 0; }
  .learn-more .arrow { margin: 0; font-size: 21px; }

  .future-section { min-height: 0; }
  .future-grid { grid-template-columns: 1fr; gap: 18px; padding-block: 34px 28px; }
  .future-copy h2 { font-size: 25px; }
  .future-copy p:not(.eyebrow) { font-size: 12px; }
  .future-points {
    min-height: auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 18px 0 0;
  }
  .future-point { grid-template-columns: 1fr; justify-items: center; gap: 4px; text-align: center; font-size: 8px; }
  .future-note { display: none; }

  .footer-main { min-height: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 20px 0 10px; }
  .footer-logo { width: 125px; }
  .footer-links { justify-content: center; gap: 15px; font-size: 10px; }
  .footer-email { min-height: 28px; font-size: 10px; }
  .footer-bottom { min-height: 0; align-items: center; text-align: center; gap: 4px; padding-bottom: 16px; font-size: 9px; }
}

@media (max-width: 390px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .hero { min-height: 485px; }
  .hero-grid { min-height: 485px; padding-top: 34px; }
  .hero-phone { height: 265px; }
  .hero-phone img { width: 178px; }
  .hero-note { right: -2px; bottom: 84px; }
}
