/* Demo site styles. Not part of the plugin. */
:root {
  --bg: #fbfcfd;
  --ink: #101418;
  --muted: #5b6675;
  --line: #e2e6ec;
  --soft: #f3f6f8;
  --accent: #1f7a5a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-header .bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand .mark {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent); position: relative; flex: none;
}
.brand .mark::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 10px; height: 12px;
  border: 2px solid #fff; border-top: 0; border-radius: 0 0 6px 6px;
}
.site-header nav { display: flex; gap: 18px; font-size: 14px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

main { max-width: 1080px; margin: 0 auto; padding: 44px 24px 120px; }

.hero h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 22ch;
}

.hero p { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 0 24px; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 9px; font-weight: 600; font-size: 14px;
  text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: #fff; cursor: pointer;
  font-family: inherit;
}
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .panels { grid-template-columns: 1fr; } }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.panel h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 14px; }

.state { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill {
  font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--soft); color: var(--muted); border: 1px solid var(--line);
}
.pill.on { background: #e8f4ef; color: #145c43; border-color: #bfe3d4; }

.mono { font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #344054; white-space: pre-wrap; }

.log { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.log li { padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.log li:last-child { border-bottom: 0; }
.log li.ran { color: var(--ink); }
.log .tag { font: 11.5px/1 ui-monospace, monospace; padding: 2px 6px; border-radius: 5px; background: var(--soft); margin-right: 8px; }

.builder { margin-top: 26px; }
.builder .controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field select {
  width: 100%; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 14px;
}
pre.snippet {
  background: #0e1116; color: #cfd6de; border-radius: 12px; padding: 16px; overflow-x: auto;
  font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line); padding: 26px 24px 60px; color: var(--muted); font-size: 14px;
}
.site-footer .inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
