/* Savings-led hero for the product-only homepage preview. */
.hero-cafe.hero-products {
  background: radial-gradient(ellipse at 83% 22%, #20382d, transparent 53%), var(--ink);
}
.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.22fr);
  grid-template-areas: "intro preview" "rates preview" "cta preview" "actions preview";
  gap: 18px clamp(26px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(46px, 5.3vw, 86px) 42px;
}
.hero-products .hero-copy {
  width: auto;
  max-width: none;
}
.product-hero-intro {
  grid-area: intro;
  container-type: inline-size;
}
.hero-products .product-hero-intro .hero-description {
  max-width: none;
  font-size: clamp(9px, 3.12cqw, 15px);
  letter-spacing: -.014em;
}
.product-hero-cta { grid-area: cta; }
.product-hero-actions { grid-area: actions; }
.hero-products .hero-actions { margin-top: 0; }
.site-footer .app-store-link {
  display: inline-flex;
  border-radius: 8px;
}
.site-footer .footer-top {
  margin-bottom: 24px;
}
.footer-app-download {
  display: flex;
  margin-top: 16px;
}
@media (max-width: 680px) {
  .footer-app-download {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}
.site-footer .app-store-link:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.site-footer .app-store-link img {
  display: block;
  width: 132px;
  height: auto;
}
.product-hero-rates {
  grid-area: rates;
  position: relative;
  z-index: 2;
  width: min(94%, 480px);
  min-width: 0;
  border: 1px solid #a6cb775c;
  border-radius: 18px;
  padding: clamp(11px, 1.05vw, 15px) clamp(12px, 1.25vw, 18px);
  background: linear-gradient(130deg, #223e30, #102522 78%);
  box-shadow: 0 18px 42px #030c0d4f;
}
.hero-products .product-hero-rates .home-morpho-rates {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  padding: 0;
}
.product-hero-rates .morpho-rate-grid { gap: clamp(14px, 1.5vw, 20px); }
.product-hero-rates .morpho-rate-trailing { padding-left: clamp(14px, 1.5vw, 20px); }
.hero-products .product-hero-rates .morpho-rate-grid > div { min-width: 0; }
.hero-products .product-hero-rates .morpho-rate-grid strong {
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.05;
}
.hero-products .product-hero-rates .morpho-rate-grid strong small { font-size: .48em; }
.product-hero-preview .hero-hi-offer {
  position: relative;
  inset: auto;
  z-index: 2;
  width: min(380px, calc(100% - 28px));
  margin: -24px 14px 0 auto;
}

@media (max-width: 980px) {
  .product-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "cta" "preview" "rates" "actions";
    gap: 20px;
    max-width: 660px;
    padding-block: 34px;
  }
  .hero-products .hero-copy .hero-canadian-badge { position: static; }
}
@media (max-width: 430px) {
  .product-hero-grid { padding-block: 26px; gap: 17px; }
}

/* The app preview is aligned to the display in the photographed phone. */
.product-hero-preview {
  grid-area: preview;
  align-self: start;
  min-width: 0;
  margin: 0;
}
.cafe-phone-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 92%, transparent);
}
.cafe-phone-photo { display: block; width: 100%; height: auto; }
.cafe-phone-screen {
  position: absolute;
  left: 40.56%;
  top: 24.2%;
  width: 16.79%;
  height: 53.52%;
  object-fit: fill;
}
.cafe-phone-brand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--lime);
  pointer-events: none;
}
.cafe-phone-brand text {
  fill: #eff8ed;
  font-family: inherit;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1.7px;
}
@media (min-width: 981px) {
  .product-hero-preview {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(65%, 1320px);
    height: 100%;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
  }
  .product-hero-preview::before {
    content: "";
    position: absolute;
    inset: -22px 0;
    background: linear-gradient(0deg, #0b1b1c95, transparent 24%, transparent 79%, #0b1b1ca8),
      url("assets/vildx-cafe-prime-phone.jpg") right center / cover;
    filter: blur(22px) brightness(.57);
    opacity: .76;
    mask-image: linear-gradient(to right, transparent, #000 25%);
    pointer-events: none;
  }
  .cafe-phone-scene {
    width: min(100%, 1100px);
    justify-self: end;
    border-radius: 0;
    mask-image: linear-gradient(to right, transparent, #000 12%),
      linear-gradient(to bottom, transparent, #000 12%, #000 87%, transparent);
    mask-composite: intersect;
  }
  .product-hero-preview .hero-hi-offer {
    margin-top: -46px;
    margin-right: clamp(16px, 3.5vw, 52px);
  }
}
@media (max-width: 680px) {
  .product-hero-grid {
    grid-template-areas: "preview" "intro" "rates" "cta" "actions";
    padding-top: 0;
  }
  .product-hero-preview {
    width: 100vw;
    justify-self: center;
  }
  .cafe-phone-scene {
    border-radius: 0;
    mask-image: linear-gradient(to bottom, #000 91%, transparent);
  }
  .product-hero-preview .hero-hi-offer { margin-top: -30px; }
}
