@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f4f1ec;
  --text: #1d1b19;
  --muted: #6b655e;
  --border: #e6e1da;
  --accent: #6d3fd8;
  --accent-ink: #ffffff;
  --accent-soft: #efe9fc;
  --accent-2: #d6409f;
  --ok: #1f7a4d;
  --ok-soft: #e4f4ea;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 27, 25, 0.04), 0 8px 24px rgba(29, 27, 25, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312;
    --surface: #1c1b19;
    --surface-2: #252320;
    --text: #f2efea;
    --muted: #a59e95;
    --border: #34312d;
    --accent: #a585f5;
    --accent-ink: #160f29;
    --accent-soft: #2a2140;
    --accent-2: #f07ac4;
    --ok: #5fd195;
    --ok-soft: #173426;
    --warn: #f0b252;
    --warn-soft: #3a2b12;
    --bad: #ff8a80;
    --bad-soft: #3d1c1a;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

header.top { padding: 18px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
}
.brand-mark i { display: block; width: 3px; border-radius: 2px; background: #fff; height: 8px; animation: brand-eq 1.6s ease-in-out infinite; }
.brand-mark i:nth-child(2) { height: 14px; animation-delay: -0.4s; }
.brand-mark i:nth-child(3) { height: 11px; animation-delay: -0.8s; }
.brand-mark i:nth-child(4) { height: 6px; animation-delay: -1.2s; }
@keyframes brand-eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.55); } }
@media (prefers-reduced-motion: reduce) { .brand-mark i { animation: none; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 20px; }
}

label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
input:not([type]), input[type="text"], input[type="url"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="datetime-local"], input[type="date"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; }

button, .btn {
  appearance: none; border: 0; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; display: inline-block;
}
button.secondary, .btn.secondary { background: var(--surface-2); color: var(--text); }
button:disabled { opacity: 0.6; cursor: default; }
button.full { width: 100%; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

.error { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.hidden { display: none !important; }

/* Demo progress steps */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 12px; padding: 10px 0; color: var(--muted); }
.steps li .icon { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: 13px; }
.steps li.active { color: var(--text); font-weight: 600; }
.steps li.active .icon { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps li.done { color: var(--text); }
.steps li.done .icon { border-color: var(--ok); background: var(--ok); color: var(--bg); }
.steps li.done .icon::after { content: "✓"; }
.steps .detail { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steps li.active .icon { animation: none; border-top-color: var(--accent); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips span { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 500; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table-scroll { overflow-x: auto; }

details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
pre.transcript { white-space: pre-wrap; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 12px; border-radius: 10px; margin: 8px 0 0; }
audio { width: 100%; margin-top: 8px; }
section { padding: 40px 0; }
footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
