/* ============ Home page ============ */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 96px);
  background:
    radial-gradient(52rem 30rem at 88% -12%, var(--c-primary-tint) 0%, transparent 60%),
    radial-gradient(40rem 26rem at -14% 108%, var(--c-primary-tint) 0%, transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-title {
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0.4em 0 0.45em;
}

.hero-copy .lead {
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--c-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust svg {
  color: var(--c-primary);
  flex: none;
}

/* ---------- Hero phone mockup ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  inset: 8% 4%;
  background: var(--grad-brand);
  opacity: 0.14;
  border-radius: 44% 56% 58% 42% / 48% 42% 58% 52%;
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(280px, 78vw);
  border-radius: 38px;
  padding: 12px;
  background: var(--c-navy);
  box-shadow: var(--shadow-lift);
}

.phone-screen {
  border-radius: 28px;
  background: var(--c-bg);
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 430px;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-heading);
}

.phone-top img {
  border-radius: 7px;
  background: #fff;
}

.phone-top svg {
  margin-left: auto;
  color: var(--c-muted);
}

.phone-app-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.phone-greeting {
  margin: 2px 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-heading);
}

.phone-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.phone-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
}

.phone-chip.is-on {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-primary-contrast);
}

.phone-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}

.phone-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
}

.phone-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-card-body strong {
  font-size: 0.86rem;
  color: var(--c-heading);
}

.phone-card-body span {
  font-size: 0.72rem;
  color: var(--c-muted);
}

.phone-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.phone-bubble-them {
  align-self: flex-start;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  border-bottom-left-radius: 4px;
}

.phone-bubble-me {
  align-self: flex-end;
  background: var(--c-primary);
  color: var(--c-primary-contrast);
  border-bottom-right-radius: 4px;
}

.phone-nav {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-around;
}

.phone-nav span {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: var(--c-border);
}

.phone-nav span.is-on {
  background: var(--c-primary);
}

/* ---------- Occasion cards ---------- */

.occasion-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}

/* All five occasions on one row once there is room. */
@media (min-width: 1080px) {
  .occasion-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
}

.occasion-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}

.occasion-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.occasion-body {
  padding: 14px 16px 16px;
}

.occasion-body h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.occasion-body p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .occasion-card img {
    transition: transform 0.45s ease;
  }

  .occasion-card:hover img {
    transform: scale(1.045);
  }
}

/* ---------- Two apps, one platform ---------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.platform-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-card h3 svg {
  color: var(--c-primary);
  flex: none;
}

.platform-card > p {
  color: var(--c-muted);
}

.platform-card .btn {
  margin-top: 18px;
  align-self: flex-start;
}

.check-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background:
    var(--c-primary-tint)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23018587" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m6 12.5 4 4 8-9"/></svg>')
    center / 11px no-repeat;
}

/* ---------- Stats band ---------- */

.stats-band {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    order: 2;
  }
}

@media (max-width: 480px) {
  .phone-screen {
    min-height: 400px;
  }

  .occasion-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .occasion-body {
    padding: 10px 12px 12px;
  }

  .occasion-body p {
    display: none;
  }
}
