/* Scoped: /app/ store page + mobile download promo. PC ≥1200 layout untouched. */

.cotinder-app-store {
  --cas-bg: #0b1410;
  --cas-card: #122018;
  --cas-line: rgba(156, 184, 164, 0.22);
  --cas-text: #e8f5e9;
  --cas-muted: #9cb8a4;
  --cas-accent: #43a047;
  --cas-accent-2: #2e7d32;
  max-width: 560px;
  margin: 16px auto 40px;
  padding: 0 14px;
  color: var(--cas-text);
  font-family: Georgia, "Times New Roman", serif;
}

.cotinder-app-store__card {
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(67, 160, 71, 0.18), transparent 55%),
    linear-gradient(165deg, #15261c 0%, var(--cas-card) 48%, #0d1812 100%);
  border: 1px solid var(--cas-line);
  border-radius: 20px;
  padding: 22px 18px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.cotinder-app-store__hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.cotinder-app-store__icon {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  background: #0b1410;
}

.cotinder-app-store__name {
  margin: 0 0 4px;
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cotinder-app-store__tagline,
.cotinder-app-store__badge,
.cotinder-app-store__lead,
.cotinder-app-store__hint,
.cotinder-app-store__status {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--cas-muted);
}

.cotinder-app-store__badge {
  margin-top: 6px;
  color: #b9e0bc;
  font-size: 0.82rem;
}

.cotinder-app-store__lead {
  margin: 0 0 18px;
  color: #d7ead9;
}

.cotinder-app-store__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.cotinder-app-store__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cotinder-app-store__btn--primary {
  background: linear-gradient(180deg, var(--cas-accent) 0%, var(--cas-accent-2) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(46, 125, 50, 0.35);
}

.cotinder-app-store__btn--primary.is-pwa-install-ready {
  animation: cotinder-app-store-pulse 1.6s ease-in-out infinite;
}

.cotinder-app-store__btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--cas-line);
  color: var(--cas-text);
}

.cotinder-app-store__btn--ghost {
  background: transparent;
  border-color: var(--cas-line);
  color: #c8e6c9;
  font-weight: 550;
}

.cotinder-app-store__status {
  margin-bottom: 14px;
  color: #c8e6c9;
}

.cotinder-app-store__features {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.92rem;
  color: #d7ead9;
}

.cotinder-app-store__features li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-top: 1px solid rgba(156, 184, 164, 0.12);
}

.cotinder-app-store__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: #81c784;
  font-weight: 700;
}

.cotinder-app-store__howto-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.cotinder-app-store__steps {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.92rem;
  color: #d7ead9;
  line-height: 1.5;
}

.cotinder-app-store__steps li + li {
  margin-top: 6px;
}

.cotinder-app-store__hint {
  margin-top: 10px;
}

@keyframes cotinder-app-store-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Sticky promo — phones/tablets only (browser). Never in installed PWA / gadjet iframe. */
.cotinder-app-promo {
  display: none !important;
}

@media (max-width: 1023px) {
  /* Must keep [hidden] — otherwise display:flex overrides the attribute and promo leaks into PWA iframe. */
  body:not(.cotinder-app-promo-dismissed):not(.cotinder-pwa-standalone) .cotinder-app-promo:not([hidden]) {
    display: flex !important;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 940;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(11, 20, 16, 0.96);
    border: 1px solid rgba(156, 184, 164, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    color: #e8f5e9;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }

  html.cotinder-pwa-standalone .cotinder-app-promo,
  html.cotinder-in-pwa .cotinder-app-promo,
  body.cotinder-pwa-standalone .cotinder-app-promo,
  body.cotinder-in-pwa .cotinder-app-promo {
    display: none !important;
  }

  .cotinder-app-promo__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

  .cotinder-app-promo__text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .cotinder-app-promo__text strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 2px;
  }

  .cotinder-app-promo__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #43a047;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 650;
  }

  .cotinder-app-promo__close {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #c8e6c9;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
  }

  body:not(.cotinder-app-promo-dismissed):not(.cotinder-pwa-standalone):not(.cotinder-in-pwa):has(.cotinder-app-promo:not([hidden])) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  html.cotinder-pwa-standalone body,
  html.cotinder-in-pwa body,
  body.cotinder-pwa-standalone,
  body.cotinder-in-pwa {
    padding-bottom: 0 !important;
  }
}

@media (min-width: 1024px) {
  .cotinder-app-promo {
    display: none !important;
  }
}

/* Hide promo on the store page itself */
body.cotinder-page-app .cotinder-app-promo {
  display: none !important;
}

body.cotinder-page-app {
  padding-bottom: 0 !important;
}
