/* nysxl: the last stylesheet on every public page (after style.css, pages.css and shop.css).
   One type scale (12.5 / 14 / 16 / 18 / 22 / 28 / 40 / 56), a 4px spacing rhythm, flat surfaces,
   8px corners on panels, pill buttons with a green hover highlight. Works in both themes. */
:root {
  --r: 8px; --r-sm: 6px;
  --shadow: none;
  --on-accent: #0d130c;
  --lift: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 10px 28px -14px color-mix(in srgb, var(--accent) 45%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="light"] { --on-accent: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --on-accent: #fff; } }

body { font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 1.2; margin: 0 0 4px; font-weight: 650; }
h3 { font-size: 18px; line-height: 1.3; }
.sub { font-size: 16px; }
.small, .sub.small { font-size: 14px; }
.lede { font-size: 18px; line-height: 1.55; margin-bottom: 28px; }
.page-main { padding-top: 48px; }
.page-title { font-size: clamp(32px, 4.4vw, 40px); line-height: 1.1; margin: 0 0 12px; }
section { padding: 32px 0 64px; }
.rm-intro { max-width: 64ch; margin: 0 0 8px; }

/* No blob behind the hero: the faint block grid stays, flat. */
.glow { background: linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 56px 56px; opacity: .55; }

/* Section heads: a hairline and a left-aligned title instead of "01 / 02 / 03". */
.sec-head { display: block; margin-bottom: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.sec-head .num { display: none; }
.sec-head .sub { margin-top: 4px; }

.eyebrow { padding: 0; border: 0; background: none; border-radius: 0; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow::before { width: 8px; height: 8px; border-radius: 1px; }

/* Buttons: pills, flat, the hover lights up green. */
.btn { height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; gap: 8px; transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease); }
.btn:hover { transform: none; border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.btn:focus-visible, .tab:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { opacity: 1; background: color-mix(in srgb, var(--accent) 86%, #fff); border-color: color-mix(in srgb, var(--accent) 86%, #fff); color: var(--on-accent); }
.btn.small { height: 32px; padding: 0 14px; font-size: 14px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); border-color: var(--border-strong); background: transparent; }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: var(--danger); color: var(--danger); }
button.btn:disabled { opacity: .55; cursor: default; }
#theme, .bell { border-radius: 999px; }
#theme:hover, .bell:hover { border-color: var(--accent); color: var(--text); }
.bar nav a.login-link { border-radius: 999px; padding: 5px 14px; }
.bar nav a.login-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.bell { color: var(--muted); }

/* Panels and cards: flat, 8px corners, one border. */
.card, .combo, .c-card, .shop-card, .bundle, .buy-panel, .review, .review-form, .lib-card, .acct-sec, .ticket-list a, .thread .msg,
.rm-col-pub, .status-card, .sc-card, .bug-form, .known-bugs, .home-stats div, .notice, .term, .pic img, .g-item, .parts > div {
  border-radius: var(--r); box-shadow: none;
}
.card.featured { background: var(--panel); border-color: var(--border-strong); }
.chips.hl li::before { content: none; }
.chips li, .badge-c, .pair span { border-radius: var(--r-sm); }
.badge.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 1px; background: currentColor; margin-right: 6px; vertical-align: 1px; }
input, select, textarea { border-radius: var(--r-sm) !important; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* Card hover: a 2px lift, a soft green edge, the art zooms a touch. */
.card, .shop-card, .c-card, a.sc-card, .hero-feature { transition: transform .22s var(--ease), border-color .22s, box-shadow .22s; }
.card:hover, .shop-card:hover, .c-card:hover, a.c-card:hover, .c-card:focus-visible, .hero-feature:hover {
  transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--lift);
}
.shop-img img, .hf-art img, .p-hero-art img { transition: transform .5s var(--ease); }
.shop-card:hover .shop-img img, .c-card:hover .shop-img img, .hero-feature:hover .hf-art img { transform: scale(1.04); }

/* Home hero: the featured plugin's art where the terminal was. */
.hero { padding: 88px 0 72px; gap: 48px; }
.hero h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.04; margin-bottom: 20px; }
.hero-feature { display: grid; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--panel); overflow: hidden; color: inherit; }
.hf-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #121513; border-bottom: 1px solid var(--border); }
.hf-art img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hf-body { display: grid; gap: 4px; padding: 16px 20px 18px; }
.hf-label { font: 500 12.5px "JetBrains Mono", monospace; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.hf-body strong { font: 650 22px/1.2 "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; }
.hf-body .sub { font-size: 14px; }
.hf-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.hf-go { font-size: 14px; font-weight: 600; color: var(--accent); }
.hf-go span { display: inline-block; transition: transform .2s var(--ease); }
.hero-feature:hover .hf-go span { transform: translateX(3px); }

/* Home carousel and counters */
.carousel { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.c-card { background: var(--panel); border-color: var(--border); }
.c-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.c-foot .price { font-size: 15px; }
.c-rating, .rating { font: 500 13px "JetBrains Mono", monospace; color: var(--muted); white-space: nowrap; }
.c-rating .stars, .rating .stars { color: var(--star); letter-spacing: 0; }
.car-wrap { position: relative; }
.car-nav { display: flex; gap: 8px; justify-content: flex-end; margin: -4px 0 12px; }
.car-nav button { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--muted); cursor: pointer; font: 16px/1 system-ui; }
.car-nav button:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.car-nav button:disabled { opacity: .35; cursor: default; }
.home-stats { text-align: left; gap: 0; border: 1px solid var(--border); border-radius: var(--r); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.home-stats div { border: 0; border-left: 1px solid var(--border); border-radius: 0; padding: 16px 20px; }
.home-stats div:first-child { border-left: 0; }
.home-stats strong { font-size: 28px; color: var(--text); }

/* Shop */
.shop-card { background: var(--panel); }
.shop-body { padding: 16px; gap: 8px; }
.shop-body h3 { font-size: 18px; }
.shop-body p { font-size: 14px; }
.ribbon { border-radius: var(--r-sm); top: 10px; left: 10px; }
.shop-filters { gap: 8px; }
.shop-filters input, .shop-filters select { height: 40px; padding: 0 12px; }
.bundle { padding: 20px; gap: 8px; }

/* Plugin page: banner header, sticky buy panel, sticky strip */
.p-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding: 8px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.p-hero h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; margin: 0 0 12px; }
.p-hero .lede { margin-bottom: 16px; }
.crumbs { margin: 0 0 16px; font: 13px "JetBrains Mono", monospace; color: var(--faint); display: flex; gap: 8px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--accent); }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.p-meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; background: var(--faint); margin-right: 18px; vertical-align: 3px; margin-left: -9px; }
.p-rating { color: var(--text); } .p-rating:hover { color: var(--accent); }
.p-hero-art { border: 1px solid var(--border-strong); border-radius: var(--r); overflow: hidden; background: #121513; aspect-ratio: 16 / 9; }
.p-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.product-top { gap: 40px; grid-template-columns: minmax(0, 1fr) 320px; }
.buy-panel { top: 76px; padding: 20px; gap: 12px; background: var(--panel); }
.price.big { font-size: 28px; }
.p-sticky { position: fixed; left: 0; right: 0; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transform: translateY(-100%); transition: transform .25s var(--ease); }
.p-sticky.show { transform: none; }
.p-sticky-in { display: flex; align-items: center; gap: 16px; height: 56px; }
.p-sticky-in strong { font: 650 16px "Bricolage Grotesque", sans-serif; }
.p-sticky-in .price { margin-left: auto; font-size: 15px; }
.gallery { margin: 0 0 24px; gap: 12px; }
.prose { font-size: 16px; }

/* Trust lines beside the buy button */
.trust { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.trust li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.trust li > div { display: grid; gap: 1px; }
.trust svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trust strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.trust span { font-size: 13px; color: var(--faint); line-height: 1.4; }
.trust-mini { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; font-size: 12.5px; color: var(--faint); }
.trust-mini span { display: inline-flex; align-items: center; gap: 6px; }
.trust-mini span::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); }

/* Changelog: a version timeline */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.tl-item { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 16px; padding-bottom: 24px; }
.tl-item::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-mark { width: 12px; height: 12px; margin: 6px 0 0 4px; border-radius: 2px; background: var(--panel-2); border: 2px solid var(--border-strong); }
.tl-latest .tl-mark { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.tl-head strong { font: 600 16px "JetBrains Mono", monospace; }
.tl-head time { font: 13px "JetBrains Mono", monospace; color: var(--faint); }
.tl-tag { font: 600 11.5px "JetBrains Mono", monospace; padding: 2px 8px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); }
.tl-body .prose { font-size: 15px; }
.tl-body .prose p:last-child { margin-bottom: 0; }

/* Reviews: one-tap stars in My account, the prompt, the form */
.star-pick { gap: 2px; }
.star { font-size: 24px; line-height: 1; padding: 2px; border-radius: var(--r-sm); transition: color .12s, transform .12s; }
.star:hover { color: var(--star); transform: translateY(-1px); }
.star-pick:hover .star.on { color: var(--star); }
.rv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.rv-label { font: 500 12.5px "JetBrains Mono", monospace; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.rv-words { flex-basis: 100%; display: grid; gap: 8px; }
.rv-words textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); padding: 10px 12px; resize: vertical; }
.rv-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: var(--r); background: var(--accent-soft); }
.rv-prompt-text { display: grid; gap: 2px; flex: 1 1 260px; }
.rv-prompt-text strong { font: 650 18px "Bricolage Grotesque", sans-serif; }
.review { padding: 14px 16px; }
.review-form summary { font-weight: 600; }

