/*
Theme Name: Cove
Theme URI: https://cove.run
Author: Anchor Hosting
Author URI: https://anchor.host
Description: Marketing theme for Cove — the calmest way to run local WordPress. Ports the Cove landing page (hero, terminal demo, stack cards, cheatsheet, dashboard preview, FAQ) into a WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: cove
Tags: one-column, custom-menu, custom-logo, dark-mode
*/

/* ---------- Design tokens ---------- */
:root {
  /* Defaults = "Cove" theme (light, teal accent) */
  --bg:            #fbfaf7;
  --bg-elev:       #ffffff;
  --bg-sunk:       #f4f2ec;
  --bg-card:       #ffffff;
  --border:        #e8e4da;
  --border-soft:   #efece4;
  --border-strong: #d8d2c4;
  --text:          #1a1c1b;
  --text-soft:     #3a3d3a;
  --muted:         #6b6f6a;
  --dim:           #9a9d97;

  --accent:        oklch(62% 0.11 190);   /* cove teal */
  --accent-soft:   oklch(62% 0.11 190 / 0.10);
  --accent-ink:    oklch(35% 0.08 190);
  --accent-bright: oklch(72% 0.13 190);

  --warn:          oklch(70% 0.14 70);
  --ok:            oklch(60% 0.12 155);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --container:  1160px;
  --gutter:     24px;

  --font-sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif: 'Fraunces', 'Times New Roman', serif;

  --shadow-sm: 0 1px 2px rgba(20,28,30,0.04), 0 1px 1px rgba(20,28,30,0.03);
  --shadow:    0 8px 24px -12px rgba(20,28,30,0.10), 0 2px 6px -2px rgba(20,28,30,0.05);
  --shadow-lg: 0 24px 50px -24px rgba(20,28,30,0.18), 0 6px 16px -6px rgba(20,28,30,0.06);
}

/* Tweak: sunset accent */
:root[data-accent="sunset"] {
  --accent:        oklch(66% 0.15 45);
  --accent-soft:   oklch(66% 0.15 45 / 0.12);
  --accent-ink:    oklch(40% 0.10 45);
  --accent-bright: oklch(74% 0.16 45);
}

/* Tweak: dark theme */
:root[data-theme="dark"] {
  --bg:            #0f1210;
  --bg-elev:       #161a17;
  --bg-sunk:       #0b0e0c;
  --bg-card:       #181c19;
  --border:        #252925;
  --border-soft:   #1d211e;
  --border-strong: #363b36;
  --text:          #edeee9;
  --text-soft:     #c6c9c1;
  --muted:         #8a8e85;
  --dim:           #5d615a;

  --accent:        oklch(72% 0.12 190);
  --accent-soft:   oklch(72% 0.12 190 / 0.15);
  --accent-ink:    oklch(82% 0.10 190);
  --accent-bright: oklch(82% 0.13 190);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
  --shadow:    0 10px 30px -14px rgba(0,0,0,0.6), 0 2px 6px -2px rgba(0,0,0,0.35);
  --shadow-lg: 0 28px 60px -24px rgba(0,0,0,0.7), 0 6px 16px -6px rgba(0,0,0,0.4);
}
:root[data-theme="dark"][data-accent="sunset"] {
  --accent:        oklch(74% 0.15 45);
  --accent-soft:   oklch(74% 0.15 45 / 0.15);
  --accent-ink:    oklch(85% 0.12 45);
  --accent-bright: oklch(82% 0.16 45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  transition: background 200ms ease, color 200ms ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -0.025em; }
h3 { font-size: 1.0625rem; letter-spacing: -0.015em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand .mark {
  width: 34px; height: 34px;
  flex: none;
  display: inline-block;
}
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand .mark .disc    { fill: var(--mark-disc, oklch(96% 0.015 85)); }
.brand .mark .water   { fill: var(--mark-water, var(--accent)); }
.brand .mark .land    { fill: var(--mark-land, oklch(72% 0.10 150)); }
.brand .mark .horizon { stroke: var(--mark-horizon, var(--accent-ink)); fill: none; }
.brand .mark .wave    { stroke: var(--mark-wave, var(--accent-ink)); fill: none; }
.brand .mark .ring    { stroke: var(--mark-ring, var(--accent-ink)); fill: none; stroke-width: 3; }
:root[data-theme="dark"] .brand .mark {
  --mark-disc:    oklch(22% 0.01 85);
  --mark-land:    oklch(64% 0.09 150);
  --mark-ring:    color-mix(in oklab, var(--text) 72%, transparent);
  --mark-horizon: color-mix(in oklab, var(--text) 72%, transparent);
  --mark-wave:    color-mix(in oklab, var(--text) 65%, transparent);
}
:root[data-accent="sunset"] .brand .mark {
  --mark-land: oklch(72% 0.11 125);
}
:root[data-theme="dark"][data-accent="sunset"] .brand .mark {
  --mark-land: oklch(64% 0.10 125);
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 120ms, color 120ms;
}
.nav-links a:hover { color: var(--text); background: var(--bg-sunk); }
.nav-links .gh {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-soft);
  border: 1px solid var(--border);
  margin-left: 6px;
}
.nav-links .gh:hover { border-color: var(--border-strong); background: var(--bg-sunk); }
.nav-links .gh svg { width: 14px; height: 14px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: var(--bg-elev);
  margin-left: 6px;
  transition: border-color 120ms, background 120ms, color 120ms;
  position: relative;
  flex: none;
}
.theme-toggle:hover { border-color: var(--border-strong); background: var(--bg-sunk); color: var(--text); }
.theme-toggle svg { width: 15px; height: 15px; position: absolute; transition: opacity 200ms ease, transform 300ms ease; }
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(-40deg) scale(0.7); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(40deg) scale(0.7); }
@media (max-width: 680px) { .nav-links a:not(.gh) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 96px) 0 clamp(40px, 7vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: -40% -20% auto -20%;
  height: 600px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-soft), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero .inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok), transparent 75%);
}
.pill .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 8px;
  margin-left: 2px;
}

