/* digijam.app: one stylesheet for every page. The palette matches the app (src/theme.rs). No web
   fonts, scripts or trackers: the pages load nothing from anywhere else. */
:root {
  --bg: #07080d;
  --surface: #12141d;
  --raised: #1e212e;
  --border: #2c3042;
  --text: #f5f7fa;
  --dim: #c4c9d6;
  --faint: #9ea4b4;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --pink: #f472b6;
  --amber: #fbbf24;
  --brand: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--pink));
  --radius: 16px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
}
a { color: var(--cyan); }
a:hover { color: var(--text); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header and footer */
header.top { border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.brand .mark { height: 34px; width: auto; }
.brand .wordmark { height: 24px; width: auto; }
.word span { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.links { display: flex; gap: 20px; font-size: 15px; }
nav.links a { color: var(--dim); text-decoration: none; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--text); }
footer { border-top: 1px solid var(--border); margin-top: 72px; padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--dim); }

/* Home */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 18px; text-wrap: balance; }
.hero p { font-size: 20px; color: var(--dim); margin: 0 0 28px; max-width: 34em; }
.hero .art { justify-self: center; width: min(240px, 60vw); filter: drop-shadow(0 30px 60px rgba(34, 211, 238, 0.18)); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--text); color: var(--bg);
}
.button:hover { background: var(--cyan); color: var(--bg); }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.button.ghost:hover { border-color: var(--cyan); color: var(--text); }
.note { font-size: 14px; color: var(--faint); }
/* The launch line under the hero's buttons: small and faint like a note (the hero's own
   paragraph style is big), with clear room below the buttons. */
.hero p.launch { font-size: 15px; color: var(--faint); margin: 16px 0 0; }
.nowrap { white-space: nowrap; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shots figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.shots figure.wide { grid-column: 1 / -1; }
.shots img { display: block; width: 100%; height: auto; }
.shots a:hover img { opacity: 0.92; }
.shots figcaption { padding: 12px 16px; color: var(--dim); font-size: 15px; }
.shots-note { margin: 16px 0 0; }

section.band { padding: 40px 0; }
section.band h2 { font-size: 30px; letter-spacing: -0.5px; margin: 0 0 8px; }
section.band > .wrap > p.sub { color: var(--dim); margin: 0 0 28px; max-width: 40em; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .icon { font-size: 26px; line-height: 1; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--dim); font-size: 16px; }

.gear { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gear div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.gear b { display: block; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-top: 6px; }
.tag.tested { background: rgba(74, 222, 128, 0.14); color: #4ade80; }
.tag.mapped { background: rgba(251, 191, 36, 0.14); color: var(--amber); }

/* Text pages (privacy, support) */
article.doc { max-width: 760px; padding: 48px 0 0; }
article.doc h1 { font-size: 40px; letter-spacing: -1px; margin: 0 0 6px; }
article.doc .meta { color: var(--faint); font-size: 14px; margin: 0 0 32px; }
article.doc h2 { font-size: 22px; margin: 36px 0 8px; }
article.doc h3 { font-size: 18px; margin: 24px 0 6px; }
article.doc p, article.doc li { color: var(--dim); }
article.doc strong { color: var(--text); }
article.doc code { background: var(--raised); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--cyan); border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--text); }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }

@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr; }
  .hero .launch .sep { display: none; }
  .hero .launch .nowrap { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: left; }
  .hero .art { order: -1; width: 160px; justify-self: start; }
  nav.links { gap: 14px; }
}