/* Empty states in the art style */
.empty { display: grid; justify-items: start; gap: 6px; padding: 28px; border: 1px dashed var(--border-strong); border-radius: var(--r); max-width: 560px; }
.empty img { width: 64px; height: 64px; image-rendering: pixelated; margin-bottom: 6px; }
.empty h3 { font-size: 18px; margin: 0; }
.empty .sub { font-size: 14px; }
.empty .btn { margin-top: 10px; }
.not-found { padding-top: 40px; padding-bottom: 80px; }
.not-found .empty { max-width: 640px; padding: 40px; }
.not-found h1 { font-size: clamp(32px, 4.4vw, 40px); margin: 0; }

/* My account */
.acct-head { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tabs { gap: 4px; margin-bottom: 24px; }
.tab { padding: 7px 14px; font-size: 14px; border-color: transparent; transition: color .15s, background .15s, border-color .15s; }
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab[aria-selected="true"] { background: var(--accent-soft); border-color: transparent; color: var(--text); font-weight: 600; }
.lib-card { padding: 16px 20px; gap: 12px; }
.lib-img { width: 64px; height: 64px; border-radius: var(--r-sm); image-rendering: pixelated; border: 1px solid var(--border); }
.acct-sec { padding: 20px; gap: 12px; }
.acct-table th { font: 500 12.5px "JetBrains Mono", monospace; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.acct-table td, .acct-table th { padding: 10px 8px; }

/* Misc pages */
.status-card, .bug-form { padding: 20px; }
.combo li::before, .prose-list li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); top: .65em; }
footer { font-size: 13px; padding-top: 24px; }

