/* Colours and fonts mirror the app: mobile/lib/core/theme/app_colors.dart
   (background, surface, primary, textPrimary, textSecondary, surfaceBorder)
   and app_text_styles.dart (Lora display, Manrope body). */
body {
  margin: 0;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  background: #F9F7FD;
  color: #14143A;
  line-height: 1.65;
}
a { color: #A5009F; }

.bar, main, .site { max-width: 860px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
/* Sticky frosted bar on the paper colour, separated by the app's hairline. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249, 247, 253, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 20, 58, 0.12);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Lora, serif;
  font-size: 1.3rem;
  color: #14143A;
  text-decoration: none;
}
nav { display: flex; gap: 20px; font-weight: 600; font-size: 0.95rem; }
nav a { color: #14143A; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: #A5009F; }
@media (max-width: 420px) {
  .brand { font-size: 1.15rem; gap: 8px; }
  nav { gap: 14px; font-size: 0.88rem; }
}

/* In-app WebView (`?embed=1`): the app draws its own title bar, so the site
   header, footer and page title would repeat it. */
.embed .top, .embed .site, .embed main > h1 { display: none; }
.embed main { padding: 16px; }

main { padding-top: 24px; padding-bottom: 40px; }
h1, h2 { line-height: 1.2; margin: 0; }
h1 { font-family: Lora, serif; font-weight: 500; font-size: 2rem; margin-bottom: 12px; }
h2 { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; color: #A5009F; }
p { margin: 0 0 12px; color: #544C6B; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #544C6B;
  margin-bottom: 10px;
}
.lede { margin-bottom: 24px; font-size: 1.05rem; }
.card {
  background: #F5E2F8;
  border: 1px solid rgba(20, 20, 58, 0.12);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.card p:last-child { margin-bottom: 0; }
ul { margin: 0; padding-left: 20px; }
li { margin-bottom: 10px; }
.faq h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 20px 0 6px; }
.faq h2 + h3 { margin-top: 0; }

.hero { text-align: center; padding: 24px 0 16px; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); }
.hero .lede { max-width: 620px; margin-left: auto; margin-right: auto; }
/* Mandala spin and sparks run in mandala.js (a port of the app's MandalaLogo).
   The SVG has wide padding around the petals, so negative margins trim the gap;
   the canvas overhangs the logo so sparks can drift past the petal tips. */
.hero-logo { position: relative; width: 240px; height: 240px; margin: -16px auto 0; animation: breathe 6s ease-in-out infinite; }
.hero-logo img { display: block; width: 100%; height: 100%; }
.hero-logo canvas { position: absolute; inset: -20%; width: 140%; height: 140%; pointer-events: none; }
@keyframes breathe { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}
/* A status chip, not a button: nothing to tap until the store listings exist. */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(165, 0, 159, 0.32);
  border-radius: 999px;
  background: #F7DDF5;
  color: #A5009F;
  font-size: 0.9rem;
  font-weight: 600;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid .card { margin-bottom: 0; }

.site {
  border-top: 1px solid rgba(20, 20, 58, 0.12);
  padding-top: 14px;
  padding-bottom: 20px;
  font-size: 0.78rem;
  text-align: center;
}
.site p { margin: 0; }
