/* ==========================================================================
   The app page, the offline page, and the install banner
   ========================================================================== */

/* ------------------------------------------------------- install banner */

/*
 * Shown only when the browser has actually offered to install the app. Nothing
 * here runs on a browser that cannot install, and nothing is shown to a customer
 * who has already installed it - it checks before it appears.
 */
.app-install-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 115;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(0,0,0,.12);
  transform: translateY(110%); transition: transform .28s ease;
}
.app-install-bar[hidden] { display: none; }
.app-install-bar.is-up { transform: translateY(0); }
.app-install-bar__icon { width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto; object-fit: cover; }
.app-install-bar__text { flex: 1; min-width: 0; }
.app-install-bar__text b { display: block; font-size: 14.5px; line-height: 1.3; }
.app-install-bar__text span { font-size: 12.5px; color: var(--ink-faint); }
.app-install-bar__actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* ------------------------------------------------------------- app hero */

.app-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px; align-items: center;
  padding: 34px 0 10px;
}
.app-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--pink); margin: 0 0 8px;
}
.app-hero h1 { margin: 0 0 10px; }
.app-hero__text > .muted { font-size: 16.5px; max-width: 46ch; }

.app-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--pink-soft); color: var(--pink-dark);
  font-size: 12.5px; font-weight: 700;
}

.app-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-dl { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.25; }
.app-dl .ico { margin-bottom: 1px; }
.app-dl__meta { font-size: 11.5px; font-weight: 600; opacity: .92; }
.app-hero__note { margin: 16px 0 0; max-width: 48ch; display: flex; gap: 7px; }
.app-hero__note .ico { flex: 0 0 auto; margin-top: 2px; }

/* The phone in the hero, drawn rather than photographed. */
.app-hero__art { display: flex; justify-content: center; }
.app-phone {
  position: relative; width: 210px; border-radius: 30px; padding: 10px;
  background: linear-gradient(160deg, #2b2b33, #101014);
  box-shadow: 0 26px 60px rgba(0,0,0,.28);
}
.app-phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 7px; border-radius: 99px; background: #000; opacity: .55;
}
.app-phone__screen {
  border-radius: 22px; padding: 34px 16px 20px; background: #fff; text-align: center;
}
.app-phone__icon { width: 52px; height: 52px; border-radius: 13px; margin: 0 auto 8px; object-fit: cover; }
.app-phone__screen b { display: block; font-size: 15px; }
.app-phone__tag { display: block; font-size: 11px; color: var(--ink-faint); margin-top: 1px; }
.app-phone__pill {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
  padding: 4px 10px; border-radius: 999px; background: var(--pink-soft);
  color: var(--pink-dark); font-size: 11px; font-weight: 700;
}

/* ---------------------------------------------------------- app sections */

.app-section { padding: 34px 0; border-top: 1px solid var(--line-soft); }
.app-section h2 { margin: 0 0 6px; }
.app-section > .muted { margin: 0 0 18px; }

.app-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.app-perk { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.app-perk__icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px;
  border-radius: 11px; background: var(--pink-soft); color: var(--pink);
}
.app-perk b { display: block; margin-bottom: 3px; }
.app-perk p { margin: 0; }

/* Previews, in phone-shaped frames. */
.app-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.app-shot { margin: 0; }
.app-shot__frame {
  border: 6px solid #16161c; border-radius: 20px; overflow: hidden; background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
.app-shot__frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.app-shot__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; }
.app-shot__bar b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shot__price { color: var(--pink); font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.app-shot figcaption { margin-top: 9px; text-align: center; }

/* Q and A. */
.app-faq { display: grid; gap: 10px; max-width: 820px; }
.app-faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 16px; }
.app-faq__item summary {
  cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.app-faq__item summary::-webkit-details-marker { display: none; }
.app-faq__item summary::after { content: "+"; color: var(--pink); font-size: 20px; line-height: 1; }
.app-faq__item[open] summary::after { content: "\2013"; }
.app-faq__item p { margin: 0 0 14px; }

/* Closing call to action. */
.app-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px; margin: 30px 0 10px;
  border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--pink-soft), #fff);
}
.app-cta__icon { width: 64px; height: 64px; border-radius: 15px; object-fit: cover; flex: 0 0 auto; }
.app-cta__actions { margin-inline-start: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------- offline page */

.offline {
  max-width: 560px; margin: 40px auto 60px; text-align: center;
  padding: 40px 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.offline__mark {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--pink-soft); color: var(--pink);
}
.offline h1 { margin: 0 0 10px; }
.offline__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0; }
.offline__note { padding-top: 18px; border-top: 1px solid var(--line-soft); text-align: start; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .app-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 22px; }
  .app-hero__art { order: -1; }
  .app-phone { width: 172px; }
}

@media (max-width: 720px) {
  /* The bottom nav already sits here, so the banner has to clear it. */
  .app-install-bar { bottom: calc(62px + env(safe-area-inset-bottom)); gap: 10px; padding: 10px 12px; }
  .app-install-bar__icon { width: 38px; height: 38px; }
  .app-install-bar__text span { display: none; }
  .app-install-bar__actions .btn { padding: 8px 12px; font-size: 13px; }

  .app-hero__cta .btn { width: 100%; }
  .app-cta { flex-direction: column; text-align: center; }
  .app-cta__actions { margin-inline-start: 0; width: 100%; }
  .app-cta__actions .btn { flex: 1; justify-content: center; }
  .offline { margin: 24px auto 40px; padding: 30px 18px; }
}