/* Aetris · App Store buttons, who sees which store, and the launch-week strip.
   Written into deploy/ by tools/ios-launch/launch.mjs. A new file name, so the 4-hour Cloudflare
   cache on styles.css can never pair the new HTML with old rules. */

/* App Store button: the same white pill as .store-btn (Google Play), minus the iOS outline that
   styles.css gives .store-btn on iPhone. */
.as-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: var(--ink); color: #0a0812;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .18s, box-shadow .18s;
}
@media (hover: hover) and (pointer: fine) {
  .as-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(255,255,255,.4); }
}
.as-btn:active { transform: scale(0.97); }
.as-btn .sbtext { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.as-btn small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; font-weight: 400; }
.as-btn strong { font-size: 15px; font-weight: 700; }
.cta-actions .as-btn { padding: 16px 28px; }
@media (max-width: 620px) { .hero-actions .as-btn { justify-content: center; } }

/* Who sees which store. iPhone never sees a Google Play badge: html.is-ios .cta-play in styles.css.
   Android never sees an App Store badge. Desktop sees both. */
html:not(.is-ios):not(.is-desktop) .cta-as { display: none; }

/* Pricing on desktop: the plan buttons scroll to the two store buttons at the end of the page.
   Two classes on purpose: .plan-btn a { display: block } is (0,1,1). */
.plan-btn .plan-desk { display: none; }
html.is-desktop .plan-btn .plan-desk { display: block; }
html.is-desktop .plan-btn .plan-play { display: none; }

/* Footer band, now an announcement. `.ios-band-inner strong` (0,1,1) in styles.css would
   otherwise turn the store names inside the buttons purple. */
.ios-band-inner .band-title { color: var(--accent2-bright); }
.band-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ios-band-inner .band-actions strong { display: block; color: inherit; font-size: 15px; font-weight: 700; }

/* Launch-week strip under the nav (stores.js adds it for 7 days from the release date). */
.launch-strip {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--pad-x);
  background: linear-gradient(90deg, rgba(42,31,74,.96), rgba(26,20,48,.96));
  border-bottom: 1px solid rgba(229,200,118,.35);
  font-size: 13.5px; line-height: 1.35; color: var(--muted);
}
.launch-strip-moon { width: 28px; height: 28px; flex: none; filter: drop-shadow(0 0 8px rgba(229,200,118,.45)); }
.launch-strip p { margin: 0; }
.launch-strip b { color: var(--accent2-bright); font-weight: 600; }
.launch-strip-go { margin-left: auto; flex: none; color: var(--ink); font-weight: 600; white-space: nowrap; }
.launch-strip-x { flex: none; background: none; border: 0; padding: 4px 2px; color: var(--dim); font-size: 20px; line-height: 1; cursor: pointer; }
.launch-strip-x:hover, .launch-strip-x:focus-visible { color: var(--ink); }

/* Desktop (stores.js): an App Store + Google Play pair in place of a tool's single result button,
   and the same pair in a small chooser under "Get the App" / "Download Free" in the menu.
   `.article a` (0,1,1) and `.article a:hover` (0,2,1) would turn the pair purple and underline it
   inside articles (the Star Beast tool), hence the child selectors. */
.store-pair { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.store-pair > a.as-btn, .store-pair > a.store-btn { flex: 0 0 auto; white-space: nowrap; padding: 12px 20px; background: var(--ink); color: #0a0812; border: 0; }
.store-pair > a.as-btn:hover, .store-pair > a.store-btn:hover { color: #0a0812; }
.store-pair svg { width: 22px; height: 22px; flex: none; }
html.is-desktop .store-replaced { display: none !important; }
.store-pop {
  position: fixed; z-index: 200;
  width: min(400px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(42,31,74,.98), rgba(15,11,30,.98));
  border: 1px solid rgba(229,200,118,.3);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.store-pop p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.store-pop .store-pair { margin-top: 14px; }
