/* ── Homepage entry hero ── */
.home-entry {
  position: relative;
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(2.75rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 90% 60% at 50% -12%, rgba(20, 184, 166, 0.18), transparent 58%),
    radial-gradient(ellipse 45% 35% at 88% 18%, rgba(45, 212, 191, 0.1), transparent 55%),
    linear-gradient(180deg, #ecfdf9 0%, #fff 52%);
  overflow: hidden;
}

.home-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 118, 110, 0.055) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  pointer-events: none;
}

.home-entry__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.home-entry__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  transform: translateZ(0);
}

.home-entry__orb--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 212, 191, 0.28);
}

.home-entry__orb--2 {
  width: 220px;
  height: 220px;
  right: -4%;
  top: 28%;
  background: rgba(13, 148, 136, 0.14);
}

.home-entry__inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
}

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
  .home-entry__brand,
  .home-entry__avatars,
  .home-entry__eyebrow,
  .home-entry__title,
  .home-entry__lead,
  .home-entry-search,
  .home-entry__chips-wrap,
  .home-entry-stores,
  .home-entry-trust {
    animation: home-entry-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .home-entry__avatars { animation-delay: 0.05s; }
  .home-entry__eyebrow { animation-delay: 0.1s; }
  .home-entry__title { animation-delay: 0.15s; }
  .home-entry__lead { animation-delay: 0.2s; }
  .home-entry-search { animation-delay: 0.28s; }
  .home-entry__chips-wrap { animation-delay: 0.36s; }
  .home-entry-stores { animation-delay: 0.44s; }
  .home-entry-trust { animation-delay: 0.5s; }
}

@keyframes home-entry-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brand */
.home-entry__brand {
  margin-bottom: 1.15rem;
}

.home-entry__brand-link {
  display: inline-flex;
  justify-content: center;
  transition: transform 0.25s ease;
}

.home-entry__brand-link:hover {
  transform: scale(1.03);
}

.home-entry__logo {
  height: auto;
  width: auto;
  max-height: 58px;
  filter: drop-shadow(0 6px 18px rgba(15, 118, 110, 0.12));
}

/* Avatars */
.home-entry__avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.4rem;
  width: max-content;
}

.home-entry__avatar {
  --shift: calc(var(--i, 0) * 2px);
  display: block;
  width: 48px;
  height: 48px;
  margin-left: -12px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(20, 184, 166, 0.08);
  overflow: hidden;
  background: #fff;
  transform: translateY(var(--shift));
  transition: transform 0.22s ease, z-index 0s;
  position: relative;
  z-index: calc(10 - var(--i, 0));
}

.home-entry__avatar:first-child {
  margin-left: 0;
}

.home-entry__avatar:hover {
  transform: translateY(calc(var(--shift) - 4px)) scale(1.08);
  z-index: 20;
}

.home-entry__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-entry__avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-800);
  background: linear-gradient(145deg, var(--teal-100), #fff);
}

.home-entry__avatar--more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal-800);
  background: linear-gradient(145deg, var(--teal-50), #fff);
}

/* Copy */
.home-entry__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.05rem;
  padding: 0.38rem 0.95rem 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 184, 166, 0.2);
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--teal-800);
  box-shadow: 0 2px 12px rgba(15, 118, 110, 0.09);
  backdrop-filter: blur(8px);
}

.home-entry__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  animation: home-entry-pulse 2.2s ease infinite;
}

@keyframes home-entry-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.home-entry__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 5.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--slate-900);
  text-wrap: balance;
}

.home-entry__title em {
  font-style: italic;
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-color: rgba(20, 184, 166, 0.35);
  text-underline-offset: 0.12em;
  text-decoration-thickness: 2px;
}

.home-entry__lead {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2.3vw, 1.1rem);
  line-height: 1.68;
  color: var(--slate-600);
  text-wrap: pretty;
}

/* Search card */
.home-entry-search {
  margin-bottom: 1.5rem;
  text-align: left;
}