.hero h1 {
  max-width: 16ch; margin: 0 auto 20px;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) bottom / 100% 0.18em no-repeat;
  padding: 0 0.04em;
}
:root[data-theme="light"] .hero h1 em { color: oklch(48% 0.14 190); }
:root[data-theme="light"][data-accent="sunset"] .hero h1 em { color: oklch(52% 0.17 45); }
.hero .lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.18rem);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* Install block */
.install {
  display: inline-flex; align-items: stretch;
  max-width: 560px; width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.install .prompt {
  display: flex; align-items: center;
  padding: 0 4px 0 16px;
  color: var(--accent);
  user-select: none;
  font-weight: 600;
}
.install code {
  flex: 1;
  padding: 14px 10px 14px 4px;
  color: var(--text);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.install code::-webkit-scrollbar { display: none; }
.install .copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 16px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 120ms, background 120ms;
}
.install .copy-btn:hover { color: var(--text); background: var(--bg-sunk); }
.install .copy-btn.copied { color: var(--ok); }
.install .copy-btn svg { width: 13px; height: 13px; }

.hero .note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--dim);
  font-family: var(--font-mono);
}
.hero .note a { color: var(--muted); border-bottom: 1px solid var(--border); }
.hero .note a:hover { color: var(--text); border-bottom-color: var(--border-strong); }

/* ---------- Terminal demo ---------- */
.demo-wrap { padding: 16px 0 clamp(60px, 10vw, 100px); position: relative; z-index: 1; }

/* ---------- Agent prompt block ---------- */
.agent-wrap { padding: 0 0 clamp(60px, 10vw, 100px); position: relative; z-index: 1; }
.agent-card {
  max-width: 820px; margin: 0 auto;
  display: grid; gap: 14px;
  padding: 22px 22px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.agent-card .head {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.agent-card .head .dot {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.agent-card .head .dot svg { width: 12px; height: 12px; }
.agent-card .head .label { color: var(--text-soft); font-weight: 600; letter-spacing: 0.06em; }
.agent-card .head .sep { color: var(--border); }
.agent-card .head .hint { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 0.85rem; font-weight: 400; }
.agent-card .bubble {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  position: relative;
}
.agent-card .you {
  flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--text) 12%, transparent);
  color: var(--text);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.agent-card .msg {
  flex: 1; min-width: 0;
  font-size: 1.02rem; line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}
.agent-card .msg .q { color: var(--muted); }
.agent-card .msg a,
.agent-card .msg .link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--accent), transparent 60%);
  text-underline-offset: 3px;
}
.agent-card .copy-btn {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-soft);
  font-family: var(--font-mono); font-size: 0.78rem;
  background: var(--bg-elev);
  transition: color 120ms, background 120ms, border-color 120ms;
  align-self: flex-start;
  margin-top: 1px;
}
.agent-card .copy-btn:hover { color: var(--text); background: var(--bg-sunk); }
.agent-card .copy-btn.copied { color: var(--ok); border-color: color-mix(in oklab, var(--ok), transparent 60%); }
.agent-card .copy-btn svg { width: 13px; height: 13px; }
.agent-card .foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--muted);
  padding: 2px 4px;
}
.agent-card .foot .badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-soft);
  background: var(--bg-sunk);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}
