/* Plugin-area styling. Loaded only by pages under /plugins/.
 *
 * This file is SELF-CONTAINED on purpose. css/styles.css is orphaned
 * legacy that no page links, and the business pages style themselves
 * with 300-1000 line inline <style> blocks. Rather than edit those and
 * risk the lead-gen pages, the shared tokens / base / nav / button
 * rules below are copied verbatim from index.html's inline block, and
 * the plugin components follow.
 *
 * If the site is ever refactored to a real shared stylesheet, delete
 * everything above the "PLUGIN COMPONENTS" banner and link that file
 * instead. */

/* ---------- shared base, copied from index.html ---------- */

html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --bg: #080d14;
  --surface: #0f1720;
  --surface2: #131e2b;
  --primary: #6366f1;
  --primary-hover: #4f51d0;
  --accent: #22d3ee;
  --accent2: #818cf8;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-faint: #475569;
  --border: rgba(255,255,255,0.07);
  --glass: rgba(255,255,255,0.04);
  --glass-hover: rgba(255,255,255,0.07);
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(8, 13, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em; flex-shrink: 0;
}
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin-left: auto; flex-wrap: wrap;
}
.nav-links a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-links a[aria-current="page"] { color: var(--accent-gold, #f0b132); }
.cs-badge {
  display: inline-block;
  font-size: 9px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 20px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  color: #fff; margin-left: 6px;
  vertical-align: middle; line-height: 1.4;
}
.nav-cta { margin-left: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none; white-space: nowrap;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

/* Plugin pages carry no hamburger JS, so instead of hiding the links on
   small screens the way the business pages do, let the nav wrap. */
@media (max-width: 760px) {
  nav { position: static; height: auto; padding: 10px 0; }
  .nav-inner { flex-wrap: wrap; gap: 12px; }
  .nav-links { margin-left: 0; }
  .nav-cta { margin-left: 0; }
}

/* ---------- PLUGIN COMPONENTS ---------- */

.plugins-scope {
  --accent-gold: #f0b132;
  --accent-gold-dim: #c98a1e;
  --gold-wash: rgba(240, 177, 50, 0.09);
  --gold-line: rgba(240, 177, 50, 0.26);
}

/* Clear the fixed nav. On mobile the media query above makes nav static,
   so the padding is dropped there to avoid a large empty gap. */
main.container { padding-top: var(--nav-h); }
@media (max-width: 760px) { main.container { padding-top: 0; } }

.plug-hero { padding: 44px 0 40px; }
.plug-hero .eyebrow {
  color: var(--accent-gold);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.plug-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; margin: .4rem 0 0; }
.plug-hero p { color: var(--text-muted); max-width: 46rem; margin-top: .75rem; }

.plug-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  padding-bottom: 2rem;
}
.plug-card {
  display: block; padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  color: inherit; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.plug-card:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.plug-card .row { display: flex; align-items: center; gap: .7rem; }
.plug-card .ico {
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
}
.plug-card h2 { font-size: 1.05rem; margin: 0; }
.plug-card p { color: var(--text-muted); font-size: .92rem; margin: .7rem 0 0; }
.plug-card .go { color: var(--accent-gold); font-weight: 600; font-size: .9rem; margin-top: .8rem; }

.badge {
  display: inline-block; margin-top: .25rem;
  padding: .12rem .5rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600;
}
.badge-live   { color: #4ade80; background: rgba(74, 222, 128, .13); }
.badge-review { color: var(--accent-gold); background: rgba(240, 177, 50, .14); }

.plug-crumb { color: var(--text-faint); font-size: .85rem; padding-top: 1.5rem; }
.plug-crumb a { color: var(--text-faint); }
.plug-crumb a:hover { color: var(--text-muted); }
.plug-head { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0 1.75rem; }
.plug-head .ico {
  width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
}
.plug-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; letter-spacing: -.02em; }
.plug-head p { color: var(--text-muted); margin: .35rem 0 .5rem; }

.sec-label {
  font-size: .74rem; font-weight: 600; color: var(--text-faint);
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: .6rem;
}

.shots { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.shots img { width: 100%; border-radius: 10px; border: 1px solid var(--border); display: block; }
.shot-empty {
  min-height: 8.5rem; border-radius: 10px;
  border: 1px dashed rgba(240, 177, 50, .3);
  background: rgba(240, 177, 50, .03);
  display: flex; align-items: center; justify-content: center;
  color: #5d5647; font-size: .85rem;
}

.plug-cols { display: grid; gap: 1.75rem; grid-template-columns: 1.4fr 1fr; margin: 2rem 0; }
@media (max-width: 720px) { .plug-cols { grid-template-columns: 1fr; } }
.feat { list-style: none; padding: 0; margin: 0; color: var(--text-muted); }
.feat li { margin-bottom: .45rem; }
.feat li::before { content: "\25C6"; color: var(--accent-gold); margin-right: .55rem; }
.install {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .9rem 1rem .9rem 2.1rem;
  color: var(--text-muted); margin: 0;
}
.install li { margin-bottom: .3rem; }
.install strong { color: var(--text); }

.privacy-note {
  border-radius: var(--radius-sm); padding: .85rem 1rem; margin: 0 0 2rem;
  background: rgba(34, 211, 238, .05);
  border: 1px solid rgba(34, 211, 238, .2);
  color: #a5e9f5; font-size: .92rem;
}

.support {
  border-radius: var(--radius); padding: 1.35rem; margin: 0 0 4rem;
  background: linear-gradient(135deg, var(--gold-wash), rgba(240, 177, 50, .02));
  border: 1px solid var(--gold-line);
}
.support h2 { font-size: 1.15rem; margin: 0; }
.support p { color: var(--text-muted); font-size: .95rem; margin: .4rem 0 0; max-width: 40rem; }
.support .row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.support a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: .55rem 1rem; border-radius: var(--radius-sm); }
.btn-coffee  { background: var(--accent-gold); color: #1a1305; }
.btn-discord { background: rgba(88, 101, 242, .18); border: 1px solid rgba(88, 101, 242, .45); color: #a3b0ff; }
.btn-ghost   { border: 1px solid var(--border); color: var(--text-muted); }
