:root {
  --bg: #0b1220; --panel: #151b2e; --line: #262d47; --text: #e7eaf3; --dim: #9aa3b8;
  --accent: #7c6cff; --accent-2: #4c3fd9; --ok: #4ade80;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f7f7fb; --panel: #ffffff; --line: #e3e5ef; --text: #161a2b; --dim: #5b6378; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
main, header, footer { max-width: 920px; margin: 0 auto; padding: 0 20px; }
header { display: flex; align-items: center; gap: 12px; padding-top: 22px; }
header a.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 19px; }
header img { width: 36px; height: 36px; border-radius: 9px; }
header nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
header nav a { color: var(--dim); text-decoration: none; }
.hero { text-align: center; padding: 56px 0 28px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 18px 48px rgba(76, 63, 217, .35); }
.hero h1 { font-size: clamp(32px, 6vw, 50px); line-height: 1.1; margin: 22px 0 10px; letter-spacing: -.02em; }
.hero p { color: var(--dim); font-size: 19px; max-width: 620px; margin: 0 auto; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 8px; }
.button { display: inline-block; padding: 13px 22px; border-radius: 12px; background: var(--accent-2); color: #fff; text-decoration: none; font-weight: 600; }
.button.soft { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.note { color: var(--dim); font-size: 14px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 36px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: -.01em; }
ol.steps { padding-left: 22px; }
.lead { color: var(--dim); font-size: 18px; margin-top: 0; }
.shot { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); margin: 18px 0; }
h2 .inline-icon { width: 34px; height: 34px; border-radius: 9px; vertical-align: -6px; margin-right: 10px; }
ol.steps li { margin: 8px 0; }
.legal h1 { font-size: 34px; margin: 36px 0 4px; }
.legal .updated { color: var(--dim); margin-top: 0; }
.legal h2 { font-size: 21px; margin-top: 30px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
footer { color: var(--dim); font-size: 14px; padding: 40px 20px 50px; border-top: 1px solid var(--line); margin-top: 50px; }
footer a { color: var(--dim); }

/* Narrow screens: the menu drops below the name instead of squeezing it */
header { flex-wrap: wrap; row-gap: 6px; }
header a.brand, header nav a { white-space: nowrap; }
@media (max-width: 520px) { header nav { margin-left: 0; width: 100%; } }

/* A card that links to an app's page */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 8px 0 36px; }
a.card.app { display: flex; gap: 16px; align-items: center; color: var(--text); text-decoration: none; }
a.card.app:hover { border-color: var(--accent); }
a.card.app img { width: 64px; height: 64px; border-radius: 15px; flex: none; }

/* Studio pages: Simit Studio colours (gold, cream, brown) */
html.studio { --bg: #1b140f; --panel: #261c15; --line: #3b2d22; --text: #fbf3e4; --dim: #c9b8a3; --accent: #e3a95e; --accent-2: #c98a3d; }
@media (prefers-color-scheme: light) {
  html.studio { --bg: #fbf3e4; --panel: #fffaf2; --line: #ecdcc4; --text: #3b2a1e; --dim: #6f5c4b; --accent: #8f5a1c; }
}
.studio .button { color: #2b1e14; }
.studio header a.brand { font-size: 21px; letter-spacing: -.01em; }
.studio .hero { padding-top: 72px; }