@media (max-width: 640px) {
  .agent-card .bubble { flex-wrap: wrap; }
  .agent-card .copy-btn { width: 100%; justify-content: center; margin-top: 4px; }
}
.terminal {
  max-width: 820px; margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-sunk);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); opacity: 0.7; }
.terminal-bar .dot.r { background: #f06a5a; }
.terminal-bar .dot.y { background: #f0b84d; }
.terminal-bar .dot.g { background: #4dbb72; }
.terminal-bar .title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--dim);
}
.terminal-body {
  padding: 22px 26px;
  font-family: var(--font-mono);
  font-size: 0.855rem;
  line-height: 1.7;
  min-height: 300px;
  color: var(--text-soft);
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)),
    radial-gradient(ellipse 80% 40% at 50% 0%, var(--accent-soft), transparent 60%);
  background-blend-mode: normal;
}
.terminal-body .line { white-space: pre-wrap; min-height: 1.7em; }
.terminal-body .cmd { color: var(--text); }
.terminal-body .cmd::before { content: "$ "; color: var(--accent); font-weight: 600; }
.terminal-body .out { color: var(--muted); }
.terminal-body .ok  { color: var(--ok); }
.terminal-body .warn{ color: var(--warn); }
.terminal-body .dim { color: var(--dim); }
.terminal-body .url { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent), transparent 60%); text-underline-offset: 3px; }
.terminal-body .cursor {
  display: inline-block; width: 7px; height: 1em;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.05s steps(2, start) infinite;
  margin-left: 2px;
}
@keyframes blink { to { visibility: hidden; } }

/* ---------- Sections ---------- */
section.slab { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7;
}
.eyebrow::after {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7;
}
.section-head h2 { max-width: 22ch; margin: 0 auto; }
.section-head p { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: 1.0375rem; text-wrap: pretty; }

/* ---------- Tech stack ---------- */
.stack-slab {
  background: var(--bg-sunk);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1000px; margin: 0 auto;
}
@media (max-width: 760px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .stack-grid { grid-template-columns: 1fr; gap: 12px; }
  .stack-card { padding: 18px 18px 16px; }
}
.stack-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  transition: border-color 150ms, transform 150ms, box-shadow 150ms;
  position: relative;
  color: inherit;
  text-decoration: none;
  display: block;
}
.stack-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: inherit;
}
.stack-card::after {
  content: "";
  position: absolute;
  top: 20px; right: 20px;
  width: 14px; height: 14px;
  background: currentColor;
  color: var(--muted);
  opacity: 0;
  transition: opacity 150ms, transform 150ms;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M9 7h8v8'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7M9 7h8v8'/></svg>") center/contain no-repeat;
}
.stack-card:hover::after { opacity: 1; transform: translate(2px, -2px); }
.stack-card .logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-sunk);
  border: 1px solid var(--border-soft);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--accent-ink);
}
.stack-card .logo svg { width: 30px; height: 30px; display: block; fill: currentColor; }
.stack-card .logo svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stack-card h3 { margin-bottom: 4px; font-size: 1rem; }
.stack-card .role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}
.stack-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ---------- Cheatsheet ---------- */
.cheat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cheat .group { border-bottom: 1px solid var(--border-soft); }
.cheat .group:last-child { border-bottom: none; }
.cheat .group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 22px;
  background: var(--bg-sunk);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
}
.cheat .group-head .count {
  color: var(--dim);
  font-size: 0.7rem;
}
.cheat .row {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) 1.5fr;
  gap: 24px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}
