/* App landing pages — builds on pages.css (colours, body, links, footer).
   Self-contained, no external fonts. */

main.app { max-width: 46rem; }

/* Hero ------------------------------------------------------------------ */
.app-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}
.app-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 22.5%;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.65);
}
@media (prefers-color-scheme: light) {
  .app-icon { box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.35); }
}
.app-hero .eyebrow { margin-top: 1.5rem; }
.app-hero h1 { margin: 0.5rem 0 0; font-size: 2.1rem; }
.tagline {
  margin: 0.9rem 0 0;
  max-width: 32rem;
  font-size: 1.05rem;
  color: var(--fg);
}

/* Store badges ---------------------------------------------------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: 2rem 0 0;
}
.badges img {
  display: block;
  position: relative;
  z-index: 1;
  height: 3rem;
  width: auto;
}
/* Animating a gradient angle needs a registered custom property. Without
   @property the variable is unregistered and resolves to nothing, which would
   make the whole conic-gradient invalid — hence the 0deg fallback at the use
   site, so those browsers still get a static (unrotating) ring. */
@property --badge-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes badge-spin {
  to { --badge-angle: 360deg; }
}
/* The rotating rainbow ring, ported verbatim from muellmann-app.de — same
   stops, same geometry, same timing, so the two sites' store badges behave
   identically. The six hues are deliberately NOT the page's amber/mint
   tokens: two tokens produce a two-colour sweep, which reads as a gradient
   rather than the spinning rainbow this effect is. Keep the stops as they
   are; theming them is what breaks the look. */
:root {
  --badge-rainbow: #1c77c2, #10b981, #eab308, #ea580c, #7c3aed, #2788cf, #1c77c2;
}
.badge-glow {
  position: relative;
  display: inline-flex;
  isolation: isolate;
  border-radius: 0.6rem;
  transition: transform 0.3s;
}
.badge-glow:hover,
.badge-glow:focus-visible { transform: translateY(-1px); }
/* Two stacked copies of the same gradient: a crisp one hugging the badge edge
   and a blurred one further out that reads as the cast light. */
.badge-glow::before,
.badge-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(from var(--badge-angle, 0deg), var(--badge-rainbow));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.badge-glow::after {
  inset: -7px;
  z-index: -1;
  filter: blur(10px);
}
/* Keyboard focus gets the same treatment as hover — the glow is the only visual
   affordance these links have, so leaving it pointer-only would tell a keyboard
   user less than a mouse user. The browser's own focus ring stays on top of it;
   the glow supplements it, it does not replace it. */
.badge-glow:hover::before,
.badge-glow:focus-visible::before { opacity: 1; }
.badge-glow:hover::after,
.badge-glow:focus-visible::after { opacity: 0.55; }
.badge-glow:hover::before,
.badge-glow:hover::after,
.badge-glow:focus-visible::before,
.badge-glow:focus-visible::after { animation: badge-spin 4s linear infinite; }

/* Facts row ------------------------------------------------------------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted-soft);
}
.facts li { margin: 0; }
.facts strong { color: var(--fg); font-weight: 600; }

/* Feature list ---------------------------------------------------------- */
.features {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.features li {
  position: relative;
  margin: 0.6rem 0;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--mint);
}

/* Note box — the card shell comes from .summary (pages.css); markup carries
   both classes, so a change to the shell reaches these pages too. Only the
   quieter treatment lives here. */
.note {
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.note p { margin: 0; font-size: inherit; }
.note p + p { margin-top: 0.6rem; }

/* Footer ---------------------------------------------------------------- */
footer.app-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
footer.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

@media (max-width: 30rem) {
  .app-hero h1 { font-size: 1.7rem; }
  .tagline { font-size: 1rem; }
  .badges { gap: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-glow { transition: none; }
  .badge-glow:hover,
  .badge-glow:focus-visible { transform: none; }
  .badge-glow:hover::before,
  .badge-glow:hover::after,
  .badge-glow:focus-visible::before,
  .badge-glow:focus-visible::after { animation: none; }
}
