/* "Get the App" bottom sheet for phones (partials/_mobile_app_prompt.html, js/gj-app-prompt.js).
   The hero band uses the brand's deep teal with teal and gold glows on every persona (it is a brand moment);
   the benefit tiles follow the persona accent. Store badges follow the stores' own black badge style. */
.gj-app-prompt {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 480px);
  max-width: 100%;
  max-height: min(92dvh, 720px);
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--theme-ink);
  background: transparent;
  border: 0;
  transform: translateY(100%);
  transition: transform .34s cubic-bezier(.2, .8, .2, 1);
}

.gj-app-prompt.is-open {
  transform: none;
}

.gj-app-prompt::backdrop {
  background: rgba(3, 14, 17, .58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.gj-app-prompt__sheet {
  position: relative;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background: var(--theme-surface);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -18px 50px rgba(3, 14, 17, .35);
}

.gj-app-prompt__hero {
  position: relative;
  isolation: isolate;
  padding: 30px 24px 22px;
  overflow: hidden;
  color: var(--theme-chrome-ink);
  text-align: center;
  background:
    radial-gradient(120% 90% at 10% 0%, color-mix(in srgb, var(--theme-customer-glow) 30%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 10%, color-mix(in srgb, var(--theme-customer-accent2) 26%, transparent), transparent 62%),
    linear-gradient(180deg, var(--theme-customer-deep), var(--theme-customer-deeper));
}

.gj-app-prompt__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(125deg, var(--theme-chrome-glass) 0 1px, transparent 1px 16px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

.gj-app-prompt__grabber {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 2;
  width: 40px;
  height: 5px;
  background: rgba(255, 255, 255, .38);
  border-radius: 99px;
  transform: translateX(-50%);
}

.gj-app-prompt__close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--theme-chrome-ink);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
}

.gj-app-prompt__close:focus-visible,
.gj-app-prompt__continue:focus-visible,
.gj-app-prompt__store:focus-visible {
  outline: 2px solid var(--theme-customer-glow);
  outline-offset: 2px;
}

.gj-app-prompt__icon {
  display: inline-grid;
  width: 76px;
  height: 76px;
  padding: 2px;
  background: linear-gradient(135deg, var(--theme-customer-glow), var(--theme-customer-accent2));
  border-radius: 22px;
  box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--theme-customer-glow) 70%, transparent);
  animation: gj-app-prompt-float 4.5s ease-in-out infinite;
}

.gj-app-prompt__icon img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.gj-app-prompt__eyebrow {
  margin: 16px 0 4px;
  color: var(--theme-customer-accent2);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gj-app-prompt__title {
  margin: 0;
  color: var(--theme-chrome-ink);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.gj-app-prompt__lead {
  max-width: 34ch;
  margin: 8px auto 0;
  color: color-mix(in srgb, var(--theme-chrome-ink) 82%, transparent);
  font-size: .9rem;
  line-height: 1.45;
}

.gj-app-prompt__benefits {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px 22px 6px;
  list-style: none;
}

.gj-app-prompt__benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gj-app-prompt__benefit-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: var(--app-context-dark, var(--theme-brand-dark));
  background: var(--app-context-soft, var(--theme-brand-soft));
  border-radius: 11px;
  font-size: 1.05rem;
}

.gj-app-prompt__benefits strong,
.gj-app-prompt__benefits small {
  display: block;
}

.gj-app-prompt__benefits strong {
  color: var(--theme-ink);
  font-size: .9rem;
  font-weight: 700;
}

.gj-app-prompt__benefits small {
  color: var(--theme-muted);
  font-size: .8rem;
  line-height: 1.35;
}

.gj-app-prompt__stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 22px 4px;
}

.gj-app-prompt__store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 6px 12px;
  color: #fff;
  text-align: start;
  text-decoration: none;
  background: #000;
  border: 1px solid #a6a6a6;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .2s ease;
}

.gj-app-prompt__store:hover,
.gj-app-prompt__store:active {
  color: #fff;
}

.gj-app-prompt__store:active {
  transform: scale(.97);
}

.gj-app-prompt__store > i {
  font-size: 1.6rem;
  line-height: 1;
}

.gj-app-prompt__store > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.gj-app-prompt__store small {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}

.gj-app-prompt__store strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}

/* The visitor's own store gets a soft brand glow. */
.gj-app-prompt__store.is-own[href] {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-customer-glow) 45%, transparent), 0 12px 26px -12px rgba(0, 0, 0, .6);
}

/* Not published yet: same badge shape, quieter, and not a link. */
.gj-app-prompt__store.is-soon {
  color: #d0d5dc;
  border-style: dashed;
  cursor: default;
}

.gj-app-prompt__continue {
  display: block;
  width: calc(100% - 44px);
  min-height: 46px;
  margin: 10px 22px 0;
  color: var(--theme-muted);
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
}

.gj-app-prompt__continue:active {
  background: var(--app-context-soft, var(--theme-brand-soft));
}

[data-bs-theme="dark"] .gj-app-prompt__store {
  border-color: #5c636b;
}

@keyframes gj-app-prompt-float {
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .gj-app-prompt,
  .gj-app-prompt__store {
    transition: none;
  }

  .gj-app-prompt__icon {
    animation: none;
  }
}

/* Short screens (small phones, landscape): a tighter sheet so the store badges stay in view. */
@media (max-height: 700px) {
  .gj-app-prompt__hero {
    padding: 24px 22px 16px;
  }

  .gj-app-prompt__icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .gj-app-prompt__icon img {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .gj-app-prompt__eyebrow {
    margin-top: 10px;
  }

  .gj-app-prompt__title {
    font-size: 1.25rem;
  }

  .gj-app-prompt__benefits {
    gap: 8px;
    padding-top: 14px;
  }

  .gj-app-prompt__benefits small {
    display: none;
  }

  .gj-app-prompt__benefit-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: .95rem;
  }
}

/* Narrow phones: badges stack so their labels never clip. */
@media (max-width: 340px) {
  .gj-app-prompt__stores {
    grid-template-columns: 1fr;
  }
}
