/* StemDesk — stemdesk.ai · brand system mirrored from the app (index.html TOKENS) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url('assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
}

:root {
  /* app tokens, verbatim */
  --bg: #2D2D2D;
  --bg2: #333333;
  --surface: #333333;
  --surface2: #3D3D3D;
  --surface-bar: #252525;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.12);
  --text: #EAEAEA;
  --text2: #AAAAAA;
  --text-cream: #E8D5B8;
  --accent: #D4853A;
  --accent-hover: #E8A040;
  --accent-dim: rgba(212,133,58,.15);
  --accent-dim2: rgba(212,133,58,.08);
  --cyan: #40C8E0;
  --green: #3DBE7A;
  --on-cta: #1a1a1a;
  --radius: 6px;
  --radius-lg: 10px;
  --font-ui: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Helvetica', 'Arial', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-ui); line-height: 1.6; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .logo, .price, .tier { font-family: var(--font-display); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(37,37,37,0.94);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.12rem; letter-spacing: 0.14em; color: var(--text); }
.logo img { height: 26px; width: 26px; }
.logo b { color: var(--accent); font-weight: 600; }
nav a { color: var(--text2); margin-left: 22px; font-size: 0.95rem; }
nav a:hover { color: var(--text); text-decoration: none; }

.hero {
  padding: 92px 0 68px; text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(212,133,58,0.14) 0%, rgba(45,45,45,0) 60%),
    var(--surface-bar);
  border-bottom: 1px solid var(--border);
}
.hero img.mark { height: 96px; width: 96px; border-radius: 18px; margin-bottom: 26px; box-shadow: 0 12px 48px rgba(0,0,0,0.45); }
.hero h1 { font-size: 3rem; line-height: 1.12; letter-spacing: -0.01em; font-weight: 600; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.sub { color: var(--text2); font-size: 1.18rem; max-width: 700px; margin: 20px auto 0; }
.hero .cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; border: 1px solid var(--border2);
  color: var(--text); background: var(--surface2); font-family: var(--font-ui);
  transition: 150ms ease;
}
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-cta); }
.btn.primary:hover { background: var(--accent-hover); color: var(--on-cta); }
.hero .note { margin-top: 16px; color: var(--text2); font-size: 0.85rem; font-family: var(--font-mono); }

section { padding: 68px 0; border-top: 1px solid var(--border); }
section.alt { background: var(--bg2); }
section h2 { font-size: 1.75rem; margin-bottom: 8px; font-weight: 600; }
section h2::before { content: "— "; color: var(--accent); }
section p.lead { color: var(--text2); max-width: 740px; margin-bottom: 32px; }

.shot { margin: 8px 0 26px; border: 1px solid var(--border2); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 18px 60px rgba(0,0,0,0.5); background: var(--surface-bar); }
.shot img { display: block; width: 100%; height: auto; }
.shot-caption { text-align: center; color: var(--text2); font-size: 0.85rem; margin: -14px 0 26px; font-family: var(--font-mono); }
.shot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 8px 0 10px; }

.grid { display: grid; gap: 18px; }
.grid.features { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--accent); font-weight: 600; }
.card p { color: var(--text2); font-size: 0.95rem; }

.plug-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 24px; }
.plug-gallery figure {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin: 0; transition: 150ms ease;
}
.plug-gallery figure:hover { border-color: var(--accent); transform: translateY(-2px); }
.plug-gallery img { display: block; width: 100%; height: auto; background: #1a1a1a; }
.plug-gallery figcaption {
  padding: 12px 16px 14px; font-size: 0.88rem; color: var(--text);
  border-top: 1px solid var(--border);
}
.plug-gallery figcaption b { font-family: var(--font-mono); display: block; margin-bottom: 6px; }
.plug-gallery figcaption p { color: var(--text2); font-size: 0.86rem; line-height: 1.5; margin: 0; }
.steps .card h3 { color: var(--text-cream); }
.steps .card h3::first-letter { color: var(--accent); }
.plug-gallery figure.free figcaption::after {
  content: "FREE"; color: var(--green); font-size: 0.68rem; font-weight: 700; float: right;
  margin-top: 3px; letter-spacing: 0.06em;
}

table.daw { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.95rem; }
table.daw th, table.daw td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.daw th { color: var(--text2); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; font-family: var(--font-mono); }
.tag.tested { background: rgba(61,190,122,0.13); color: var(--green); }
.tag.expected { background: rgba(64,200,224,0.10); color: var(--cyan); }
.tag.roadmap { background: rgba(170,170,170,0.12); color: var(--text2); }

.grid.pricing { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card .tier { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text2); }
.price-card .price { font-size: 2.3rem; font-weight: 600; margin: 6px 0 14px; color: var(--text-cream); }
.price-card .price small { font-size: 0.85rem; color: var(--text2); font-weight: 400; font-family: var(--font-ui); }
.price-card ul { list-style: none; margin: 0 0 22px; }
.price-card li { padding: 6px 0; color: var(--text2); font-size: 0.93rem; }
.price-card li::before { content: "✓  "; color: var(--green); }
.price-card .btn { margin-top: auto; text-align: center; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-dim), 0 14px 40px rgba(0,0,0,0.35); }

