/* Plugzilla — one small stylesheet, system fonts, no frameworks. */

:root {
  --bg: #111411;
  --bg-2: #171b17;
  --surface: #1d231d;
  --surface-2: #252c25;
  --border: #323b32;
  --text: #f3f6f1;
  --muted: #aab4a6;
  --lime: #b9f227;
  --lime-2: #d4ff5c;
  --green: #3dbb3d;
  --on-lime: #0e120e;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: var(--lime-2); }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 850; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--lime); color: var(--on-lime);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(17, 20, 17, .92);
  backdrop-filter: blur(8px);
}
@media (min-width: 720px) { .site-header { position: sticky; top: 0; z-index: 5; } }
[id] { scroll-margin-top: 84px; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; min-height: 68px; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.wordmark { font-weight: 900; font-style: italic; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--text); }
.wordmark span { color: var(--lime); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--lime); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 750; text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--lime);
  background: var(--lime); color: var(--on-lime); line-height: 1.2;
}
.btn:hover { background: var(--lime-2); border-color: var(--lime-2); color: var(--on-lime); }
.btn-ghost { background: transparent; color: var(--lime); }
.btn-ghost:hover { background: rgba(185, 242, 39, .1); color: var(--lime-2); }
.btn-sm { padding: 8px 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  display: inline-block; color: var(--lime); font-weight: 800; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Home hero */
.hero { padding: 32px 0 64px; background: radial-gradient(ellipse at 70% 0%, rgba(185, 242, 39, .10), transparent 60%); }
.hero-banner { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.hero-copy { margin-top: 40px; display: grid; gap: 8px 48px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 860px) { .hero-copy { grid-template-columns: 1.3fr 1fr; } }
.hero-copy h1 em { font-style: italic; color: var(--lime); }

/* Cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(185, 242, 39, .12); color: var(--lime); margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }

.plugin-card { display: flex; flex-direction: column; gap: 14px; border-color: #3f4f2a; background: linear-gradient(160deg, #222a1c, var(--surface) 55%); }
.plugin-card header { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.plugin-art { width: 160px; height: 160px; border-radius: 18px; border: 1px solid #4b6326; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); flex: none; }
.plugin-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;}
.plugin-card .btn-row { margin-top: auto; }
.plugin-card.soon { border-style: dashed; background: var(--bg-2); justify-content: center; }

.badge {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted);
}
.badge-lime { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.badge-warn { border-color: #6b5c1f; color: #f2d36b; background: rgba(242, 211, 107, .08); }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin: 0 0 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e120e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Product hero + folder mock */
.product-hero { padding: 56px 0 64px; background: radial-gradient(ellipse at 85% 10%, rgba(185, 242, 39, .12), transparent 55%); }
.product-hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .product-hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.product-hero .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.note { font-size: .92rem; color: var(--muted); margin-top: 14px; }

.mock {
  background: #f6f7f7; color: #1d2327; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  font-size: .85rem; line-height: 1.3;
}
.mock-bar { background: #1d2327; color: #f0f0f1; padding: 8px 14px; display: flex; gap: 6px; align-items: center; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #50575e; display: inline-block; }
.mock-bar span { margin-left: 8px; opacity: .8; }
.mock-body { display: grid; grid-template-columns: 38% 1fr; min-height: 260px; }
.mock-tree { border-right: 1px solid #dcdcde; background: #fff; padding: 12px 8px; }
.mock-tree ul { list-style: none; margin: 0; padding: 0 0 0 14px; }
.mock-tree > ul { padding-left: 0; }
.mock-tree li { padding: 5px 8px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-tree li li { padding-left: 4px; }
.mock-tree .on { background: #2271b1; color: #fff; }
.mock-tree .count { float: right; opacity: .6; }
.mock-grid { padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.mock-grid b { aspect-ratio: 1; border-radius: 3px; background: linear-gradient(135deg, #c3d9a8, #7fae5b); }
.mock-grid b:nth-child(3n+2) { background: linear-gradient(135deg, #a9c7de, #5b8fae); }
.mock-grid b:nth-child(4n) { background: linear-gradient(135deg, #e5d3a1, #c19b4a); }

/* Feature list */
.features { display: grid; gap: 20px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Switch section */
.switch { display: grid; gap: 32px; }
@media (min-width: 900px) { .switch { grid-template-columns: 1fr 1fr; align-items: start; } }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; background: var(--lime); color: var(--on-lime);
}
kbd, .ui { font-family: inherit; font-weight: 700; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-size: .92em; white-space: nowrap; }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-size: .95rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
td.yes { color: var(--lime); font-weight: 800; }
td.no { color: var(--muted); }
td.soon { color: #f2d36b; font-weight: 700; }

/* Pro */
.pro {
  border: 1px solid #4b6326; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(150deg, #1f2b14, #151a13 60%); padding: clamp(24px, 5vw, 48px);
  display: grid; gap: 32px;
}
@media (min-width: 900px) { .pro { grid-template-columns: 1.1fr 1fr; } }
.waitlist label { display: block; font-weight: 700; margin-bottom: 8px; }
.waitlist .field { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; color: var(--text); background: var(--bg);
  border: 2px solid var(--border); border-radius: 999px; padding: 11px 18px;
}
.waitlist input[type="email"]:focus { border-color: var(--lime); outline: none; box-shadow: 0 0 0 3px rgba(185, 242, 39, .35); }
.form-status { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.4rem; color: var(--lime); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 16px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--text); word-break: break-word; }

/* Plain content pages */
.page-head { padding: 56px 0 24px; }
.prose { padding-bottom: 72px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.callout {
  border: 1px solid #6b5c1f; background: rgba(242, 211, 107, .07); color: #f6e3a1;
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 28px;
}
.callout strong { color: #ffeeb5; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: var(--bg-2); font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.fine p { margin: 0 0 6px; }

/* Chat widget illustration (Chatbot page) */
.chat-mock {
  margin: 0; max-width: 380px; justify-self: center; width: 100%;
  background: #fff; color: #1d2327; border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); border: 1px solid var(--border);
  font-size: .9rem; line-height: 1.45;
}
.chat-mock-head { background: var(--lime); color: var(--on-lime); padding: 12px 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.chat-mock-head img { width: 32px; height: 32px; border-radius: 8px; }
.chat-mock-body { padding: 16px; display: grid; gap: 10px; background: #f6f7f7; }
.bubble { padding: 10px 14px; border-radius: 14px; max-width: 88%; }
.bubble.q { justify-self: end; background: #1d2327; color: #fff; border-bottom-right-radius: 4px; }
.bubble.a { justify-self: start; background: #fff; border: 1px solid #dcdcde; border-bottom-left-radius: 4px; }
.bubble.a ol { margin: 6px 0; padding-left: 1.2em; }
.bubble .src { display: block; margin-top: 6px; font-size: .8rem; color: #2a6f00; font-weight: 700; }
.chat-mock-input { padding: 12px 16px; border-top: 1px solid #dcdcde; color: #646970; background: #fff; }
