/* app-cta.css — the "get the app" callout, as a shared stylesheet.
 *
 * The same .vr-app-cta component that founding.html, collector-founding.html,
 * verifier-founding.html, commissions/ and nfc-seal.html each carry as an
 * INLINE copy. Those five are deliberately left alone (the founding pages are
 * ring-fenced), so this file exists for every page that needs the block from
 * now on, starting with the artwork pages. Same markup, same class names, same
 * black store badges.
 *
 * The only difference from the founding copies is the palette: they resolve
 * --fa-gold / --vf-* which exist only on those pages. Here the same variables
 * are tried first, so a founding page could adopt this file unchanged, and the
 * fallbacks are --vr-* so it reads correctly on the rest of the site in BOTH
 * themes. A hardcoded colour here would be invisible on one of them.
 *
 * COPY RULE, enforced nowhere but the reason this comment exists: the callout
 * describes what the APP does. It must never say or imply the website cannot do
 * something. That framing is what got veriroo.com flagged as a "Deceptive page"
 * by Safe Browsing in August 2026.
 */

.vr-app-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 1.25rem 0 0;
  padding: 1.05rem 1.3rem;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--fa-gold-border, var(--vf-border, var(--vr-border, rgba(128, 128, 128, .25))));
  border-left: 4px solid var(--fa-gold, var(--vf-accent, var(--vr-accent, #00C4B3)));
  background: var(--fa-gold-soft-2, var(--vf-soft-2, var(--vr-bg-soft, rgba(128, 128, 128, .07))));
}

.vr-app-cta__body { flex: 1 1 260px; min-width: 230px; }

.vr-app-cta__title {
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 .3rem;
  color: var(--fa-ink, var(--vf-ink, var(--vr-text, inherit)));
}

/* The title is a link only where it deep-links somewhere the reader is not
   already standing. It must still read as a heading, not a blue link. */
a.vr-app-cta__title { text-decoration: none; }
a.vr-app-cta__title:hover { text-decoration: underline; text-underline-offset: 2px; }

.vr-app-cta__desc {
  font-size: .85rem;
  line-height: 1.55;
  margin: 0;
  color: var(--fa-muted, var(--vf-muted, var(--vr-muted, inherit)));
  opacity: var(--vr-app-cta-desc-opacity, .78);
}

.vr-app-store-badges { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }

/* Black badges, per the store guidelines and matching every other instance. */
.vr-app-store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  border: 1px solid #000;
  border-radius: 9px;
  padding: .42rem .8rem;
  text-decoration: none;
  line-height: 1.06;
  transition: opacity .12s ease;
}

.vr-app-store-badge:hover { opacity: .85; }
.vr-app-store-badge__top { font-size: .58rem; color: #cfcfcf; letter-spacing: .03em; text-transform: uppercase; }
.vr-app-store-badge__name { font-size: .9rem; color: #fff; font-weight: 600; }

@media (max-width: 560px) {
  .vr-app-cta { justify-content: center; text-align: center; }
  .vr-app-cta__body { flex-basis: 100%; min-width: 0; }
  .vr-app-store-badges { justify-content: center; width: 100%; }
}

/* ── The account-hub note ────────────────────────────────────────────────────
 *
 * Same component, second placement: the dismissible "Did you know?" note in
 * /account/index.html. Two things are decided here rather than in script:
 *
 * PHONE WIDTHS ONLY. The note exists because a member reading the hub on a
 * phone has no way of knowing the app is there. On a desktop the same block
 * would be an advert for something they cannot install on the machine in front
 * of them, so it is never painted at all above the site's phone breakpoint —
 * the same 768px at which site.css swaps the nav for the hamburger.
 *
 * NEVER BEFORE THE DECISION. The markup ships with `hidden` set and app-cta.js
 * clears it only for a member who has not dismissed it, so a dismissed note
 * cannot flash on the way past. `.vr-app-cta` sets display:flex, which beats
 * the UA rule for [hidden] on its own, hence the explicit pair below.
 */
.vr-app-cta--note { display: none; }

@media (max-width: 768px) {
  .vr-app-cta--note:not([hidden]) { display: flex; }
}

/* The dismiss sits on its own line under the badges: a quiet control, never a
   close cross floating over the copy. */
.vr-app-cta__dismiss {
  flex: 1 0 100%;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: .1rem 0 0;
  padding: .35rem 0;
  font: inherit;
  font-size: .78rem;
  line-height: 1.3;
  text-align: right;
  color: var(--fa-muted, var(--vf-muted, var(--vr-muted, inherit)));
  opacity: .72;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vr-app-cta__dismiss:hover { opacity: 1; }

@media (max-width: 560px) {
  /* The block centres at this width, so a right-aligned control would read as
     stray text rather than as part of the note. */
  .vr-app-cta__dismiss { text-align: center; }
}
