:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f0efeb;
  --line: #e4e2dc;
  --text: #151517;
  --muted: #5e5e66;
  --red: #e8262b;
  --red-hover: #c91e23;
  --pad: #2b2b2b;
  --radius: 14px;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: 0.5px; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-actions { margin-left: auto; display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap; cursor: pointer;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { border-color: #d6d3cb; color: var(--text); background: rgba(255,255,255,0.7); }
.btn-ghost:hover { border-color: #c9c6be; background: var(--surface-2); }

/* Hero */
/* The background image stays still; the page scrolls over it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247,246,243,0.96) 0%, rgba(247,246,243,0.78) 50%, rgba(247,246,243,0.55) 100%),
    url("assets/hero-stencil-light.jpg?v=1") center / cover no-repeat;
}
.hero {
  padding: 120px 0 110px;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
}
.hero > .wrap { width: 100%; }
/* everything after the hero is solid, so it slides over the still background */
.stats, section.block, .site-footer { background: var(--bg); position: relative; }
.stats { border-top: 1px solid var(--line); box-shadow: 0 -20px 50px rgba(0,0,0,0.06); }
.hero-art img { filter: drop-shadow(0 24px 40px rgba(0,0,0,0.22)); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.eyebrow { color: var(--red); font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -1.5px; margin: 0 0 22px; }
.hero p.lead { color: var(--muted); font-size: 19px; max-width: 520px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { justify-self: center; width: 100%; max-width: 380px; }
.hero-art img { width: 100%; border-radius: 22px; }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 32px; }
.stat strong { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; }
.stat span { color: var(--muted); font-size: 15px; }

/* Sections */
section.block { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -0.8px; line-height: 1.1; margin: 0; }
.section-head p { color: var(--muted); margin: 10px 0 0; max-width: 520px; }
.link-arrow { color: var(--text); font-weight: 600; font-size: 15px; }
.link-arrow:hover { color: var(--red-hover); }

/* Plugin cards */
.plugin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plugin-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.plugin-card:hover { border-color: #cfccc4; box-shadow: 0 12px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.plugin-card .thumb { aspect-ratio: 1280 / 628; background: #000; overflow: hidden; }
.plugin-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.plugin-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.tag.instrument { color: #c91e23; border-color: #f2c5c7; background: #fdf0f0; }
.plugin-card h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 4px 0 0; }
.plugin-card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.plugin-card .card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.plugin-card .card-foot .free { color: var(--text); font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step .num { width: 36px; height: 36px; border-radius: 8px; background: var(--pad); display: grid; place-items: center; font-family: var(--display); font-weight: 600; margin-bottom: 18px; color: #fff; }
.step:first-child .num { background: var(--red); }
.step h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.step code { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

/* Donate band */
.donate { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.donate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.donate h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.6px; margin: 0 0 8px; }
.donate p { color: var(--muted); margin: 0; max-width: 560px; }
.donate .note { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--red-hover); }
.site-footer .small { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 320px; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 280px; justify-self: start; }
  .plugin-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .donate { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .header-actions .btn-ghost { display: none; }
  .stats .wrap { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .plugin-grid { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: start; }
}

/* ---------- Plugins page ---------- */
.page-head { padding: 88px 0 56px; }
.page-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 5vw, 58px); letter-spacing: -1.4px; line-height: 1.05; margin: 0 0 16px; }
.page-head p.lead { color: var(--muted); font-size: 19px; max-width: 600px; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.chip-btn { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #d6d3cb; background: rgba(255,255,255,0.75); color: var(--text); font: 600 14px var(--body); cursor: pointer; }
.chip-btn span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip-btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.chip-btn[aria-pressed="true"] span { color: #b9b9bf; }

.account-note { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 40px; font-size: 15px; }
.account-note .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--red); flex: none; }
.account-note a { color: var(--red); font-weight: 600; }
.account-note a:hover { color: var(--red-hover); }

.plugin-list { display: grid; gap: 28px; }
.plugin-detail { display: grid; grid-template-columns: 1.1fr 0.9fr; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; scroll-margin-top: 92px; }
.plugin-detail.flip .shot { order: 2; }
.plugin-detail .shot { background: var(--surface-2); display: flex; align-items: center; padding: 28px; }
.plugin-detail .shot img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.12); }
.plugin-detail .info { padding: 36px 40px; display: flex; flex-direction: column; gap: 14px; }
.plugin-detail .meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.plugin-detail h2 { font-family: var(--display); font-weight: 600; font-size: 32px; letter-spacing: -0.6px; line-height: 1.1; margin: 0; }
.plugin-detail .tagline { color: var(--muted); font-size: 16px; margin: 0; }
.features { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.features li { position: relative; padding-left: 22px; }
.features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 3px; background: var(--pad); }
.features li:first-child::before { background: var(--red); }
.compat { display: flex; flex-wrap: wrap; gap: 6px; }
.compat span { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 3px 9px; }
.dl-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.dl-row .fine { color: var(--muted); font-size: 13px; }
.plugin-detail[hidden] { display: none; }

@media (max-width: 960px) {
  .plugin-detail, .plugin-detail.flip { grid-template-columns: 1fr; }
  .plugin-detail.flip .shot { order: 0; }
  .plugin-detail .info { padding: 28px 24px; }
}

/* ---------- Phone menu ---------- */
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #d6d3cb; background: rgba(255,255,255,0.7); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 0; }
.menu-btn span { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .site-header .wrap { gap: 12px; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 16px 30px rgba(0,0,0,0.08); }
  .nav.open a { padding: 12px 8px; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav.open a:last-child { border-bottom: 0; }
}

/* ---------- About / Support / Contact ---------- */
.prose { max-width: 720px; font-size: 17px; }
.prose p { margin: 0 0 18px; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.5px; margin: 44px 0 14px; }
.prose a { color: var(--red); font-weight: 600; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 14px 0 6px; }
.value p { color: var(--muted); font-size: 15px; margin: 0; }
.value .pad { width: 28px; height: 28px; border-radius: 7px; background: var(--pad); }
.value:first-child .pad { background: var(--red); }

.two-col { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.side-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.side-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.side-nav a:hover { background: var(--surface); color: var(--text); }
.faq-group { margin-bottom: 44px; scroll-margin-top: 92px; }
.faq-group h2 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.5px; margin: 0 0 14px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
.faq[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); font-size: 15.5px; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer ol, .faq .answer ul { margin: 0 0 10px; padding-left: 20px; }
.faq .answer code { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
.faq .answer a { color: var(--red); font-weight: 600; }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.contact-card h2 { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 0 0 6px; }
.contact-card p { color: var(--muted); margin: 0; }
.contact-card .email-big { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 600; color: var(--text); display: inline-block; margin-top: 10px; word-break: break-all; }
.contact-card .email-big:hover { color: var(--red); }
.checklist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.checklist h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.checklist ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }

@media (max-width: 960px) {
  .value-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; }
  .contact-card { grid-template-columns: 1fr; padding: 32px 26px; }
}
.value-grid.two-up { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .value-grid.two-up { grid-template-columns: 1fr; } }
.nav .nav-signin { display: none; }
@media (max-width: 620px) { .nav.open .nav-signin { display: block; color: var(--red); font-weight: 600; } }

/* ---------- Sign in ---------- */
.auth-wrap { display: grid; place-items: center; padding: 64px 16px 96px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: 0 20px 50px rgba(0,0,0,0.06); }
.auth-card .logo { width: 48px; height: 48px; margin-bottom: 18px; }
.auth-card h1 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.5px; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button { height: 36px; border: 0; border-radius: 8px; background: transparent; font: 600 14px var(--body); color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { height: 44px; border: 1px solid #d6d3cb; border-radius: 10px; padding: 0 14px; font: 16px var(--body); background: #fff; color: var(--text); }
.field input:focus { outline: 2px solid rgba(232,38,43,0.35); border-color: var(--red); }
.field .hint { font-size: 13px; color: var(--muted); }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-card .btn[disabled] { opacity: 0.6; cursor: wait; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font: 600 14px var(--body); cursor: pointer; }
.auth-foot { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.msg { border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 16px; }
.msg.error { background: #fdf0f0; color: #a3161b; border: 1px solid #f2c5c7; }
.msg.ok { background: #eef8f0; color: #1d6b33; border: 1px solid #c6e8cf; }
.msg.info { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.auth-view[hidden] { display: none; }
.auth-wrap { min-height: calc(100vh - 68px - 92px); }
