/* moremetal.app: dark stage, flame accent; system fonts only (no third-party requests). */
:root {
  --bg: #0d0a09; --surface: #17120f; --raised: #211a15; --fg: #f5ede6; --muted: #a8998d; --line: #2e241d;
  --flame: #ff6b00; --gold: #ffd140; --blood: #c71f0a;
  --display: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--flame); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 720px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.wordmark { font: 900 20px/1 var(--display); letter-spacing: -0.02em;
  background: linear-gradient(var(--gold), var(--flame) 55%, var(--blood)); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav { display: flex; gap: 20px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--fg); }

.doc { padding-block: 48px 72px; }
.doc h1 { font: 900 clamp(32px, 5vw, 44px)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font: 800 21px/1.3 var(--body); margin: 36px 0 8px; }
.doc p, .doc li { color: #ddd2c9; }
.doc ul { padding-left: 22px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--flame); border-radius: 10px; padding: 16px 18px; margin: 24px 0; }
.product-head { display: flex; align-items: center; gap: 20px; margin: 0 0 24px; }
.product-head img { width: 96px; height: 96px; flex: none; border-radius: 22px; }
.product-head > div { min-width: 0; }
.product-head .meta { margin: 0; }
.doc .fine { color: var(--muted); font-size: 14px; margin-top: 36px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p, details ol, details ul { margin: 10px 0 0; }
code { font: 15px var(--display); background: var(--raised); padding: 1px 6px; border-radius: 5px; }

footer.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.bottom .wrap { padding-block: 28px 40px; display: grid; gap: 10px; }
footer.bottom nav { flex-wrap: wrap; }
footer.bottom p { margin: 0; }

/* Home: placeholder with the animated logo. */
body.home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px max(16px, env(safe-area-inset-left)); }
.logo { width: min(260px, 64vw); height: auto; aspect-ratio: 1; border-radius: 22%; image-rendering: pixelated; box-shadow: 0 30px 90px -20px rgba(255, 107, 0, 0.45); }
.placeholder .wordmark { font-size: clamp(40px, 11vw, 64px); margin: 32px 0 12px; line-height: 1.05; }
.tagline { color: #d9cdc2; margin: 0 0 20px; max-width: 32ch; text-shadow: 0 1px 2px #000, 0 0 10px rgba(0, 0, 0, 0.7); }

.placeholder .wordmark { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.6)); }
.nowrap { white-space: nowrap; }
.launch { font: 900 clamp(22px, 6vw, 34px)/1.15 var(--display); letter-spacing: -0.01em; color: var(--gold); margin: 6px 0 22px;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 107, 0, 0.55); }
.store { display: inline-block; border-radius: 12px; }
.store img { width: 180px; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.8)); }

/* Home background: the app's thank-you letter. Black, fire in the bottom half with a soft top
   edge (fire.js), embers rising through the page. The gradient is the still fallback without WebGL. */
body.home { background: #000; position: relative; overflow-x: hidden; }
.fire, .embers { position: fixed; left: 0; width: 100%; pointer-events: none; z-index: 0; display: block; }
.fire { bottom: 0; height: 50vh; height: 50lvh;
  background: linear-gradient(to top, #fff3c9 0%, #ffbf26 12%, #ff5a00 30%, #8c0800 55%, #000 85%);
  -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
.fire.live { background: #000; }
.embers { top: 0; height: 100vh; height: 100lvh; }
body.home main, body.home footer.bottom { position: relative; z-index: 1; }
body.home footer.bottom { text-align: center; padding: 24px 16px 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); display: grid; gap: 8px; justify-items: center;
  border-top: 0; color: #e6d9ce; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72) 40%); text-shadow: 0 1px 2px #000; }
body.home footer.bottom nav a { color: #f5ede6; }
@media (max-width: 520px) { header.top nav { gap: 14px; } }

/* Home: feature list below the hero. Dark cards so the text reads over the fire. */
body.home .placeholder { min-height: 100vh; min-height: 100svh; }
.features { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right)) 56px max(16px, env(safe-area-inset-left)); text-align: center; }
.features-title { font: 900 clamp(26px, 6vw, 36px)/1.15 var(--display); letter-spacing: -0.01em; color: var(--gold); margin: 0 0 8px;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 107, 0, 0.55); }
.features-lead { color: #d9cdc2; margin: 0 auto 28px; max-width: 48ch; text-shadow: 0 1px 2px #000, 0 0 10px rgba(0, 0, 0, 0.7); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: left;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature-list li { background: rgba(23, 18, 15, 0.88); border: 1px solid var(--line); border-top: 3px solid var(--flame); border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.9); }
.feature-list h3 { font: 800 18px/1.3 var(--body); margin: 0 0 6px; color: var(--fg); }
.feature-list .partner-logo { display: inline-block; margin-bottom: 10px; }
.feature-list .partner-logo img { display: block; height: 28px; width: auto; max-width: 100%; }
.feature-list p a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.feature-list p { margin: 0; color: #ddd2c9; font-size: 16px; line-height: 1.5; overflow-wrap: break-word; }
