/* Pyrlune critical CSS v5
 *
 * Pre-paint styling so the first paint is the branded dark theme (no
 * white/unstyled flash). VERSIONED filename: public/ files are unhashed, so a
 * content change must bump the name to defeat stale CDN/proxy caches.
 *
 * v5 changes: the pre-paint BOOT SPLASH (spinner + orbiting arc) is GONE. The
 * homepage now ships the real landing content in the HTML (see #static-landing
 * in index.html) so crawlers that stall on JS rendering still get the landing
 * page on the homepage URL, and users get instant content instead of a loader.
 */

html,
body {
  margin: 0;
  padding: 0;
  background: #050b1f;
  color: #c2d0ea;
  min-height: 100%;
}

#root {
  min-height: 100vh;
}

/* ── Static landing (homepage HTML content, removed once React mounts) ───── */
#static-landing {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(19, 97, 238, 0.22), transparent 65%),
    #050b1f;
  color: #c2d0ea;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

#static-landing .sl-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

#static-landing .sl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

#static-landing .sl-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(48, 146, 250, 0.5);
}

#static-landing .sl-wordmark {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: #e6eefb;
}

#static-landing h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin: 0 0 16px;
}

#static-landing .sl-lede {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

#static-landing .sl-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 44px;
}

#static-landing .sl-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: #1361ee;
  border: 1px solid rgba(155, 220, 252, 0.5);
}

#static-landing .sl-cta a.sl-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dbe6f7;
}

#static-landing .sl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 40px;
}

#static-landing .sl-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
}

#static-landing .sl-card h2 {
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 8px;
}

#static-landing .sl-card p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

#static-landing h2.sl-h2 {
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 12px;
}

#static-landing ul.sl-links {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

#static-landing ul.sl-links a {
  color: #8fc0ff;
  text-decoration: none;
  font-weight: 700;
}

#static-landing .sl-faq h3 {
  color: #fff;
  font-size: 1rem;
  margin: 18px 0 6px;
}

#static-landing .sl-faq p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Once React has mounted it removes #static-landing entirely; this guard keeps
 * it from painting over the app if removal ever races a slow frame. */
body.app-mounted #static-landing {
  display: none;
}

/* Static footer: visible legal/support links (crawler-verifiable). */
#static-landing .sl-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

#static-landing .sl-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-bottom: 10px;
}

#static-landing .sl-footer a {
  color: #8fc0ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

#static-landing .sl-footer .sl-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: #7f90b0;
}

/* Prerendered legal pages injected by the backend/routes render inside the same
 * wrapper - keep their prose readable without extra styling work. */
#static-landing .sl-legal h2 {
  font-size: 1.0625rem;
  color: #fff;
  margin: 24px 0 8px;
}

#static-landing .sl-legal p,
#static-landing .sl-legal li {
  font-size: 0.95rem;
  line-height: 1.65;
}

#static-landing .sl-legal a {
  color: #8fc0ff;
}
