/* moonalytics.com - Night theme of the app (lib/theme/app_theme.dart). */
@font-face { font-family: "Playfair Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/playfair-500.woff") format("woff"); }
@font-face { font-family: "Gelasio"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/gelasio-400.woff") format("woff"); }
@font-face { font-family: "Gelasio"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/gelasio-500.woff") format("woff"); }

:root {
  --ink: #0E1230;
  --surface: #1A1F3D;
  --star: #E8E6F0;
  --accent: #8B7FD6;
  --accent-2: #B9A8E8;
  --line: rgba(185, 168, 232, 0.18);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--star);
  font: 400 17px/1.65 "Gelasio", Georgia, serif;
  /* A few fixed stars, drawn by the CSS itself: no image, no script. */
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(232, 230, 240, 0.9), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(232, 230, 240, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 9%, rgba(185, 168, 232, 0.9), transparent 60%),
    radial-gradient(1px 1px at 63% 38%, rgba(232, 230, 240, 0.6), transparent 60%),
    radial-gradient(2px 2px at 81% 14%, rgba(232, 230, 240, 0.9), transparent 60%),
    radial-gradient(1px 1px at 90% 61%, rgba(185, 168, 232, 0.8), transparent 60%),
    radial-gradient(1px 1px at 7% 88%, rgba(232, 230, 240, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 72% 86%, rgba(232, 230, 240, 0.7), transparent 60%),
    var(--ink);
  background-attachment: fixed;
}

a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--star); }

h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 7vw, 46px); }
h2 { font-size: 20px; }

.top, main, .foot { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--star); text-decoration: none; font-family: "Playfair Display", Georgia, serif; font-size: 20px; }
.brand img { border-radius: 8px; }
.langs { display: flex; gap: 12px; font-size: 14px; }
.langs a { text-decoration: none; color: var(--accent-2); }
.langs a[aria-current="true"] { color: var(--star); border-bottom: 1px solid var(--accent); }

.hero { text-align: center; padding: 36px 0 28px; }
.logo { border-radius: 22px; margin-bottom: 18px; }
.intro { color: var(--accent-2); max-width: 540px; margin: 0 auto 22px; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.store { display: inline-block; padding: 10px 18px; border-radius: 999px; font-size: 15px; text-decoration: none; border: 1px solid var(--accent); color: var(--accent-2); }
.store.cta, a.store { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.store.soon { opacity: 1; }

.features { list-style: none; padding: 0; margin: 12px 0 40px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--surface); border-radius: 16px; padding: 16px 18px; margin: 0 0 12px; }
.features .card { margin: 0; }
.card h2 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--accent-2); }

.doc { padding-top: 12px; padding-bottom: 40px; }
.doc h1 { font-size: clamp(28px, 6vw, 38px); margin-bottom: 18px; }
.doc .card p { color: var(--star); }
.faq { margin: 18px 0; }
details.card summary { cursor: pointer; font-weight: 500; }
details.card p { margin-top: 10px; }
.muted { color: var(--accent-2); font-size: 15px; }

/* iubenda direct embedding: keep their document readable on our dark page. */
.legal { overflow-wrap: break-word; hyphens: auto; }
/* background-COLOR only: the shorthand also wiped iubenda's icon images. */
.legal, .legal * { color: var(--star) !important; background-color: transparent !important; font-family: "Gelasio", Georgia, serif !important; }
/* iubenda's mobile layers (sticky "Summary" bar, table-of-contents dialog, summary
   cards) sit over the text: transparent, the text showed through (6 Oct 2026). */
.legal .table-of-content-btn-wrapper, .legal #table-of-content-wrapper,
.legal .summary__card, .legal [role="dialog"] { background-color: var(--ink) !important; }
.legal a { color: var(--accent-2) !important; }

.foot { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 32px; font-size: 14px; color: var(--accent-2); text-align: center; }
.foot nav { margin-bottom: 8px; }
.foot p { margin: 4px 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .langs { gap: 9px; }
}
