@font-face {
  font-family: geistSans;
  src: url(/static/geist-sans.woff) format("woff");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg-main: #050505;
  --text-primary: #ffffff;
  --text-secondary: #e4e4e7;
  --text-muted: #a1a1aa;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.2);
  --accent: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: #050505;
  color: var(--text-primary);
  font-family: geistSans, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #050505 url(/static/shop-bg.jpg?v=3) center / cover no-repeat;
  pointer-events: none;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0.35) 40%, rgba(5, 5, 5, 0.62));
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }
.top {
  display: flex; align-items: center;
  padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand:hover { opacity: .8; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 0; letter-spacing: -0.03em; }
.lede { color: var(--text-secondary); max-width: 640px; font-size: 17px; line-height: 1.6; margin: 12px 0 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.card, .panel {
  background: rgba(8, 8, 10, 0.62);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.card {
  overflow: hidden; display: flex; flex-direction: column; min-height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-active); transform: translateY(-2px); }
.banner, .hero-shot {
  width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: #111; display: block;
}
.hero-shot { border-radius: 12px; }
.card .body, .panel { padding: 22px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.ver {
  color: var(--text-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.desc {
  color: var(--text-secondary); line-height: 1.55; margin: 10px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.prices { display: flex; gap: 22px; margin-top: 16px; }
.amount { display: block; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }
.per { color: var(--text-muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.log-line {
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08);
  color: var(--text-secondary); font-size: 14px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.log-line strong { color: #fff; font-weight: 600; margin-right: 6px; }
.layout { display: grid; grid-template-columns: 1.35fr .75fr; gap: 22px; align-items: start; }
.buy { position: sticky; top: 18px; }
.prose { white-space: pre-wrap; color: var(--text-secondary); line-height: 1.6; margin: 12px 0 0; }
.md { color: var(--text-secondary); line-height: 1.65; }
.md > :first-child { margin-top: 0; }
.md h1, .md h2, .md h3 { color: #fff; letter-spacing: -0.02em; line-height: 1.2; margin: 1.1em 0 .35em; }
.md h1 { font-size: 1.7rem; }
.md h2 { font-size: 1.3rem; }
.md h3 { font-size: 1.08rem; }
.md p { margin: .55em 0; }
.md a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.md ul, .md ol { margin: .35em 0 .8em; padding-left: 1.2em; }
.md li { margin: .22em 0; }
.md li .md, .release .md { display: inline; }
.md code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 5px; }
.md pre { background: rgba(0,0,0,.45); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: .8em 0; padding-left: 12px; border-left: 3px solid rgba(255,255,255,.28); color: var(--text-muted); }
.md img { border-radius: 12px; margin: 10px 0; }
.md hr { border: 0; border-top: 1px solid var(--border-color); margin: 1.2em 0; }
.release { margin-top: 16px; }
.release h3 { margin: 0 0 6px; font-size: 16px; }
.release ul { margin: 0; padding-left: 18px; color: var(--text-secondary); }
.release li { margin: 4px 0; line-height: 1.45; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs button {
  padding: 0; border: 1px solid var(--border-color); border-radius: 8px; background: #111; cursor: pointer;
}
.thumbs button[aria-current="true"] { border-color: #fff; }
.thumbs img { width: 84px; height: 56px; object-fit: cover; display: block; border-radius: 7px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.gallery-tile {
  padding: 0; border: 1px solid var(--border-color); border-radius: 12px;
  background: #111; cursor: zoom-in; overflow: hidden; display: block; width: 100%;
}
.gallery-tile:hover { border-color: var(--border-active); }
.gallery-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
label { display: block; margin: 14px 0 12px; font-size: 14px; color: var(--text-secondary); }
input[type="email"], input[type="text"] {
  display: block; width: 100%; margin-top: 6px; background: rgba(0,0,0,.45); color: #fff;
  border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; font: inherit;
}
input:focus { outline: 2px solid rgba(255,255,255,.25); border-color: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn {
  font: inherit; font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.btn.primary { background: var(--accent); color: #000; }
.btn.primary:hover { background: #e4e4e7; }
.btn.ghost { background: rgba(255,255,255,.06); color: #fff; border-color: var(--border-color); }
.hint { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.test-banner {
  margin: 0 0 18px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(8, 8, 10, 0.72);
  color: #fff; line-height: 1.5;
}
.kicker { color: var(--text-muted); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; margin: 0 0 10px; }
.logo-shot { object-fit: contain; padding: 36px; }
.stack { margin-top: 16px; }
.buy-title { margin: 0 0 4px; font-size: 22px; }
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid var(--border-active); background: rgba(8,8,10,.7); }
.flash.error { border-color: rgba(239,100,100,.5); }
.key {
  font-family: ui-monospace, Consolas, monospace; font-size: 18px; letter-spacing: .04em;
  background: rgba(0,0,0,.45); border-radius: 8px; padding: 14px; word-break: break-all;
}
dialog {
  border: 1px solid var(--border-color); border-radius: 12px; padding: 0; background: #050505; max-width: min(960px, 94vw);
}
dialog img { display: block; width: 100%; height: auto; }
dialog::backdrop { background: rgba(0,0,0,.72); }
.empty {
  border: 1px dashed var(--border-color); border-radius: 12px; padding: 48px 20px; text-align: center;
  color: var(--text-secondary); background: rgba(8,8,10,.55);
}
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .buy { position: static; }
  .grid { grid-template-columns: 1fr; }
  .amount { font-size: 22px; }
}

/* --- storefront improvements (Oct 2026) --- */
.md, .md p, .md li, .release li, .p-summary { overflow-wrap: anywhere; word-break: normal; }
.md code, .md pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.md pre { overflow-x: auto; max-width: 100%; }
.p-main, .p-section { min-width: 0; }
.lic-note { margin: .5rem 0 0; font-size: .82rem; color: var(--text-muted); line-height: 1.45; }
.lic-note a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.p-cta .lic-note { max-width: 240px; text-align: right; }
@media (max-width: 700px) { .p-cta .lic-note { text-align: left; max-width: none; } }
.buy-support { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border-color); font-size: .86rem; color: var(--text-secondary); }
.buy-support p { margin: .3rem 0; }
.buy-support a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.muted { color: var(--text-muted); }
details.long-list { margin: .7em 0; border: 1px solid var(--border-color); border-radius: 10px; padding: .5rem .8rem; }
details.long-list > summary { cursor: pointer; color: #fff; font-weight: 600; }
details.long-list[open] > summary { margin-bottom: .3rem; }
.desc-banner { width: 100%; height: auto; border-radius: 12px; margin-bottom: 1rem; }
.rel-date { font-size: .8rem; font-weight: 400; color: var(--text-muted); margin-left: .4rem; }
/* home */
.home-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; padding: 2.5rem 0 1.5rem; }
.home-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; margin: .3rem 0 .8rem; }
.home-hero .lede { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.55; }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.home-hero img.hero-banner { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border-color); }
.home-points { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding: 0; margin: 1rem 0 0; list-style: none; color: var(--text-secondary); font-size: .92rem; }
.home-points li::before { content: "✓ "; color: #86efac; }
.home-sec { margin: 2.2rem 0; }
.home-sec .sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: .8rem; }
.home-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; padding: 0; }
.home-card img { width: 100%; height: auto; aspect-ratio: 1024 / 409; object-fit: cover; display: block; background: #111; }
.home-card .hc-body { padding: .8rem 1rem 1rem; display: grid; gap: .3rem; }
.home-card h3 { margin: 0; font-size: 1.05rem; }
.home-card p { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.45; }
.home-card .hc-price { color: #fff; font-weight: 600; }
.home-card .hc-price s { color: var(--text-muted); font-weight: 400; margin-right: .3rem; }
@media (max-width: 800px) { .home-hero { grid-template-columns: 1fr; padding-top: 1.2rem; } }

/* Best-seller badge (from real paid sales) */
.best-badge{position:absolute;top:10px;left:10px;z-index:2;background:#f27f4f;color:#111;font-weight:700;font-size:12px;padding:3px 8px;border-radius:999px;letter-spacing:.02em}
.best-badge.inline{position:static;display:inline-block;vertical-align:middle;margin-left:6px;font-size:11px;padding:2px 7px}
.saving-line{color:#4fdd7c;font-weight:600}

.hc-save{margin:2px 0 0;color:#4fdd7c;font-weight:600;font-size:13px}

.bundle-offer{margin:14px 0 4px;padding:12px;border:1px solid rgba(242,127,79,.35);border-radius:10px;background:rgba(242,127,79,.06)}
.bundle-offer .bo-head{margin:0 0 8px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#f27f4f;font-weight:700}
.bundle-offer .bo-item{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-top:1px solid rgba(255,255,255,.06);text-decoration:none;color:inherit}
.bundle-offer .bo-item:first-of-type{border-top:0}
.bundle-offer .bo-name{font-weight:600}
.bundle-offer .bo-save{color:#4fdd7c;font-weight:600}

/* batch B: why/compat, FAQ, media, stars */
.why-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:16px;margin-bottom:16px}
.why-grid>.panel{margin:0}
.why-grid h2{font-size:17px;margin:0 0 10px}
.why-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.why-list li{position:relative;padding-left:26px}
.why-list li:before{content:"✓";position:absolute;left:0;top:0;width:18px;height:18px;border-radius:50%;background:rgba(242,127,79,.16);color:#F27F4F;font-size:12px;font-weight:800;display:grid;place-items:center}
.compat{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0}
.compat dt{color:var(--muted,#9a9aa5);font-size:13px}.compat dd{margin:0;font-weight:600}
.demo-line{margin:12px 0 0;font-size:14px}
.faq-item{border-top:1px solid rgba(255,255,255,.08);padding:12px 0}
.faq-item summary{cursor:pointer;font-weight:700}
.faq-item .md{margin-top:8px;color:var(--muted,#b5b5be)}
.card-stars{display:inline-flex;align-items:center;gap:3px;color:#FFC857;font-weight:700;font-size:13px}
.card-stars span{color:var(--muted,#9a9aa5);font-weight:500}
@media (max-width:820px){.why-grid{grid-template-columns:1fr}}

/* --- product page sections + changelog page (Oct 2026) --- */
.p-section { padding: 24px 26px; margin-bottom: 22px; }
.p-section > h2, .sec-card .md > h2:first-child { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); font-size: 18px; }
.sec-card .md > h2:first-child { margin-top: 0; }
.sec-card { border-top: 2px solid rgba(255,255,255,.14); }
.tabs a.tab-link { margin-left: auto; color: #fff; border: 1px solid var(--border-active); }
.tabs a.tab-link:hover { background: rgba(255,255,255,.12); }
.cl-teaser-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cl-teaser h2 { margin: 0 0 6px; padding: 0; border: 0; }
.cl-teaser-meta { margin: 0; }
.cl-head { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px; margin: 0 0 22px; background: rgba(8,8,10,.62); border: 1px solid var(--border-color); border-radius: 12px; backdrop-filter: blur(8px); }
.cl-head .p-icon { width: 72px; height: 72px; border-radius: 14px; }
.cl-head h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.02em; }
.cl-head .hint { margin: 0; }
.cl-head .kicker { margin: 0 0 4px; }
.cl-tools { display: flex; gap: 8px; margin: 0 0 14px; }
.cl-tools[hidden] { display: none; }
.cl-tree { display: grid; gap: 14px; }
.cl-group { background: rgba(8,8,10,.62); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.cl-group > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 16px 20px; }
.cl-group > summary::-webkit-details-marker, .cl-ver > summary::-webkit-details-marker { display: none; }
.cl-group > summary::before { content: "\25B8"; color: var(--text-muted); font-size: 14px; transition: transform .15s; display: inline-block; }
.cl-group[open] > summary::before { transform: rotate(90deg); }
.cl-group > summary:hover { background: rgba(255,255,255,.04); }
.cl-minor { font-size: 20px; font-weight: 600; letter-spacing: -.01em; font-family: ui-monospace, Consolas, monospace; }
.cl-meta { color: var(--text-muted); font-size: 13px; }
.cl-line { list-style: none; margin: 0; padding: 4px 20px 18px 33px; position: relative; }
.cl-line::before { content: ""; position: absolute; left: 33px; top: 6px; bottom: 26px; width: 2px; background: rgba(255,255,255,.12); }
.cl-line > li { position: relative; padding-left: 28px; margin-top: 8px; }
.cl-ver { border: 1px solid var(--border-color); border-radius: 10px; background: rgba(255,255,255,.025); }
.cl-ver > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; position: relative; }
.cl-ver > summary:hover { background: rgba(255,255,255,.04); border-radius: 10px; }
.cl-dot { position: absolute; left: -35px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #050505; border: 2px solid rgba(255,255,255,.45); }
.cl-ver[open] .cl-dot { background: #fff; border-color: #fff; }
.cl-v { font-weight: 600; font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.cl-latest { color: #000; background: #fff; border-color: #fff; font-weight: 600; font-size: 11px; padding: 1px 8px; }
.cl-ver .rel-date { margin: 0; }
.cl-ver .tab-count { margin-left: auto; }
.cl-notes { margin: 0; padding: 4px 16px 14px 34px; color: var(--text-secondary); }
.cl-notes li { margin: 6px 0; line-height: 1.5; }
.cl-notes code { background: rgba(255,255,255,.08); border-radius: 5px; padding: 1px 5px; font-size: .9em; }
@media (max-width: 640px) {
  .p-section { padding: 18px 16px; }
  .cl-head { grid-template-columns: 56px minmax(0, 1fr); padding: 16px; gap: 14px; }
  .cl-head .p-icon { width: 56px; height: 56px; }
  .cl-head h1 { font-size: 22px; }
  .cl-head-actions { grid-column: 1 / -1; }
  .cl-head-actions .btn { width: 100%; }
  .cl-group > summary { flex-wrap: wrap; gap: 4px 12px; padding: 14px 16px; }
  .cl-line { padding: 2px 12px 14px 24px; }
  .cl-line::before { left: 24px; }
  .cl-line > li { padding-left: 22px; }
  .cl-dot { left: -29px; }
  .cl-notes { padding: 2px 12px 12px 26px; }
  .cl-teaser-row .btn { width: 100%; text-align: center; }
  .tabs a.tab-link { margin-left: 0; }
}

.rating-chip { text-decoration: none; color: #fde68a; }

/* --- Reviews (Oct 2026 polish) --- */
.stars { color: #fbbf24; letter-spacing: 1px; font-size: 15px; line-height: 1; }
.rating-sum {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 0 0 16px; padding: 12px 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-color); border-radius: 10px;
  color: var(--text-secondary);
}
.rating-sum .stars { font-size: 18px; }
.rating-sum-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14px; }
.rating-sum-text strong { color: #fff; font-size: 18px; }
.rating-dot { opacity: .5; }
.review-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.review {
  margin: 0; padding: 14px 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-color); border-radius: 10px;
}
.review-head { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.review-who { color: #fff; font-weight: 600; }
.review-when { margin-left: auto; font-size: 12px; }
.review-body { margin: 0; color: var(--text-secondary); white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; font-size: 14px; }
.review-empty {
  text-align: center; padding: 22px 16px 18px;
  background: rgba(255,255,255,.03); border: 1px dashed var(--border-active); border-radius: 12px;
  margin-bottom: 14px;
}
.review-empty-stars { color: rgba(251,191,36,.35); letter-spacing: 4px; font-size: 22px; margin-bottom: 8px; }
.review-empty-title { margin: 0 0 6px; color: #fff; font-weight: 600; font-size: 16px; }
.review-empty .hint { margin: 0 auto; max-width: 36ch; }
.review-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.review-cta .hint { margin: 0; }
.review-form {
  display: grid; gap: 12px; margin-top: 16px; padding: 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-color); border-radius: 12px;
}
.review-form-title { margin: 0; font-weight: 600; color: #fff; font-size: 15px; }
.review-form textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px;
  background: rgba(255,255,255,.04); color: #fff; border: 1px solid var(--border-active);
  border-radius: 8px; padding: .7rem .8rem; font: inherit; resize: vertical; min-height: 84px;
}
.review-body-label { display: block; margin: 0; font-size: 14px; color: var(--text-secondary); }
.star-pick { border: 0; padding: 0; margin: 0; }
.star-pick legend { margin: 0 0 8px; color: var(--text-secondary); font-size: 14px; padding: 0; }
.star-pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.star-opt { cursor: pointer; }
.star-opt input { position: absolute; opacity: 0; pointer-events: none; }
.star-opt span {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); background: rgba(255,255,255,.04);
  border: 1px solid var(--border-color);
}
.star-opt:hover span { border-color: var(--border-active); color: #fff; }
.star-opt input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.star-opt input:checked + span { color: #000; background: #fbbf24; border-color: #fbbf24; }

.demo-card .p-media { margin: 4px 0 0; max-height: 560px; background: #000; }
.demo-hint { margin: 10px 0 0; }
.demo-hint a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.demo-hint a:hover { color: #fff; }
.p-media { width: 100%; border-radius: 12px; display: block; }

@media (max-width: 640px) {
  .review-when { margin-left: 0; width: 100%; }
  .rating-sum { padding: 10px 12px; }
  .review { padding: 12px; }
  .review-form { padding: 14px; }
  .star-pick-row { gap: 6px; }
  .star-opt span { padding: 7px 10px; }
  .demo-card .p-media { max-height: none; }
}
