/* Fonts are served from this site, so no visitor request ever goes to a third party. */
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/geist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/geist-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0c0c0e;
  --panel: #141417;
  --panel-2: #1b1b1f;
  --line: #26262c;
  --line-2: #34343c;
  --text: #ededef;
  --muted: #8e8e98;
  --accent: #f2f2f3;
  --accent-rgb: 242, 242, 243;
  --accent-ink: #0c0c0e;
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Geist, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
.mono, .price, .n { font-family: "Geist Mono", ui-monospace, monospace; }
.muted { color: var(--muted); }
.kicker { font: 500 12px "Geist Mono", monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 12, 14, .72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.logo-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
  transition: transform .5s var(--ease);
}
.nav { display: flex; gap: 26px; margin-left: auto; color: var(--muted); font-size: 15px; }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 600 15px Geist, sans-serif; letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 2px rgba(0, 0, 0, .4);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), translate .2s var(--ease), scale .15s var(--ease);
}
.btn .i { transition: transform .4s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { scale: .98; translate: 0 1px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.btn:disabled { background: var(--panel-2); color: var(--muted); cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line); }
.btn-mag { will-change: transform; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100dvh - 68px); display: grid; align-items: center; padding: 64px 0;
}
.hero > .wrap { width: 100%; }
.hero-in { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--muted); font: 500 13px "Geist Mono", monospace; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }
.hero h1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.045em; line-height: .98; }
.dim { color: #5c5c66; }
.lead { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 26px 0 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.perks { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 56px 0 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.perks li { display: flex; align-items: center; gap: 10px; padding: 18px 28px 0 0; }
.perks .i { color: var(--text); }

.hero-stack { position: relative; height: 480px; }
.mini {
  position: absolute; width: 74%; border-radius: 20px; overflow: hidden;
  background: var(--panel); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -30px rgba(0, 0, 0, .8);
  animation: float 7s ease-in-out infinite;
}
.mini:nth-child(1) { top: 0; right: 0; rotate: 4deg; animation-delay: -1s; }
.mini:nth-child(2) { top: 130px; left: 0; rotate: -5deg; animation-delay: -3.5s; z-index: 2; }
.mini:nth-child(3) { top: 270px; right: 6%; rotate: 2deg; animation-delay: -5s; z-index: 3; }
.mini .cover { height: 120px; }
.mini-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 14px; font-weight: 500; gap: 12px; }
.mini-foot span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-foot .price { font-size: 14px; color: var(--accent); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Marquee */

/* Shop */
.shop { padding: 120px 0 100px; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.search {
  display: flex; align-items: center; gap: 10px; width: min(340px, 100%); padding: 0 18px; border-radius: 999px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: box-shadow .2s;
}
.search:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
.search input { flex: 1; min-width: 0; padding: 13px 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px Geist, sans-serif;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.chip:hover { color: var(--text); }
.chip:active { scale: .97; }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); box-shadow: none; }

/* Asymmetric 7/5 · 5/7 rhythm, set per card from app.js */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card {
  grid-column: span var(--span, 6);
  position: relative; padding: 1px; border-radius: var(--radius); cursor: pointer;
  background: radial-gradient(520px circle at var(--mx, -100%) var(--my, -100%), rgba(var(--accent-rgb), .22), var(--line) 45%);
  opacity: 0; translate: 0 24px;
  animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms);
  transition: translate .5s var(--ease);
}
@keyframes rise { to { opacity: 1; translate: 0 0; } }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-in { height: 100%; display: flex; flex-direction: column; border-radius: calc(var(--radius) - 1px); background: var(--panel); overflow: hidden; }
.card .cover { height: 230px; }
.card:hover .cover-icon { transform: scale(1.08) rotate(-4deg); }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat { color: var(--muted); font: 500 12px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.card h3 { font-size: 24px; letter-spacing: -.025em; line-height: 1.15; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; max-width: 52ch; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.price { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.old { color: var(--muted); text-decoration: line-through; font-size: 14px; margin-left: 8px; }
.view { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); transition: color .3s; }
.card:hover .view { color: var(--accent); }
.card:hover .view .i { transform: translateX(3px); }
.view .i { transition: transform .4s var(--ease); }

/* Generated covers — one palette, icon per category */
.cover {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 22px 24px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--panel-2)); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-icon {
  position: absolute; top: 22px; right: 24px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  color: var(--accent); background: rgba(var(--accent-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .25);
  transition: transform .6s var(--ease);
}
.cover-icon .i { width: 26px; height: 26px; }
.cover-no { position: relative; font: 500 12px "Geist Mono", monospace; color: var(--muted); letter-spacing: .1em; }
.badge {
  position: absolute; top: 22px; left: 24px; padding: 5px 11px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: 600 12px Geist, sans-serif;
}

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 72px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .i { width: 36px; height: 36px; color: var(--muted); margin-bottom: 6px; }
.empty h3 { font-size: 22px; letter-spacing: -.02em; }
.empty p { margin: 0 0 10px; color: var(--muted); }

/* How — ruled rows, no cards */
.how { padding: 100px 0; }
.how-head { margin-bottom: 40px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 2fr 4fr 6fr; gap: 24px; align-items: baseline; padding: 32px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.n { color: var(--accent); font-size: 14px; }
.steps h3 { font-size: 28px; letter-spacing: -.03em; }
.steps p { margin: 0; color: var(--muted); max-width: 52ch; }

/* FAQ — sticky side heading */
.faq { padding: 100px 0 120px; }
.faq-in { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 108px; }
.faq-side .muted { margin: 18px 0 22px; max-width: 32ch; }
.faq-contact { display: flex; gap: 10px; flex-wrap: wrap; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 24px 0; font-weight: 500; font-size: 18px; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 12px; height: 12px; flex: none; margin-top: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); rotate: 45deg; transition: rotate .4s var(--ease); }
details[open] summary::after { rotate: 225deg; }
details p { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.foot-slogan { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.foot-mark { font-size: clamp(40px, 9vw, 120px); font-weight: 700; letter-spacing: -.06em; line-height: .8; color: var(--panel-2); -webkit-text-stroke: 1px var(--line-2); }
.foot-meta { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.contact-links { display: flex; gap: 18px; }
.contact-links a:hover { color: var(--accent); }

/* Reveal on scroll */
[data-reveal] { opacity: 0; translate: 0 28px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
[data-reveal].in { opacity: 1; translate: 0 0; }

/* Modal */
.modal {
  width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 26px;
  background: var(--panel); color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .06), 0 60px 120px -40px rgba(0, 0, 0, .9);
}
.modal[open] { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; scale: .94; translate: 0 16px; } }
.modal::backdrop { background: rgba(8, 8, 10, .72); backdrop-filter: blur(6px); }
.modal .cover { height: 220px; }
.modal-content { padding: 28px 32px 32px; }
.modal-content h3 { font-size: 34px; letter-spacing: -.035em; margin: 8px 0 12px; }
.modal-content > p { color: var(--muted); margin: 0 0 22px; max-width: 58ch; }
.includes { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.includes li { display: flex; gap: 12px; align-items: center; }
.includes .i { color: var(--accent); }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.buy-row .price { font-size: 28px; }
.delivery { color: var(--muted); font-size: 14px; margin-top: 2px; }
.buy-note { width: 100%; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.close {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 0; cursor: pointer; color: var(--text); background: rgba(12, 12, 14, .7); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.close:active { scale: .94; }
.modal-body { position: relative; }

@media (max-width: 1100px) {
  .card { --span: 6 !important; }
}
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .top-in .btn-sm { margin-left: auto; }
  .hero { min-height: auto; padding: 56px 0 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-stack { height: 390px; }
  .mini { width: 86%; }
  .mini .cover { height: 72px; padding: 14px 18px; }
  .mini .cover-icon { top: 12px; right: 14px; width: 44px; height: 44px; }
  .mini:nth-child(2) { top: 130px; }
  .mini:nth-child(3) { top: 260px; }
  .perks li { padding-right: 18px; }
  .grid { grid-template-columns: 1fr; }
  .card { grid-column: auto; }
  .shop { padding: 80px 0 64px; }
  .how, .faq { padding: 64px 0; }
  .steps li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .faq-in { grid-template-columns: 1fr; gap: 28px; }
  .faq-side { position: static; }
  .modal-content { padding: 22px 20px 24px; }
  .buy-note { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card, [data-reveal] { opacity: 1; translate: 0 0; }
}

/* Promise — statement left, ruled pledges right */
.promise { padding: 100px 0; border-top: 1px solid var(--line); }
.promise-in { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.promise-side { position: sticky; top: 108px; }
.promise-side h2 { line-height: 1.02; }
.pledges { list-style: none; padding: 0; margin: 0; }
.pledges li { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.pledges li:last-child { border-bottom: 1px solid var(--line); }
.pledge-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--accent); background: rgba(var(--accent-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .25); }
.pledge-icon .i { width: 24px; height: 24px; }
.pledges h3 { font-size: 24px; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 8px; }
.pledges p { margin: 0; color: var(--muted); max-width: 54ch; }
@media (max-width: 767px) {
  .promise { padding: 64px 0; }
  .promise-in { grid-template-columns: 1fr; gap: 24px; }
  .promise-side { position: static; }
  .pledges li { grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; }
  .pledge-icon { width: 44px; height: 44px; border-radius: 12px; }
}

/* Ratings + preview hint on cards */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: var(--line-2); }
.stars svg.on { fill: var(--accent); }
.rating { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 500 13px "Geist Mono", monospace; }
.has-preview { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--accent); font-size: 13px; font-weight: 500; }
.has-preview .i { width: 16px; height: 16px; }

/* Preview gallery in the product modal */
.gallery { background: var(--panel-2); border-bottom: 1px solid var(--line); }
.gallery-main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; scale: 1.02; transition: opacity .5s var(--ease), scale .7s var(--ease); }
.gallery-main img.on { opacity: 1; scale: 1; }
.g-nav {
  position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; cursor: pointer; color: var(--text); background: rgba(12, 12, 14, .7); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .2s;
}
.g-nav:hover { background: rgba(12, 12, 14, .9); }
.g-nav:active { scale: .94; }
.g-prev { left: 14px; }
.g-next { right: 14px; }
.g-count { position: absolute; left: 16px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(12, 12, 14, .7); color: var(--muted); font: 500 12px "Geist Mono", monospace; }
.thumbs { display: flex; gap: 8px; padding: 12px 16px 14px; overflow-x: auto; }
.thumb { flex: none; width: 76px; height: 50px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); opacity: .55; transition: opacity .2s, box-shadow .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .85; }
.thumb.on { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Reviews inside the modal */
.modal-reviews { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.modal-reviews-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--muted); font: 500 13px "Geist Mono", monospace; }
.modal-reviews-head h4 { margin: 0 auto 0 0; color: var(--text); font: 600 20px Geist, sans-serif; letter-spacing: -.02em; }
.modal-reviews .review { padding: 18px 0; border-bottom: 1px solid var(--line); background: none; box-shadow: none; border-radius: 0; margin: 0; }
.modal-reviews .review:last-child { border-bottom: 0; }

/* Homepage review wall — masonry columns */
.reviews { padding: 100px 0; border-top: 1px solid var(--line); }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.score { display: flex; align-items: center; gap: 16px; color: var(--muted); font: 500 13px "Geist Mono", monospace; }
.score div { display: grid; gap: 4px; }
.score-n { font: 600 56px Geist, sans-serif; letter-spacing: -.04em; color: var(--text); line-height: 1; }
.review-wall { columns: 3 300px; column-gap: 20px; }
.review {
  break-inside: avoid; margin: 0 0 20px; padding: 24px; border-radius: 20px; background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.review blockquote { margin: 12px 0 14px; font-size: 16px; line-height: 1.6; }
.review figcaption { color: var(--muted); font-size: 13px; }
.review figcaption b { color: var(--text); font-weight: 600; }
.reviews-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.reviews-note a { color: var(--accent); }
@media (max-width: 767px) {
  .reviews { padding: 64px 0; }
  .score-n { font-size: 44px; }
  .g-nav { width: 34px; height: 34px; }
}

/* Header search */
.hsearch { position: relative; flex: 1; max-width: 420px; margin-left: 12px; }
.hs-field {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 16px; border-radius: 999px; color: var(--muted);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: box-shadow .2s, background .2s;
}
.hs-field:focus-within { background: var(--panel); box-shadow: inset 0 0 0 1px var(--accent); }
.hs-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font: 15px Geist, sans-serif; }
.hs-field input::-webkit-search-cancel-button { display: none; }
.hs-field kbd { padding: 2px 8px; border-radius: 6px; font: 500 12px "Geist Mono", monospace; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.hs-field:focus-within kbd { display: none; }
.hs-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30; padding: 6px; border-radius: 18px; max-height: 70dvh; overflow-y: auto;
  background: var(--panel); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -20px rgba(0, 0, 0, .8);
  animation: drop .35s var(--ease);
}
@keyframes drop { from { opacity: 0; translate: 0 -6px; } }
.hs-item, .hs-all {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px; cursor: pointer;
  background: none; color: var(--text); font: inherit; text-align: left;
}
.hs-item:hover, .hs-item[aria-selected="true"] { background: var(--panel-2); }
.hs-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; color: var(--accent); background: rgba(var(--accent-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .2); }
.hs-text { display: grid; flex: 1; min-width: 0; }
.hs-text b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-text small { color: var(--muted); font: 500 12px "Geist Mono", monospace; }
.hs-item .price { font-size: 14px; color: var(--muted); }
mark { background: none; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.hs-all { justify-content: center; margin-top: 4px; padding: 12px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.hs-all:hover { color: var(--accent); }
.hs-empty { padding: 22px 16px; color: var(--muted); font-size: 14px; text-align: center; line-height: 1.6; }
.hs-empty b { color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 767px) {
  .top-in { gap: 10px; }
  .hsearch { margin-left: 0; max-width: none; }
  .hs-field { height: 40px; }
  .hs-field kbd { display: none; }
  .top-in:has(.hsearch) .btn-sm { display: none; }
  .top-in:has(.hsearch) .logo span:last-child { display: none; }
  .hs-results { left: -46px; right: 0; }
}

/* Loading skeletons + load error */
.card.skeleton { cursor: default; background: var(--line); }
.sk { border-radius: 8px; background: linear-gradient(90deg, var(--panel-2) 0%, #24242a 40%, var(--panel-2) 80%); background-size: 300% 100%; animation: shimmer 1.6s ease-in-out infinite; }
.sk-cover { height: 230px; border-radius: 0; }
.sk-line { height: 12px; width: 90%; }
.sk-title { height: 24px; width: 70%; margin: 4px 0; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.load-error { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 64px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.load-error h3 { font-size: 22px; letter-spacing: -.02em; }
.load-error p { margin: 0 0 10px; color: var(--muted); }

/* Buy button states */
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(12, 12, 14, .25); border-top-color: var(--accent-ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading:disabled { background: var(--accent); color: var(--accent-ink); opacity: .85; cursor: progress; }
.buy-note.err { color: #ff8a80; }

/* Order (thank-you) page */
.order-page { min-height: calc(100dvh - 68px); padding: 72px 0; }
.narrow-order { max-width: 720px; }
.order-card h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.04em; line-height: 1.02; margin: 18px 0 16px; }
.order-card > .muted { font-size: 17px; margin: 0 0 28px; }
.order-card b { color: var(--text); font-weight: 500; }
.paid-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; color: var(--accent); background: rgba(var(--accent-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .3); font: 500 13px "Geist Mono", monospace; }
.deliver { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 28px 0; border-block: 1px solid var(--line); }
.small { font-size: 13px; }
.keep { padding-top: 28px; }
.keep h2 { font-size: 22px; margin-bottom: 8px; }
.keep p { color: var(--muted); margin: 0 0 16px; max-width: 56ch; }

/* Account button in the header */
.acct { display: flex; flex: none; }
.acct-btn { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 0; border-radius: 999px; cursor: pointer; color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 14px Geist, sans-serif; }
.acct-btn.ghost { padding: 9px 16px; background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); font-weight: 600; }
.acct-btn:active { scale: .97; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.a-back { color: var(--muted); font-size: 14px; }
.a-back:hover { color: var(--text); }
.top-in .acct { margin-left: 4px; }

/* Sign-in dialog */
.auth-dlg { width: min(440px, calc(100% - 32px)); }
.auth { position: relative; display: grid; gap: 16px; padding: 32px 28px 26px; }
.auth h3 { font-size: 28px; letter-spacing: -.035em; }
.auth .kicker { margin: 0; }
.auth p { margin: 0; }
.auth .close { top: 14px; right: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.auth-tabs button { padding: 9px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px Geist, sans-serif; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.auth .field { display: grid; gap: 8px; }
.auth .field label { font-size: 14px; font-weight: 500; }
.auth .field input { width: 100%; padding: 13px 14px; border: 0; border-radius: 12px; color: var(--text); font: 16px Geist, sans-serif; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); outline: none; }
.auth .field input:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.auth .help { color: var(--muted); font-size: 13px; }
.auth .field-err { color: #ff8a80; font-size: 14px; }
.auth .muted b { color: var(--text); font-weight: 500; }
.code-in { font: 500 28px "Geist Mono", monospace !important; letter-spacing: .5em; text-align: center; }
.auth-fine { color: var(--muted); font-size: 13px; text-align: center; }
.linkish { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* My downloads */
.acct-wrap { max-width: 860px; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.acct-head h1, .acct-gate h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 8px; }
.acct-head .muted { margin: 0; }
.acct-gate { display: grid; gap: 14px; justify-items: start; }
.acct-gate p { margin: 0 0 8px; max-width: 46ch; }
.dl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dl-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.p-thumb { width: 64px; height: 44px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: var(--accent); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-main { display: grid; min-width: 0; }
.dl-main b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-main small { color: var(--muted); font-size: 13px; }
.dl-act { display: flex; gap: 8px; }
.danger-zone { margin-top: 56px; color: var(--muted); }
.danger-zone summary { cursor: pointer; font-size: 14px; }
.danger-zone p { margin: 12px 0; max-width: 56ch; font-size: 14px; }
.order-card a:not(.btn), .keep a { color: var(--accent); }
@media (max-width: 767px) {
  .acct-label { display: none; }
  .acct-btn { padding: 5px; }
  .acct-btn.ghost .acct-label { display: inline; }
  .acct-btn.ghost { padding: 8px 14px; }
  .dl-list li { grid-template-columns: 48px minmax(0, 1fr); }
  .dl-list .p-thumb { width: 48px; height: 36px; }
  .dl-act { grid-column: 2; }
  .acct-head { flex-wrap: wrap; }
  .a-back { display: none; }
}

/* Empty catalogue */
.no-products .hero-stack, .no-products #filters, .no-products .shop-head .search { display: none; }
body:not(.no-products) .hero-art { display: none; }
.catalog-empty { grid-column: 1 / -1; display: grid; justify-items: start; gap: 10px; padding: 48px 0; border-top: 1px solid var(--line); }
.catalog-empty .i { width: 28px; height: 28px; color: var(--muted); }
.catalog-empty h3 { font-size: 26px; letter-spacing: -.03em; }
.catalog-empty p { margin: 0; color: var(--muted); max-width: 52ch; }
.catalog-empty a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Product window: keep the close button clear of the cover icon; buy button on the right */
.modal .cover .cover-icon { top: auto; bottom: 18px; right: 24px; }
.buy-actions { flex: 1; flex-wrap: wrap; justify-content: flex-end; align-items: center; row-gap: 8px; }
@media (max-width: 767px) { .buy-actions { justify-content: flex-start; } }

/* Password field with show/hide */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px !important; }
.pw-eye { position: absolute; top: 50%; right: 8px; translate: 0 -50%; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye.on { color: var(--text); }

/* ── Logo: star-A mark ─────────────────────────────────────────── */
.logo-mark { width: 32px; height: 32px; border-radius: 10px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18), 0 1px 0 rgba(255, 255, 255, .1); }
.logo-mark .mark { width: 22px; height: 22px; }
.mark-star { transform-box: fill-box; transform-origin: center; }
.logo:hover .mark-star { animation: twinkle .9s var(--ease); }
@keyframes twinkle { 0% { transform: scale(1) rotate(0); } 45% { transform: scale(1.35) rotate(45deg); } 100% { transform: scale(1) rotate(90deg); } }
.gate-card .logo-mark .mark { width: 26px; height: 26px; }

/* ── Hero: starfield + orbit illustration ──────────────────────── */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1px 1px at 68% 12%, rgba(255, 255, 255, .35), transparent 60%),
    radial-gradient(1.5px 1.5px at 82% 64%, rgba(255, 255, 255, .4), transparent 60%),
    radial-gradient(1px 1px at 34% 78%, rgba(255, 255, 255, .3), transparent 60%),
    radial-gradient(1px 1px at 52% 42%, rgba(255, 255, 255, .25), transparent 60%),
    radial-gradient(1px 1px at 92% 28%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero-in { position: relative; }
.hero-art { width: 100%; height: auto; max-height: 520px; overflow: visible; }
.ha-stars circle { fill: #fff; }
.tw { animation: tw 4s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: .15; } 50% { opacity: .8; } }
.ha-links path { fill: none; stroke: rgba(255, 255, 255, .09); stroke-dasharray: 2 6; }
.ha-orbit { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; stroke-dasharray: 3 7; animation: orbit 30s linear infinite; }
.ha-orbit.o2 { stroke: rgba(255, 255, 255, .1); animation-duration: 24s; animation-direction: reverse; }
.ha-orbit.o3 { stroke: rgba(255, 255, 255, .18); animation-duration: 18s; }
@keyframes orbit { to { stroke-dashoffset: -200; } }
.ha-planet { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }
.ha-planet.dim { opacity: .55; }
.ha-star { fill: #fff; }
.ha-star.back { opacity: .16; }
.ha-core { transform-box: fill-box; transform-origin: center; animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.ha-float { animation: float 7s ease-in-out infinite; }
.ha-float.f2 { animation-delay: -1.8s; }
.ha-float.f3 { animation-delay: -3.6s; }
.ha-float.f4 { animation-delay: -5.2s; }
.ha-glyph { fill: none; stroke: rgba(255, 255, 255, .78); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ha-glyph .ha-solid { fill: rgba(255, 255, 255, .85); stroke: none; }
.ha-glyph .ha-fill { fill: rgba(255, 255, 255, .14); stroke: none; }
.ha-label { fill: rgba(255, 255, 255, .55); font: 500 11px "Geist Mono", monospace; letter-spacing: .02em; }

/* ── What you'll find here ─────────────────────────────────────── */
.cats { padding: 110px 0 20px; }
.cats-head { margin-bottom: 40px; }
.cats-head h2 { line-height: 1.04; }
.cats-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.cat-tile {
  grid-column: span var(--span); display: grid; grid-template-rows: 1fr auto; min-height: 330px; padding: 0; overflow: hidden;
  border: 0; border-radius: var(--radius); cursor: pointer; text-align: left; color: var(--text); font: inherit;
  background: linear-gradient(160deg, #18181c, #111114 60%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: box-shadow .4s var(--ease), translate .9s var(--ease), opacity 1s var(--ease);
}
.cat-tile:hover { box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .08); translate: 0 -3px; }
.cat-tile:active { scale: .99; }
.cat-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cat-art { display: grid; place-items: center; padding: 24px 24px 0; position: relative; }
.cat-art::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, #111114); pointer-events: none; }
.cat-art svg { width: 100%; max-width: 380px; height: auto; transition: transform .7s var(--ease); }
.cat-tile:hover .cat-art svg { transform: scale(1.04) translateY(-4px); }
.cat-text { display: grid; gap: 6px; padding: 8px 28px 28px; position: relative; }
.cat-text b { font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.cat-text small { color: var(--muted); font-size: 15px; max-width: 44ch; }
.cat-art .ln { fill: none; stroke: rgba(255, 255, 255, .26); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cat-art .fl { fill: rgba(255, 255, 255, .04); }
.cat-art .fl2 { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .32); }
.cat-art .hi { stroke: rgba(255, 255, 255, .7); }
.cat-art .solid { fill: rgba(255, 255, 255, .85); stroke: none; }
.cat-art .dot { fill: rgba(255, 255, 255, .22); stroke: none; }
.cat-art .cursor { fill: #fff; stroke: #0c0c0e; stroke-width: 1.5; animation: cursor 5s var(--ease) infinite; }
@keyframes cursor { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-60px, -40px); } 60% { transform: translate(-60px, -40px); } }
.cat-art .tpl-pulse { animation: tplp 5s ease-in-out infinite; }
@keyframes tplp { 0%, 35%, 100% { fill: rgba(255, 255, 255, .04); } 50%, 60% { fill: rgba(255, 255, 255, .16); } }
.cat-art .caret { fill: #fff; stroke: none; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cat-art .bar { fill: #fff; stroke: none; transform-box: fill-box; transform-origin: left; animation: fillbar 3.6s var(--ease) infinite; }
@keyframes fillbar { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }

@media (max-width: 1100px) { .cat-tile { --span: 6 !important; } }
@media (max-width: 767px) {
  .hero-art { max-height: 340px; }
  .cats { padding: 72px 0 8px; }
  .cats-grid { grid-template-columns: 1fr; }
  .cat-tile { grid-column: auto; min-height: 280px; }
  .hero::before { mask-image: radial-gradient(ellipse 90% 60% at 50% 70%, #000 20%, transparent 75%); }
}

/* Seller credit, formats, long descriptions */
.byline { color: var(--muted); font: 500 13px Geist, sans-serif; }
.modal-content .byline { display: block; margin: -4px 0 14px; }
.desc p { color: var(--muted); margin: 0 0 12px; max-width: 62ch; }
.desc { margin-bottom: 16px; }
.desc .desc-h { color: var(--text, #ededef); font-weight: 600; display: inline-block; margin-bottom: 2px; }
.formats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.formats span { padding: 4px 10px; border-radius: 8px; font: 500 12px "Geist Mono", monospace; color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Community section */
.share { padding: 110px 0; border-top: 1px solid var(--line); }
.share-in { display: grid; grid-template-columns: 6fr 6fr; gap: 56px; align-items: center; }
.share-copy h2 { line-height: 1.04; margin-bottom: 18px; }
.share-copy > .muted { max-width: 50ch; margin: 0 0 28px; font-size: 17px; }
.share-steps { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.share-steps li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.share-steps .n { font: 500 13px "Geist Mono", monospace; color: var(--muted); }
.share-art { width: 100%; height: auto; overflow: visible; }
.sa-slot rect, .sa-slot path { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .26); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sa-slot path { fill: none; }
.sa-slot.new rect { stroke: rgba(255, 255, 255, .7); fill: rgba(255, 255, 255, .08); animation: slotin 5s var(--ease) infinite; }
.sa-slot.new path { stroke: rgba(255, 255, 255, .8); }
.sa-slot text { fill: rgba(255, 255, 255, .6); font: 500 11px "Geist Mono", monospace; }
.sa-slot.ghost rect { fill: none; stroke-dasharray: 4 6; stroke: rgba(255, 255, 255, .2); }
.sa-slot.ghost path { stroke: rgba(255, 255, 255, .3); }
@keyframes slotin { 0%, 30% { opacity: .25; } 55%, 100% { opacity: 1; } }
.sa-path { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; stroke-dasharray: 4 7; animation: orbit 4s linear infinite; }
.sa-ring { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.sa-arrow { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.sa-line { stroke: rgba(255, 255, 255, .28); stroke-width: 6; stroke-linecap: round; }
.sa-line.hi { stroke: rgba(255, 255, 255, .55); }
.sa-upload { animation: float 6s ease-in-out infinite; }
.sa-badge { filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
@media (max-width: 900px) { .share-in { grid-template-columns: 1fr; gap: 32px; } .share { padding: 72px 0; } }

/* ── Shared form bits (also used by admin) ─────────────────────── */
.up-form .field, .up-form .f-grid { display: grid; gap: 8px; }
.up-form .f-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
.up-form .span2 { grid-column: 1 / -1; }
.up-form label { font-size: 14px; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
.help { margin: 0; color: var(--muted); font-size: 13px; }
.field-err { margin: 0; color: #ff8a80; font-size: 14px; }
.up-form input:not([type=checkbox]):not([type=file]), .up-form textarea, .up-form select {
  width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; color: var(--text); font: 15px Geist, sans-serif;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); outline: none;
}
.up-form textarea { resize: vertical; line-height: 1.5; }
.up-form input:focus, .up-form textarea:focus, .up-form select:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.drop { display: grid; justify-items: center; gap: 4px; padding: 22px; border-radius: 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); cursor: pointer; transition: border-color .2s, color .2s; }
.drop:hover { border-color: var(--text); color: var(--text); }
.drop b { color: var(--text); font-weight: 500; }
.drop .i { width: 22px; height: 22px; color: var(--text); }
.file-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.file-card span { display: grid; min-width: 0; flex: 1; }
.file-card b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card small { color: var(--muted); }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn .i { width: 15px; height: 15px; }
.prog { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.prog span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 500 12px "Geist Mono", monospace; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.pill.warn { color: #f5c46b; background: rgba(245, 196, 107, .1); }
.pill.off { color: var(--muted); background: var(--panel-2); }

/* ── Account page ──────────────────────────────────────────────── */
.acct-wrap { max-width: 1040px; }
.acct-split { display: grid; grid-template-columns: 6fr 5fr; gap: 48px; align-items: center; min-height: 60dvh; }
.acct-gate .perks { margin-top: 36px; }
.acct-gate .perks .i { color: var(--text); }
.acct-art { width: 100%; height: auto; overflow: visible; }
.va-card rect { stroke: rgba(255, 255, 255, .2); }
.va-card path, .va-card circle { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.va-card .va-solid { fill: rgba(255, 255, 255, .8); stroke: none; }
.va-card { animation: float 7s ease-in-out infinite; }
.va-card.c2 { animation-delay: -2.3s; }
.va-card.c3 { animation-delay: -4.6s; }
.va-star { fill: #fff; transform-box: fill-box; transform-origin: center; animation: twinkle-soft 4s ease-in-out infinite; }
.va-star.sm { opacity: .5; animation-delay: -2s; }
@keyframes twinkle-soft { 0%, 100% { transform: scale(1) rotate(0); opacity: .9; } 50% { transform: scale(.7) rotate(45deg); opacity: .5; } }

.acct-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px; border-radius: var(--radius); margin-bottom: 28px;
  background: linear-gradient(160deg, #18181c, #111114 70%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05); position: relative; overflow: hidden; }
.acct-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,.5), transparent 60%), radial-gradient(1px 1px at 85% 70%, rgba(255,255,255,.4), transparent 60%), radial-gradient(1.5px 1.5px at 60% 80%, rgba(255,255,255,.35), transparent 60%), radial-gradient(1px 1px at 92% 20%, rgba(255,255,255,.45), transparent 60%); }
.acct-id { display: flex; align-items: center; gap: 18px; position: relative; }
.acct-id h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; margin-bottom: 4px; }
.acct-id .kicker { margin-bottom: 6px; }
.acct-id .muted { margin: 0; }
.avatar.xl { width: 64px; height: 64px; font-size: 26px; flex: none; }
.acct-stats { display: flex; align-items: center; gap: 28px; position: relative; }
.acct-stats div { display: grid; }
.acct-stats b { font-size: 26px; font-weight: 500; }
.acct-stats span { color: var(--muted); font-size: 13px; }
.acct-tabs { display: flex; gap: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.acct-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; background: none; color: var(--muted); font: 500 15px Geist, sans-serif; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.acct-tabs button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.acct-tabs .i { width: 16px; height: 16px; }
.dl-act { flex-wrap: wrap; justify-content: flex-end; }
.acct-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 48px 20px 56px; }
.acct-empty h3 { font-size: 22px; letter-spacing: -.02em; }
.acct-empty p { margin: 0 0 12px; color: var(--muted); max-width: 44ch; }
.empty-art { width: 200px; height: auto; margin-bottom: 8px; }
.ea-box { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .25); stroke-width: 1.5; }
.ea-ln { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 1.5; stroke-linecap: round; }
.ea-arrow { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.4s var(--ease) infinite; }

.up-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 0; }
.up-intro h2 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 6px; }
.up-intro p { margin: 0; max-width: 56ch; }
.up-form { display: grid; gap: 20px; padding: 24px; margin-bottom: 24px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.up-media { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.up-media .span2 { grid-column: 1 / -1; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px !important; font-weight: 400 !important; color: var(--muted); cursor: pointer; }
.agree input { margin-top: 3px; accent-color: #f2f2f3; width: 16px; height: 16px; flex: none; }
.up-foot { display: flex; justify-content: flex-end; gap: 10px; }
.up-done { display: flex; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 20px; border-radius: 16px; background: rgba(var(--accent-rgb), .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.up-done p { margin: 2px 0 0; }

@media (max-width: 767px) {
  .acct-split { grid-template-columns: 1fr; gap: 16px; }
  .acct-visual { order: -1; max-width: 340px; }
  .acct-stats { gap: 18px; width: 100%; }
  .acct-stats .btn { margin-left: auto; }
  .up-form .f-grid, .up-media { grid-template-columns: 1fr; }
  .up-form { padding: 18px; }
}

/* Thank-you page art */
.thanks-art { width: min(320px, 100%); height: auto; display: block; margin: -12px 0 8px -20px; overflow: visible; }
.ta-orbit { fill: none; stroke: rgba(255, 255, 255, .16); stroke-dasharray: 3 7; animation: orbit 20s linear infinite; }
.ta-orbit.o2 { stroke: rgba(255, 255, 255, .1); animation-direction: reverse; }
.ta-dot { fill: #fff; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .8)); }
.ta-core { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.ta-tick { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .9s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ta-spark { fill: #fff; transform-box: fill-box; transform-origin: center; animation: twinkle-soft 3.5s ease-in-out infinite; }
.ta-spark.s2 { opacity: .5; animation-delay: -1.7s; }
.btn-meta { opacity: .55; font-weight: 500; font-size: 13px; margin-left: 2px; }
.order-card { position: relative; }
.order-page::before { content: ""; position: absolute; inset: 68px 0 auto; height: 70dvh; pointer-events: none; opacity: .45;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 60% 70% at 70% 20%, #000 10%, transparent 70%); }
.va-card rect:not(:first-child) { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.6; }
.share-card { display: flex; align-items: center; gap: 20px; padding: 22px 24px; margin-top: 28px; border-radius: var(--radius); background: linear-gradient(160deg, #18181c, #111114 70%); box-shadow: inset 0 0 0 1px var(--line); }
.share-card .sc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none; background: #f2f2f3; color: #0c0c0e; }
.share-card .sc-icon .i { width: 22px; height: 22px; }
.share-card div { flex: 1; }
.share-card b { font-weight: 500; }
.share-card p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 767px) { .share-card { flex-wrap: wrap; } }
.modal .close:focus { outline: none; }
.modal .close:focus-visible, .btn:focus-visible, .acct-btn:focus-visible { outline: 2px solid #f2f2f3; outline-offset: 2px; }
/* Real cover images carry their own text: no dark fade over them */
.cover:has(img)::before { display: none; }

/* ── Creators page ─────────────────────────────────────────────── */
.cr-art, .safe-art { width: 100%; height: auto; overflow: visible; }
.cr-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 34; }
.cr-you { fill: none; stroke: #f2f2f3; stroke-width: 34; stroke-linecap: butt; animation: draw-ring 1.6s var(--ease) both; }
.cr-us { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 34; }
@keyframes draw-ring { from { stroke-dasharray: 0 100; } }
.cr-big { fill: #fff; font: 700 56px Geist, sans-serif; letter-spacing: -.04em; }
.cr-small { fill: rgba(255, 255, 255, .55); font: 500 13px "Geist Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.cr-lbl { fill: rgba(255, 255, 255, .55); font: 500 11px "Geist Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.cr-val { fill: #fff; font: 500 13px Geist, sans-serif; }
.cr-split { padding: 0 0 40px; }
.split-grid { display: grid; grid-template-columns: 5fr 4fr 4fr; gap: 20px; }
.split-cell { display: grid; gap: 6px; padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, #18181c, #111114 70%); box-shadow: inset 0 0 0 1px var(--line); }
.split-cell .n { font: 600 56px Geist, sans-serif; letter-spacing: -.05em; line-height: 1; color: var(--text); }
.split-cell.big { background: #f2f2f3; color: #0c0c0e; box-shadow: none; }
.split-cell.big .n { color: #0c0c0e; font-size: 72px; }
.split-cell.big p { color: #4a4a52; }
.split-cell b { font-size: 18px; font-weight: 500; }
.split-cell p { margin: 0; color: var(--muted); font-size: 15px; max-width: 34ch; }
.cr-how { border-top: 0; }
.cr-safe { padding: 100px 0; border-top: 1px solid var(--line); }
.cr-safe h2 { line-height: 1.04; margin-bottom: 24px; }
.check-list, .x-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li, .x-list li { position: relative; padding-left: 30px; color: var(--muted); }
.check-list li b { color: var(--text); font-weight: 500; }
.check-list li::before, .x-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #f2f2f3; }
.check-list li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 8px; border: solid #0c0c0e; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.x-list li::before { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.x-list li::after { content: "×"; position: absolute; left: 5px; top: 1px; color: var(--muted); font-size: 15px; }
.sf-file rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; }
.sf-file path { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; stroke-linecap: round; }
.sf-file.bad rect { stroke-dasharray: 4 5; opacity: .5; }
.sf-file.bad path { stroke: rgba(255, 255, 255, .6); stroke-width: 2.5; }
.sf-file { animation: float 7s ease-in-out infinite; }
.sf-file.f-b { animation-delay: -2.4s; } .sf-file.f-c { animation-delay: -4.8s; }
.sf-scan { stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; stroke-dasharray: 3 6; animation: orbit 3s linear infinite; }
.sf-shield { fill: #f2f2f3; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.sf-tick { fill: none; stroke: #0c0c0e; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1s .4s var(--ease) forwards; }
.cr-calc { padding: 40px 0 100px; }
.calc-card { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; padding: 40px; border-radius: 28px; background: linear-gradient(160deg, #18181c, #111114 70%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05); }
.calc-card h2 { margin-bottom: 28px; }
.slider { display: grid; gap: 10px; margin-bottom: 26px; }
.slider label { display: flex; justify-content: space-between; color: var(--muted); }
.slider label b { color: var(--text); font: 500 16px "Geist Mono", monospace; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; outline: none;
  background: linear-gradient(90deg, #f2f2f3 var(--fill, 50%), var(--line-2) var(--fill, 50%)); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #f2f2f3; box-shadow: 0 0 0 5px rgba(242, 242, 243, .15); cursor: pointer; }
.slider input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #f2f2f3; cursor: pointer; }
.calc-out { display: grid; align-content: start; gap: 6px; padding: 28px; border-radius: 20px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.calc-out > b { font-size: clamp(40px, 5vw, 60px); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin-top: 6px; }
.calc-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.calc-row:first-of-type { margin-top: 14px; }
.calc-row b { color: var(--text); font-weight: 500; }
.calc-out .btn { margin-top: 16px; }
.cr-rules { padding: 20px 0 100px; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rules-grid > div { padding: 32px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.rules-grid h3 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 20px; }
.cr-cta { padding: 20px 0 110px; }
.cta-band { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 64px 24px; border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(500px 240px at 50% 0%, rgba(255, 255, 255, .1), transparent 70%), var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.cta-band h2 { max-width: 20ch; }
.cta-band p { margin: 0 0 10px; }
.foot-meta a:hover { color: var(--text); }
@media (max-width: 900px) {
  .split-grid, .rules-grid, .calc-card { grid-template-columns: 1fr; }
  .calc-card { padding: 24px; }
  .cr-safe .share-visual { max-width: 360px; }
}

/* Creator earnings in My uploads */
.up-intro a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.agree a { color: var(--text); text-decoration: underline; }
.earn-card { display: grid; gap: 18px; padding: 22px; margin-bottom: 8px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.earn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.earn-stats div { display: grid; gap: 2px; padding: 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.earn-stats .owed { background: #f2f2f3; color: #0c0c0e; box-shadow: none; }
.earn-stats span { font: 500 12px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.earn-stats .owed span, .earn-stats .owed small { color: #55555f; }
.earn-stats b { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.earn-stats small { color: var(--muted); font-size: 12px; }
.payout-form { display: grid; grid-template-columns: 1fr 150px 1.3fr auto; gap: 10px; align-items: center; }
.payout-form > div { grid-column: 1 / -1; }
.payout-form > div p { margin: 2px 0 0; }
.payout-form select, .payout-form input { padding: 10px 12px; border: 0; border-radius: 10px; color: var(--text); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font: 14px Geist, sans-serif; }
.payout-form select { grid-column: 1 / 2; }
.payout-form input { grid-column: 2 / 4; }
.payout-form .field-err { grid-column: 1 / -1; }
.sales-list summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.sales-list ul { list-style: none; margin: 10px 0 0; padding: 0; }
.sales-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sales-list small { color: var(--muted); }
@media (max-width: 767px) {
  .earn-stats { grid-template-columns: 1fr; }
  .payout-form { grid-template-columns: 1fr; }
  .payout-form select, .payout-form input { grid-column: auto; }
}

/* Featured products are direct links, with visible keyboard focus. */
.mini { display: block; color: var(--text); text-decoration: none; cursor: pointer; }
.mini:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; z-index: 4; }
.mini:hover { box-shadow: 0 0 0 2px var(--accent), 0 40px 80px -30px rgba(0,0,0,.8); }


