/* Public pages (home landing, /glitch-hunt-bot, /merchant-alerts, /faq). Loaded after styles.css, so the
 * tokens, fonts, buttons and the night sky are the dashboard's own. Static HTML on purpose: AI crawlers
 * don't run JavaScript, so everything a page says must be in its HTML. */

.site { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 16px var(--space-2xl); }
.site-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) 0; flex-wrap: wrap; }
.site-nav { display: flex; gap: var(--space-xs) var(--space-md); flex-wrap: wrap; font-size: var(--text-sm); }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--gold); }

.site h1 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); margin: var(--space-xl) 0 var(--space-md); max-width: 20ch; }
.site h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin: var(--space-2xl) 0 var(--space-md); }
.site h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); margin: 0 0 var(--space-xs); }
.site p, .site li { color: var(--ink-2); max-width: 70ch; }
.site main a:not(.btn) { color: var(--gold); }
.site .lead { font-size: var(--text-lg); }
.site .cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; margin: var(--space-lg) 0 var(--space-xs); }
.site .cta .btn { min-height: 48px; padding: 0 22px; }
.site .cta-note { font-size: var(--text-sm); color: var(--muted); margin: 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-sm); margin: var(--space-xl) 0 var(--space-xs); padding: 0; list-style: none; }
.facts li { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--space-md); max-width: none; }
.facts strong { display: block; font-family: var(--font-display); font-size: var(--text-2xl); color: var(--ink); line-height: 1.15; }
.facts-note { font-size: var(--text-xs); color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }
.card { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--space-lg); box-shadow: var(--shadow); }
.card img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; display: block; margin-bottom: var(--space-sm); }
.card p { margin: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--space-sm); }
.steps li { counter-increment: step; position: relative; padding: var(--space-md) var(--space-md) var(--space-md) 56px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); max-width: 760px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: var(--text-sm); }

.faq details { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--panel); padding: var(--space-md) var(--space-lg); margin-bottom: var(--space-sm); max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details p, .faq details ul { margin: var(--space-sm) 0 0; }

.biomes { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding: 0; list-style: none; }
.biomes li { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: var(--text-sm); color: var(--ink); }

.site code { font-family: var(--font-code); font-size: 0.92em; background: rgb(255 255 255 / 0.06); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.site-foot-wide { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--muted); }
.site-foot-wide a { color: var(--ink-2); }

/* Home: the login card is the hero, so it no longer fills the screen on its own. */
body:has(#site) .login { min-height: auto; padding-bottom: 0; }
#site[hidden] { display: none; }
