.analytics-preferences {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-preferences:focus-visible,
.analytics-consent__actions button:focus-visible,
#analytics-consent a:focus-visible {
  outline: 3px solid #f47b25;
  outline-offset: 3px;
}

#analytics-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 1rem 1rem;
  max-width: 760px;
  margin-inline: auto;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  color: #1a1a2e;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgb(10 22 40 / 25%);
  font: 400 0.95rem/1.5 'Plus Jakarta Sans', sans-serif;
}

.analytics-consent__copy strong { font-size: 1rem; }
.analytics-consent__copy p { margin: 0.35rem 0 0; color: #334155; }
#analytics-consent a { color: #02569b; }
.analytics-consent__actions { display: flex; flex-shrink: 0; gap: 0.5rem; }
.analytics-consent__actions button {
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #02569b;
  background: #02569b;
  color: #fff;
  cursor: pointer;
  font: 700 0.85rem/1.2 'Plus Jakarta Sans', sans-serif;
}
@media (max-width: 650px) {
  #analytics-consent { display: block; }
  .analytics-consent__actions { flex-wrap: wrap; margin-top: 1rem; }
  .analytics-consent__actions button { flex: 1 1 150px; }
}

/* App store buttons. landing-analytics.js sets html[data-os] from the user
   agent; desktop ("other") keeps both stores equal. */
html[data-os="android"] [data-store="google_play"],
html[data-os="ios"] [data-store="app_store"] { order: -1; }

html[data-os="android"] :is(.btn-primary, .btn-main)[data-store="app_store"],
html[data-os="ios"] :is(.btn-primary, .btn-main)[data-store="google_play"] {
  background: transparent;
  color: #fff;
  box-shadow: none;
  border: 1.5px solid rgb(255 255 255 / 40%);
}
html[data-os="android"] :is(.btn-primary, .btn-main)[data-store="app_store"]:hover,
html[data-os="ios"] :is(.btn-primary, .btn-main)[data-store="google_play"]:hover {
  background: rgb(255 255 255 / 10%);
}

#download { scroll-margin-top: 64px; }

/* Landing hero: the text column (330-480px) is too narrow for two store
   buttons in a row, so they stack at equal width with the web link below. */
.hero-actions [data-store] { justify-content: center; min-width: min(100%, 300px); }
.hero-actions .btn-secondary { flex-basis: 100%; justify-content: inherit; }

/* Web version retirement notice (the web app retires on 1 January 2027).
   :is() lifts specificity above the pages' own `.hero p`, `.download p`, `p`. */
:is(.hero, .download, main, body) p.web-retire-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 30rem;
  margin: 1.25rem 0 0;
  padding: 10px 14px;
  border: 1px solid rgb(245 166 66 / 45%);
  border-radius: 10px;
  background: rgb(245 166 66 / 10%);
  color: rgb(255 255 255 / 90%);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
}
p.web-retire-note svg { flex-shrink: 0; margin-top: 2px; color: #f5a642; }
p.web-retire-note a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-group + p.web-retire-note.web-retire-note,
.download p.web-retire-note.web-retire-note { margin: 1.5rem auto 0; }
@media (max-width: 900px) {
  .hero p.web-retire-note.web-retire-note { margin: 1.25rem auto 0; }
}