.home-entry-search__box {
  position: relative;
  padding: 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 48px rgba(15, 118, 110, 0.11);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home-entry-search__box:focus-within {
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 56px rgba(15, 118, 110, 0.16),
    0 0 0 1px rgba(20, 184, 166, 0.2);
  transform: translateY(-2px);
}

.home-entry-search__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 15px;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-entry-search__box:focus-within .home-entry-search__bar {
  border-color: var(--teal-400);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.08);
  background: #fff;
}

.home-entry-search__bar > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--teal-600);
}

.home-entry-search__bar input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.96rem;
  color: var(--slate-800);
  outline: none;
}

.home-entry-search__bar input::placeholder {
  color: var(--slate-400);
}

.home-entry-search__bar .btn {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  min-width: 4.5rem;
}

.home-entry-search__location {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(15, 118, 110, 0.16);
}

.home-entry-loc__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.home-entry-loc__label {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--slate-500);
}

.home-entry-select {
  width: 100%;
  padding: 0.65rem 2rem 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1.5px solid var(--slate-200);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  appearance: none;
  font-size: 0.9rem;
  color: var(--slate-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-entry-select:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.home-entry-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--slate-50);
}

.home-entry-search__nearby {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
}

.home-entry-search__nearby-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--teal-800);
  border: 1.5px solid rgba(13, 148, 136, 0.28);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-entry-search__nearby-btn:hover {
  background: var(--teal-50);
  border-color: var(--teal-500);
  color: var(--teal-900);
}

.home-entry-search__nearby-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: var(--teal-700);
  color: var(--teal-700);
}

/* Chips */
.home-entry__chips-wrap {
  margin-bottom: 1.35rem;
}

.home-entry__chips-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}

.home-entry__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.home-entry__chips::-webkit-scrollbar {
  display: none;
}

.home-entry-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--slate-200);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.home-entry-chip:hover {
  border-color: var(--teal-400);
  color: var(--teal-900);
  background: #fff;
  transform: translateY(-1px);
}

/* Store badges */
.home-entry-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.home-entry-store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 168px;
  padding: 0.62rem 1.1rem 0.62rem 0.85rem;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-entry-store--apple {
  background: linear-gradient(145deg, #0f172a, #1e293b);
}

.home-entry-store--google {
  background: linear-gradient(145deg, #111827, #0f3d38);
}

.home-entry-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
  color: #fff;
}

.home-entry-store[aria-disabled="true"] {
  opacity: 0.72;
  pointer-events: none;
}

.home-entry-store__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-entry-store__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-entry-store__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.home-entry-store__text small {
  font-size: 0.62rem;
  opacity: 0.82;
}

.home-entry-store__text strong {
  font-size: 1.02rem;
  font-weight: 700;
}

/* Trust bar */
.home-entry-trust {
  padding-top: 0.15rem;
}

.home-entry-trust__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(20, 184, 166, 0.14);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.08);
}

.home-entry-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  padding: 0.7rem 0.45rem;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.home-entry-trust__item:hover {
  background: var(--slate-50);
}

.home-entry-trust__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--teal-50), #fff);
  color: var(--teal-700);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.12);
}

.home-entry-trust__icon svg {
  width: 17px;
  height: 17px;
}

.home-entry-trust__text {
  font-size: 0.71rem;
  line-height: 1.35;
  color: var(--slate-600);
}

.home-entry-trust__text strong {
  color: var(--teal-900);
  font-weight: 700;
}

/* Homepage shell */
.page-home {
  --page-canvas: var(--bg);
}

.page-home main {
  padding-top: 0;
  background-color: var(--bg);
}

.page-home .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(226, 232, 240, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

@media (max-width: 720px) {
  .home-entry-loc__row {
    grid-template-columns: 1fr;
  }

  .home-entry-trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-entry-search__bar {
    flex-wrap: wrap;
    padding: 0.65rem;
  }

  .home-entry-search__bar input {
    width: 100%;
    padding: 0.2rem 0.05rem;
  }

  .home-entry-search__bar .btn {
    width: 100%;
    justify-content: center;
  }

  .home-entry__avatar {
    width: 44px;
    height: 44px;
    margin-left: -10px;
  }
}

@media (max-width: 420px) {
  .home-entry-stores {
    flex-direction: column;
    align-items: stretch;
  }

  .home-entry-store {
    justify-content: center;
  }
}
