/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Hide floating widgets when mobile menu is open */
body.mobile-menu-open [class*="fixed bottom-6"] {
  display: none !important;
}

/* Homepage redesign: lightweight visual system */
.home-hero-bg {
  background:
    radial-gradient(1200px 500px at 75% -20%, rgba(37, 99, 235, 0.15), transparent 60%),
    radial-gradient(1000px 400px at 10% -15%, rgba(220, 38, 38, 0.14), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.home-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0));
}

.home-glow {
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.35) 0%, rgba(59, 130, 246, 0) 70%);
  filter: blur(16px);
}

.home-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.home-section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #2563eb;
}

.home-pill {
  padding: 0.375rem 0.625rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  font-weight: 600;
}

.home-reveal {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: no-preference) {
  .home-card {
    transition: transform 160ms ease, box-shadow 160ms ease;
  }

  .home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  }

  .home-reveal {
    transition:
      opacity 460ms ease,
      transform 460ms ease;
    transition-delay: var(--home-reveal-delay, 0ms);
  }

  .home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal {
    opacity: 1;
    transform: none;
  }
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: 172px;
  min-height: 60px;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.22);
  filter: brightness(1.03);
}

.store-badge:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.store-badge--google {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 45%),
    linear-gradient(180deg, #111827 0%, #020617 100%);
}

.store-badge--apple {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(180deg, #161616 0%, #000000 100%);
}

.store-badge__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.store-badge__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.store-badge__eyebrow {
  font-size: 0.54rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.store-badge__title {
  margin-top: 0.12rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
