/* The get-the-app card (web/get/index.html) and the popup that shows it on every page and in the app (get-app.js):
   the page frosted behind it, a glass card in a hairline frame, a fade and a slight grow in, as the app's popups
   (lib/ui/dialogs/popup.dart). Self-contained, as the app's page doesn't load site.css. Colours follow
   lib/ui/theme/palette.dart. */
@font-face {
  font-family: "Cairo";
  font-weight: 600;
  font-display: swap;
  src: url("assets/assets/fonts/Cairo-SemiBold.ttf") format("truetype");
}
.get-app-card, dialog.get-app {
  --ga-text: #ffffff;
  --ga-text-dim: rgba(255, 255, 255, 0.7);
  --ga-accent: #429fc0;
  --ga-accent-hover: #4fb0d3;
}

/* the card */
.get-app-card { text-align: center; color: var(--ga-text); font: 600 17px/1.55 "Cairo", system-ui, sans-serif; }
.get-app-card h1, .get-app-card h2 { font-size: 24px; line-height: 1.3; margin: 0 40px 4px; color: var(--ga-text); }
.get-app-card .lead { font-size: 17px; margin: 0 0 16px; color: var(--ga-text-dim); }
.get-app-card .benefits { display: inline-block; list-style: none; margin: 0 0 24px; padding: 0; text-align: left; }
.get-app-card .benefits li {
  position: relative; margin: 0; padding: 0 0 0 34px; font-size: 19px; line-height: 1.6; color: var(--ga-text);
}
/* a tick, as in the app */
.get-app-card .benefits li::before {
  content: ""; position: absolute; left: 8px; top: 0.32em; width: 7px; height: 13px;
  border: solid var(--ga-accent); border-width: 0 3px 3px 0; border-radius: 1px; transform: rotate(45deg);
}
.get-app-card .button {
  display: inline-block; min-width: 220px; padding: 10px 24px; border-radius: 999px;
  background: var(--ga-accent); color: #fff; font-size: 17px; text-decoration: none; white-space: nowrap;
}
.get-app-card .button:hover { background: var(--ga-accent-hover); color: #fff; }
.get-app-card .qr { display: block; width: 190px; height: 190px; margin: 0 auto; border-radius: 10px; }
.get-app-card .scan { margin: 8px 0 4px; font-size: 17px; color: var(--ga-text-dim); }
.get-app-card .stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 0; }
.get-app-card .stores a { color: var(--ga-accent); font-size: 17px; text-decoration: none; padding: 4px 0; }
.get-app-card .stores a:hover { text-decoration: underline; text-underline-offset: 3px; }
.get-app-card :focus-visible { outline: 2px solid var(--ga-accent); outline-offset: 2px; }

/* One way to get the app, by platform (data-platform, set by get-app.js): the store's button on a phone, the QR
   code with both stores elsewhere, and also without JavaScript. */
.get-app-card .store { display: none; }
.get-app-card[data-platform="ios"] .store.ios,
.get-app-card[data-platform="android"] .store.android { display: inline-block; }
.get-app-card[data-platform="ios"] .desktop,
.get-app-card[data-platform="android"] .desktop { display: none; }

/* on the get-the-app page itself, a card on the page */
main > .get-app-card { margin: 16px auto 0; max-width: 460px; }

/* the popup */
html:has(dialog.get-app[open]) { overflow: hidden; }
dialog.get-app {
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--ga-text);
  color-scheme: dark;
}
dialog.get-app::backdrop {
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
dialog.get-app .get-app-card .benefits { margin-bottom: 20px; }
dialog.get-app:focus { outline: none; }
/* Just the X (Eli, 2026-11-30): no circle round it. It brightens on hover; a ring shows only when the keyboard
   moves to it, as it does on every other control. */
dialog.get-app .close {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; padding: 10px;
  border: 0; border-radius: 50%; background: none; color: var(--ga-text-dim); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
dialog.get-app .close:hover { color: var(--ga-text); }
dialog.get-app .close:focus { outline: none; }
dialog.get-app .close:focus-visible { outline: 2px solid var(--ga-accent); outline-offset: 2px; }
dialog.get-app .close svg {
  display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
@keyframes get-app-in { from { opacity: 0; transform: scale(0.97); } }
@keyframes get-app-out { to { opacity: 0; transform: scale(0.97); } }
@keyframes get-app-fade-in { from { opacity: 0; } }
@keyframes get-app-fade-out { to { opacity: 0; } }
dialog.get-app[open] { animation: get-app-in 250ms ease-out; }
dialog.get-app[open]::backdrop { animation: get-app-fade-in 250ms ease-out; }
dialog.get-app.closing { animation: get-app-out 200ms ease-in forwards; }
dialog.get-app.closing::backdrop { animation: get-app-fade-out 200ms ease-in forwards; }
@media (prefers-reduced-motion: reduce) {
  dialog.get-app, dialog.get-app::backdrop { animation: none !important; }
}
@media (max-width: 480px) {
  dialog.get-app { padding: 24px 16px; }
  .get-app-card h1, .get-app-card h2 { font-size: 21px; margin: 0 26px 4px; }
  .get-app-card .qr { width: 170px; height: 170px; }
}
