/* Saphan Studio purchase portal. Mobile-first (320–430 px design target); tokens first, no raw values below. */
:root {
  color-scheme: light dark;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0e1a2f;
  --muted: #4a5a75;
  --line: #d5dcea;
  --accent: #1f5fd6;
  --accent-deep: #17489f;
  --on-accent: #ffffff;
  --focus: #b45309;
  --radius: 8px;
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 40px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --surface: #111c30;
    --text: #e8eefb;
    --muted: #9db0cf;
    --line: #27385a;
    --accent: #5b94ff;
    --accent-deep: #3b6fd1;
    --on-accent: #07101f;
    --focus: #fbbf24;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}
main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: var(--s4) var(--s3); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 var(--s3); }
h2 { font-size: 1.2rem; margin: var(--s4) 0 var(--s2); }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
code { font-family: var(--mono); font-size: 0.9em; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s3); background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text); text-decoration: none; font-weight: 700; }
.nav { display: flex; align-items: center; gap: var(--s3); }
.inline { display: inline; margin: 0; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; min-height: 44px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; }

.lead { color: var(--muted); font-size: 1.05rem; }
.note { color: var(--muted); font-size: 0.9rem; }
.hero { padding: var(--s4) 0; }

.plans { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.plan.live { border-color: var(--accent); border-width: 2px; }
.plan.soon { color: var(--muted); }
.plan h2 { margin-top: 0; }
.plan ul { padding-left: var(--s3); }
.price { font-size: 1.3rem; font-weight: 700; margin: 0 0 var(--s2); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s3); border-radius: var(--radius); border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { min-height: 44px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s3); max-width: 560px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: var(--s2); }
.facts div, .cards dl div { display: flex; flex-direction: column; margin-bottom: var(--s2); }
dt { color: var(--muted); font-size: 0.85rem; }
dd { margin: 0; }
dl { margin: 0; }

.cmd { display: flex; flex-direction: column; gap: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.cmd code { word-break: break-all; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: var(--s2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--s3); }
.foot { padding: var(--s3); text-align: center; color: var(--muted); font-size: 0.85rem; }

@media (min-width: 640px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .cmd { flex-direction: row; align-items: center; justify-content: space-between; }
  .stack { flex-direction: row; }
  .facts div, .cards dl div { flex-direction: row; gap: var(--s3); }
  dt { min-width: 8rem; }
}
