.home {
  --home-sky: #e8f5ff;
  --home-cream: #fff8ee;
  --home-blue: #1d74f5;
  --home-navy: #12305f;
  --home-soft: #5b6f8c;
  --home-green: #2f9e5f;
  --home-card: #ffffff;
  background: var(--home-cream);
  color: var(--home-navy);
}

.home a {
  color: var(--home-blue);
}

.home a:focus-visible,
.home .cta:focus-visible {
  outline-color: var(--home-blue);
}

.home .brand {
  color: var(--home-navy);
}

.home h1,
.home h2,
.home h3 {
  color: var(--home-navy);
}

.home .eyebrow {
  color: var(--home-blue);
}

.home-hero,
.home-section,
.home-final {
  scroll-margin-top: 4.75rem;
}

.home-hero {
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(ellipse at 82% 18%, #cfeeff 0 22%, transparent 48%),
    radial-gradient(ellipse at 12% 88%, #ffe9c8 0 16%, transparent 42%),
    linear-gradient(180deg, #f4fbff 0%, #fff8ee 78%);
}

.home-hero__grid,
.home-final__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}

.home-app__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}

.home-hero h1 {
  max-width: 12ch;
  margin-bottom: 0.6rem;
  font-size: clamp(2.05rem, 8vw, 4.6rem);
}

.home-hero__sub {
  margin: 0 0 1rem;
  color: var(--home-navy);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 750;
}

.home-hero__lead,
.home-section__intro p,
.home-final p:not(.store-badge) {
  color: var(--home-soft);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

.home .cta {
  color: #ffffff;
}

.store-badge {
  display: inline-block;
  max-width: 100%;
  margin: 0.15rem 0 0;
}

.store-badge img {
  display: block;
  width: min(100%, 13.25rem);
  height: auto;
}

.home-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--home-green);
  font-size: 0.95rem;
  font-weight: 750;
}

.home-hero__points li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.home-hero__points img {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.home-hero__art,
.home-final__art,
.home-step__art {
  position: relative;
  display: grid;
  place-items: center;
}

.home-hero__art img,
.home-step__art img {
  width: min(100%, 22rem);
  height: auto;
}

@keyframes cooper-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.4rem);
  }
}

@media (min-width: 48rem) {
  .js .home-hero__art.is-in img {
    animation: cooper-float 5.8s ease-in-out 0.8s infinite;
  }
}

.home-final__art img {
  width: min(100%, 22.5rem);
  height: auto;
  object-fit: contain;
}

.home-section {
  padding: clamp(3.4rem, 7vw, 6rem) 0;
}

.home-section__intro {
  max-width: 38rem;
  margin-bottom: 2.4rem;
}

.home-section__intro--center {
  margin-inline: auto;
  text-align: center;
}

