/* nivas/landings/show.html.erb - the extension's landing page. Colors come from
   the --nivas-* tokens in app/assets/tailwind/application.css; the page-wide
   entrance is the shared .page-fade-up. */
.nivas-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(255 255 255 / 0.1), transparent 60%),
    linear-gradient(160deg, var(--nivas-mid) 0%, var(--nivas-deep) 62%);
}
/* The Toronto skyline of the store graphics, drawn as soft blocks. */
.nivas-hero-skyline {
  position: absolute;
  inset: auto 0 0 0;
  height: 11rem;
  opacity: 0.18;
  background:
    linear-gradient(#fff, #fff) 4% 100% / 9% 38% no-repeat,
    linear-gradient(#fff, #fff) 14% 100% / 7% 62% no-repeat,
    linear-gradient(#fff, #fff) 23% 100% / 11% 30% no-repeat,
    linear-gradient(#fff, #fff) 36% 100% / 6% 50% no-repeat,
    linear-gradient(#fff, #fff) 46% 100% / 10% 24% no-repeat,
    linear-gradient(#fff, #fff) 60% 100% / 8% 44% no-repeat,
    linear-gradient(#fff, #fff) 72% 100% / 12% 28% no-repeat,
    linear-gradient(#fff, #fff) 88% 100% / 8% 56% no-repeat;
  mask-image: linear-gradient(to top, #000, transparent);
}
.nivas-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.nivas-lang {
  display: block;
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  color: rgb(255 255 255 / 0.75);
  transition: background-color 0.15s, color 0.15s;
}
.nivas-lang:hover,
.nivas-lang:focus-visible {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}
.nivas-lang.is-current {
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}
.nivas-pill {
  display: inline-block;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.08);
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.92);
}
.nivas-pill-light {
  border-color: var(--border);
  background: var(--pill-green-bg);
  color: var(--pill-green-text);
}

/* The one call to action. The dark text on the orange holds in both themes, so
   it does not follow --cta-bg. */
.nivas-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border-radius: 0.875rem;
  background: var(--nivas-accent);
  padding: 0.875rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--nivas-on-accent);
  box-shadow: 0 10px 28px -10px rgb(245 165 59 / 0.75);
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.nivas-cta:hover {
  background: var(--nivas-accent-hover);
  transform: translateY(-1px);
}
.nivas-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.nivas-text-link {
  font-weight: 600;
  color: rgb(255 255 255 / 0.9);
  text-underline-offset: 4px;
}
.nivas-text-link:hover,
.nivas-text-link:focus-visible {
  text-decoration: underline;
}

/* The browser window of the first store screenshot, cut out of its poster:
   the window spans x 466..1240 and y 56..772 of the 1280x800 picture. */
.nivas-hero-shot {
  filter: drop-shadow(0 30px 50px rgb(0 0 0 / 0.35));
}
.nivas-hero-crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 774 / 716;
  border-radius: 0.75rem;
  background: #fff;
}
.nivas-hero-crop img {
  position: absolute;
  top: -7.82%;
  left: -60.21%;
  width: 165.37%;
  max-width: none;
  height: auto;
}

.nivas-feature {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-elevated);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s;
  animation: fade-up-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nivas-feature:nth-child(1) { animation-delay: 0.1s; }
.nivas-feature:nth-child(2) { animation-delay: 0.2s; }
.nivas-feature:nth-child(3) { animation-delay: 0.3s; }
.nivas-feature:nth-child(4) { animation-delay: 0.4s; }
.nivas-feature:nth-child(5) { animation-delay: 0.5s; }
.nivas-feature:nth-child(6) { animation-delay: 0.6s; }
.nivas-feature:hover {
  transform: translateY(-3px);
  border-color: var(--pill-green-text);
}

.nivas-band {
  background: var(--nivas-band);
  color: var(--nivas-band-text);
}
.nivas-shot {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--nivas-deep);
  box-shadow: 0 24px 48px -24px rgb(8 56 47 / 0.55);
}
.nivas-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.nivas-final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(40rem 20rem at 50% 120%, rgb(245 165 59 / 0.22), transparent 70%),
    linear-gradient(160deg, var(--nivas-mid) 0%, var(--nivas-deep) 70%);
}
.nivas-footer {
  background: var(--nivas-deep);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .nivas-feature {
    animation: none;
    transition: none;
  }
  .nivas-cta {
    transition: none;
  }
  .nivas-cta:hover,
  .nivas-feature:hover {
    transform: none;
  }
}
