/* Night Ridge: the app's own night palette. Mist text on deep ridge blue, one rear-light red accent. */
:root {
  --sky-top: #050b14;
  --sky: #0c1626;
  --panel: #131d29;
  --panel-2: #1c2836;
  --line: #22303f;
  --text: #edf2f7;
  --soft: #b4c2d1;
  --muted: #8c9bac;
  --red: #e2262f;
  --moon: #f4efd9;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--sky-top) 0, var(--sky) 640px, #0a1119 100%);
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0; color: var(--soft); }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.app-header { position: sticky; top: 0; z-index: 20; background: rgba(5, 11, 20, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav { display: flex; gap: 20px; font-size: 14px; font-weight: 650; color: var(--muted); }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero: the moonlit range, as in the app header. */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; }
.hero .moon { position: absolute; right: 18%; top: 64px; width: 120px; height: 120px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 120px 40px rgba(244, 239, 217, .14); }
.hero-copy { position: relative; z-index: 2; max-width: 560px; padding-bottom: 40px; }
.tagline { color: var(--soft); font-weight: 650; margin-bottom: 10px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(44px, 7vw, 76px); margin-bottom: 18px; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
h3 { font-size: 19px; margin-bottom: 6px; }
.lead { font-size: 18px; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 16px; font-weight: 750; text-decoration: none; }
.button.primary { background: var(--red); color: #fff; }
.button.secondary { border: 1px solid var(--line); background: var(--panel); }
.ridge { position: relative; z-index: 1; display: block; width: 100%; height: 180px; margin-top: -40px; margin-bottom: -60px; }

/* Framed store screenshots: three per row on wide screens, a swipeable strip on phones. */
.gallery { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 8px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); }
.button.is-static { cursor: default; }

.section { padding: 72px 0; }
.features { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.card.wide { grid-row: span 2; }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--soft); }
.card li { margin: 4px 0; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

.legal-page { padding: 48px 0 80px; }
.legal-card { max-width: 820px; }
.legal-card h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.legal-card h2 { font-size: 24px; margin: 36px 0 10px; }
.legal-card p, .legal-card li { color: var(--soft); }
.legal-card p + p { margin-top: 12px; }
.legal-card ul { padding-left: 22px; }
.legal-card a { color: var(--text); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.summary { margin: 24px 0; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--text); }
details p { margin-top: 8px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { text-decoration: none; }

@media (max-width: 760px) {
  .nav { gap: 14px; font-size: 13px; }
  .nav .hide-sm { display: none; }
  .hero .moon { width: 72px; height: 72px; right: 10%; top: 40px; }
  .gallery { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; }
  .gallery img { flex: 0 0 72%; width: 72%; min-width: 0; aspect-ratio: 9 / 16; scroll-snap-align: center; }
  .features { grid-template-columns: 1fr; }
  .card.wide { grid-row: auto; }
}
@media (max-width: 420px) {
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .nav { gap: 11px; font-size: 12.5px; }
}