.sysreq { color: var(--text2); font-size: 0.9rem; margin-top: 18px; }

footer.site { border-top: 1px solid var(--border); background: var(--surface-bar); padding: 36px 0; color: var(--text2); font-size: 0.88rem; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--text2); margin-right: 18px; }
footer.site a:hover { color: var(--text); }

/* legal pages */
.legal-body { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-body h1 { font-size: 1.8rem; margin-bottom: 4px; }
.legal-body h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.legal-body h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal-body p, .legal-body li { color: var(--text2); font-size: 0.95rem; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin: 10px 0; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.legal-body th, .legal-body td { border: 1px solid var(--border2); padding: 8px 10px; font-size: 0.9rem; color: var(--text2); text-align: left; }
.legal-body strong { color: var(--text); }
.backlink { display: inline-block; margin-bottom: 24px; color: var(--accent-hover); }

/* about page */
.bio-row { display: flex; gap: 36px; align-items: flex-start; flex-wrap: wrap; }
.portrait {
  width: 260px; border-radius: var(--radius-lg); border: 1px solid var(--border2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
.book-row {
  display: flex; gap: 36px; align-items: center; flex-wrap: wrap; margin-top: 56px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px;
}
.bookcover {
  width: 220px; border-radius: 4px; border: 1px solid var(--border2);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5); display: block;
}
.book-row > div { flex: 1; min-width: 280px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 2.15rem; }
  header.site nav { display: none; }
}

/* ── Light theme — tokens mirrored VERBATIM from the app's [data-theme="light"] ── */
[data-theme="light"] {
  --bg: #EDF1F7;
  --bg2: #FFFFFF;
  --surface: #FFFFFF;
  --surface2: #F0F4FA;
  --surface-bar: #FFFFFF;
  --border: #D1DCE8;
  --border2: #BFD0E0;
  --text: #2a2a2a;
  --text2: #555555;
  --text-cream: #7A4E1E;
  --accent: #C07830;
  --accent-hover: #D4853A;
  --accent-dim: rgba(192,120,48,.15);
  --accent-dim2: rgba(192,120,48,.08);
  color-scheme: light;
}
[data-theme="light"] header.site { background: rgba(255,255,255,0.92); }
[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(212,133,58,0.12) 0%, rgba(237,241,247,0) 60%),
    var(--surface2);
}
[data-theme="light"] a { color: var(--accent); }
[data-theme="light"] .shot { box-shadow: 0 14px 44px rgba(40,60,90,0.18); background: var(--surface2); }
[data-theme="light"] .portrait, [data-theme="light"] .bookcover { box-shadow: 0 12px 36px rgba(40,60,90,0.22); }
[data-theme="light"] .plug-gallery img { background: #E6EAF2; }
[data-theme="light"] footer.site { background: var(--surface2); }

.theme-toggle {
  background: none; border: 1px solid var(--border2); border-radius: 999px;
  color: var(--text2); width: 34px; height: 34px; margin-left: 18px;
  cursor: pointer; font-size: 0.95rem; line-height: 1; transition: 150ms ease;
}
.theme-toggle:hover { color: var(--accent-hover); border-color: var(--accent); }
.theme-toggle::before { content: "☾"; }
[data-theme="light"] .theme-toggle::before { content: "☀"; }