/* Scroll fade-ins and panel changes (only with JS on, never with reduced motion) */
html.js-fade .fade { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js-fade .fade.in { opacity: 1; transform: none; }
@keyframes ui-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.acct-panel, .ad-panel { animation: ui-in .22s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel { scroll-behavior: auto; }
  html.js-fade .fade { opacity: 1; transform: none; transition: none; }
  .acct-panel, .ad-panel, .p-sticky { animation: none; transition: none; }
  .card, .shop-card, .c-card, .hero-feature, .shop-img img, .hf-art img, .star, .btn, .hf-go span { transition: none !important; }
  .card:hover, .shop-card:hover, .c-card:hover, .hero-feature:hover { transform: none; }
  .shop-card:hover .shop-img img, .c-card:hover .shop-img img, .hero-feature:hover .hf-art img { transform: none; }
}

@media (max-width: 900px) {
  .p-hero { grid-template-columns: 1fr; gap: 24px; }
  .p-hero-art { order: -1; }
  .hero { padding: 56px 0 48px; }
}
@media (max-width: 860px) { .product-top { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  h2 { font-size: 24px; }
  .hero h1 { font-size: 36px; }
  .p-sticky-in strong { display: none; }
  .home-stats div { border-left: 0; border-top: 1px solid var(--border); } .home-stats div:first-child { border-top: 0; }
  .empty { padding: 20px; }
}
.lib-img { object-fit: cover; object-position: 80% 50%; }
.empty-line { padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: var(--r); font-size: 14px; max-width: 560px; }