.home-how {
  background: var(--home-cream);
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-step {
  min-width: 0;
  text-align: center;
}

.home-step__art {
  min-height: 0;
}

.home-step__art > picture:first-child img {
  width: min(100%, 13.5rem);
}

.home-step__number {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0.75rem auto 0.45rem;
  border-radius: 50%;
  background: var(--home-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.home-app {
  background: linear-gradient(180deg, #eef7ff 0%, #fffaf3 100%);
}

.phone-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.85rem;
  min-width: 0;
}

.phone-frame {
  margin: 0;
  min-width: 0;
  padding: 0.42rem;
  border-radius: 1.85rem;
  background: #1c2330;
  box-shadow: 0 12px 28px rgba(18, 48, 95, 0.1);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 1.45rem;
}

.phone-frame figcaption {
  margin: 0.45rem 0 0.1rem;
  color: var(--home-navy);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.phone-frame--primary {
  width: min(100%, 15.5rem);
  z-index: 2;
}

.phone-frame--secondary {
  width: min(42%, 11.25rem);
  margin-bottom: 1.4rem;
}

.home-progress {
  background: var(--home-cream);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge-grid figure {
  margin: 0;
  padding: 0.85rem 0.6rem 1rem;
  border-radius: 1.35rem;
  background: #fff;
  text-align: center;
}

.badge-grid img {
  width: min(100%, 11.5rem);
  height: auto;
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform 180ms ease;
}

.badge-grid figure:hover img {
  transform: translateY(-4px);
}

.badge-grid figcaption {
  margin-top: 0.55rem;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  font-weight: 800;
}

.home-trust {
  background: linear-gradient(180deg, #fffaf3 0%, #eef7ff 100%);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-grid li {
  padding: 1.35rem 1.2rem 1.4rem;
  border-radius: 1.35rem;
  background: #fff;
  text-align: center;
}

.trust-grid img {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.7rem;
}

.trust-grid h3 {
  margin-bottom: 0.4rem;
}

.home-final {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at 16% 88%, #dbeec8 0 20%, transparent 48%),
    radial-gradient(ellipse at 88% 12%, #d7f0ff 0 18%, transparent 46%),
    linear-gradient(180deg, #eef7ff 0%, #fff8ee 74%);
}

.home-final__copy h2 {
  max-width: 12ch;
}

.home-footer {
  background: #fff;
}

@media (max-width: 64rem) {
  .home-app__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 52rem) {
  .home-hero__grid,
  .home-final__grid,
  .home-app__grid,
  .home-steps,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .home-hero__grid {
    justify-items: stretch;
    gap: 1rem;
    text-align: left;
  }

  .home-hero h1,
  .home-hero__sub {
    max-width: none;
  }

  .home-hero {
    padding: 1.15rem 0 1.4rem;
  }

  .home-hero__sub {
    margin-bottom: 0.55rem;
  }

  .home-hero__lead {
    margin-bottom: 0.9rem;
  }

  .home-hero__points {
    margin-top: 0.95rem;
    gap: 0.45rem 0.9rem;
  }

  .home-hero__art img {
    width: min(100%, 13.5rem);
  }

  .home-steps {
    gap: 0.85rem;
  }

  .home-step {
    display: grid;
    grid-template-columns: 5.1rem minmax(0, 1fr);
    column-gap: 0.85rem;
    row-gap: 0.12rem;
    max-width: none;
    text-align: left;
    align-items: start;
  }

  .home-step__art {
    grid-row: 1 / 5;
    align-self: center;
  }

  .home-step__art > picture:first-child img {
    width: min(100%, 5.1rem);
  }

  .home-step__number {
    width: 1.45rem;
    height: 1.45rem;
    margin: 0.1rem 0 0;
    font-size: 0.78rem;
  }

  .home-step h3 {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
  }

  .home-step p {
    margin: 0;
  }

  .home-section__intro {
    margin-bottom: 1.1rem;
  }

  .home-section {
    padding: 1.85rem 0;
  }

  .phone-stage {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }

  .phone-frame--primary {
    width: min(100%, 13.5rem);
  }

  .phone-frame--secondary {
    width: min(100%, 9.25rem);
    margin-bottom: 0;
  }

  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.55rem;
  }

  .badge-grid img {
    width: min(100%, 7.5rem);
  }

  .badge-grid figcaption {
    margin-top: 0.35rem;
  }

  .trust-grid {
    gap: 0.7rem;
  }

  .trust-grid li {
    padding: 0.95rem 1rem;
  }

  .trust-grid h3 {
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
  }

  .trust-grid p {
    margin: 0;
  }

  .home-final {
    padding: 1.7rem 0 1.9rem;
  }

  .home-final__grid {
    gap: 0.55rem;
    text-align: center;
  }

  .home-final__copy h2 {
    max-width: none;
    margin-inline: auto;
  }

  .home-final__art {
    padding: 0.15rem 0.4rem 0;
  }

  .home-final__art img {
    width: min(100%, 12.25rem);
  }
}

@media (max-width: 27.5rem) {
  .phone-frame--primary {
    width: min(100%, 12.5rem);
  }

  .phone-frame--secondary {
    width: min(100%, 8.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-header {
    backdrop-filter: none;
  }

  .cta:hover,
  .badge-grid figure:hover img,
  .js .home-hero__art.is-in img {
    transform: none;
    animation: none;
  }
}