.cheat .row:last-child { border-bottom: none; }
.cheat .row:hover { background: color-mix(in oklab, var(--accent-soft), transparent 50%); }
.cheat .row code {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.cheat .row code::-webkit-scrollbar { display: none; }
.cheat .row code .arg { color: var(--accent); }
.cheat .row code .flag { color: var(--muted); }
.cheat .row .desc { color: var(--muted); font-size: 0.915rem; line-height: 1.5; }
@media (max-width: 720px) {
  .cheat .row { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .cheat .group-head { padding: 11px 18px; }
}

/* ---------- Dashboard preview ---------- */
.dash-slab { background: var(--bg-sunk); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.dash-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  max-width: 1080px; margin: 0 auto;
}
@media (max-width: 860px) { .dash-layout { grid-template-columns: 1fr; gap: 32px; } }
.dash-copy h2 { margin-bottom: 14px; }
.dash-copy p { color: var(--muted); font-size: 1.0375rem; margin-bottom: 20px; text-wrap: pretty; }
.dash-copy .kvs {
  display: grid; gap: 10px; margin-top: 22px;
  font-size: 0.92rem;
}
.dash-copy .kvs div {
  display: flex; align-items: baseline; gap: 14px;
  color: var(--text-soft);
}
.dash-copy .kvs div::before {
  content: ""; flex: none; width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

/* Browser mock */
.browser {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser .chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-sunk);
}
.browser .chrome .dots { display: flex; gap: 6px; }
.browser .chrome .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong);
}
.browser .chrome .url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0;
}
.browser .chrome .url .lock { color: var(--ok); font-size: 10px; }
.browser .chrome .url .host { color: var(--text); }

.dash-body { padding: 22px 22px 24px; }
.dash-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.dash-head .title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 500;
}
.dash-head .actions { display: flex; gap: 6px; }
.dash-head .btn {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.76rem;
  color: var(--text-soft);
  background: var(--bg-elev);
}
.dash-head .btn.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.dash-sites { border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; }
.dash-site {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.85rem;
}
.dash-site:last-child { border-bottom: none; }
.dash-site .host { font-family: var(--font-mono); color: var(--text); }
.dash-site .host .host-accent { color: var(--accent); }
.dash-site .type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-sunk);
  color: var(--muted);
  border: 1px solid var(--border-soft);
}
.dash-site .type.wp { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
.dash-site .mini {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.dash-foot {
  margin-top: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
}
.dash-foot .ok { color: var(--ok); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px; margin: 0 auto;
  border-top: 1px solid var(--border-soft);
}
.faq details {
  border-bottom: 1px solid var(--border-soft);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--text);
  transition: color 120ms;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary .plus {
  flex: none;
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--muted);
  transition: transform 200ms, background 120ms;
  font-size: 14px;
  line-height: 1;
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.faq .answer {
  padding: 0 4px 22px;
  color: var(--muted);
  font-size: 0.965rem;
  line-height: 1.6;
  max-width: 65ch;
}
.faq .answer code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--bg-sunk);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 48px;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
.footer-brand { max-width: 280px; }
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 14px;
  line-height: 1.55;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--dim);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: color 120ms;
}
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--dim);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Tweaks panel ---------- */
#tweaks {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 100;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 260px;
  font-size: 0.85rem;
  display: none;
  overflow: hidden;
}
#tweaks.open { display: block; }
#tweaks header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-sunk);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}
#tweaks header .close { color: var(--dim); font-size: 16px; padding: 0 4px; line-height: 1; }
#tweaks .group { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
#tweaks .group:last-child { border-bottom: none; }
#tweaks label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
#tweaks .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#tweaks .opts button {
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.82rem;
  display: flex; align-items: center; gap: 8px;
  transition: border-color 120ms, background 120ms;
}
#tweaks .opts button:hover { border-color: var(--border-strong); }
#tweaks .opts button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
#tweaks .opts button .swatch {
  width: 12px; height: 12px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
}

/* utility */
.mono,
.stack-card p code,
.agent-card .foot code,
.faq .answer code,
.cheat .row .desc code,
.dash-copy code { font-family: var(--font-mono); font-size: 0.92em; color: var(--text-soft); background: transparent; padding: 0; }
.muted { color: var(--muted); }

/* WordPress admin bar adjustment — keep sticky nav below it */
html[lang] body.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  html[lang] body.admin-bar .nav { top: 46px; }
}
