/* QUBUS — shared styles. Dark, product-first, thumb-friendly. */
:root {
  --bg: #000;
  --bg-2: #0a0a0c;
  --panel: rgba(16, 16, 19, 0.72);
  --panel-solid: #121215;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --ink: #f3f3f5;
  --muted: #9d9da8;
  --dim: #6b6b75;
  --accent: #9d4dff;
  --accent-ink: #fff;
  --ok: #3ecf8e;
  --radius: 16px;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Russo One", "Jost", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* components set display; hidden must still win */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: 0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(44px, 8vw, 104px); }
h2 { font-size: clamp(30px, 4.4vw, 56px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.eyebrow { font: 600 12px/1 var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #cfcfd6; max-width: 34ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--ink);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -12px rgba(157, 77, 255, 0.7); }
.btn.primary:hover { background: #ff4253; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header */
.site-header {
  position: fixed; inset: var(--bar-h, 0px) 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.is-scrolled .site-header { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 22px/1 var(--display); letter-spacing: 0.06em; }
.brand-mark { width: 34px; height: auto; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); color: var(--ink); cursor: pointer; }
.cart-link svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 11px/20px var(--font); text-align: center; }
.cart-count:empty, .cart-count[data-n="0"] { display: none; }
@media (max-width: 720px) { .site-nav { display: none; } .cart-link { margin-left: auto; } }

/* ---------- thumb-zone buy button (always on screen, bottom-right where the thumb rests) */
.thumb-cta {
  position: fixed; z-index: 45;
  right: calc(16px + var(--safe-r)); bottom: calc(16px + var(--safe-b));
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 700 16px/1 var(--font); letter-spacing: 0.01em;
  box-shadow: 0 18px 50px -12px rgba(157, 77, 255, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.thumb-cta.tucked { opacity: 0; pointer-events: none; transform: translateY(12px); }
.thumb-cta:hover { transform: translateY(-2px); }
.thumb-cta:active { transform: scale(0.96); }
.thumb-cta .sub { font-weight: 500; opacity: 0.85; font-size: 13px; }
.thumb-cta svg { width: 22px; height: 22px; }
.thumb-cta .cart-count { position: static; background: #fff; color: var(--accent); }
@media (min-width: 900px) { .thumb-cta { right: calc(28px + var(--safe-r)); bottom: calc(28px + var(--safe-b)); } }

/* ---------- landing: scroll story */
.story { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage canvas { width: 100%; height: 100%; }
.stage::after { /* vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}
.steps { position: relative; margin-top: -100vh; margin-top: -100svh; z-index: 2; pointer-events: none; }
.step { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px var(--gutter); }
.step .card { pointer-events: auto; max-width: 440px; }
.step.right { justify-content: flex-end; }
.step .card.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.step h2 { font-size: clamp(30px, 3.6vw, 48px); }
.step .num { font: 600 12px/1 var(--font); color: var(--dim); letter-spacing: 0.2em; margin-bottom: 14px; display: block; }
.step .card p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: #d8d8de; }
.hero .card { max-width: 560px; }
.hero h1 { margin-bottom: 0.15em; }
.hero h1 small { display: block; font: 500 0.3em/1.2 var(--font); letter-spacing: 0; color: #d6d6dc; margin-top: 0.45em; }
.scroll-hint { margin-top: 36px; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; text-decoration: none; }
.scroll-hint i { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 14px; }
@media (max-width: 899px) {
  .step { align-items: flex-end; padding: 0 16px calc(96px + var(--safe-b)); }
  .step.right { justify-content: flex-start; }
  .step .card { max-width: none; width: 100%; }
  .step .card.glass { padding: 20px; }
  .step h2 { font-size: 30px; }
  .step .lead, .step p { font-size: 15px; }
  .hero { align-items: flex-end; }
  .hero h1 { font-size: 64px; }
}

/* ---------- landing: content sections */
.section { padding: clamp(80px, 12vw, 160px) var(--gutter); position: relative; }
.wrap { max-width: 1180px; margin: 0 auto; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec { background: var(--bg-2); padding: 26px; }
@media (max-width: 900px) { .specs { grid-template-columns: repeat(2, 1fr); } } /* 8 boxes: 4 + 4, then 2 x 4 */
@media (max-width: 420px) { .spec { padding: 18px; } .spec b { font-size: 22px; } }
.spec b { display: block; font: 400 26px/1.1 var(--display); margin-bottom: 6px; }
.spec span { color: var(--muted); font-size: 14px; }
.build-teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.swatch-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.swatch-wall i { aspect-ratio: 1; border-radius: 14px; position: relative; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -18px 30px rgba(0, 0, 0, 0.35), 0 20px 40px -20px rgba(0, 0, 0, 0.9); }
.swatch-wall i span { position: absolute; left: 10px; bottom: 8px; font: 600 11px/1.2 var(--font); color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
@media (max-width: 860px) { .build-teaser { grid-template-columns: 1fr; } }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.review { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; }
.review blockquote { margin: 0 0 16px; font-size: 16px; color: #e2e2e7; }
.review figcaption { font-size: 13px; color: var(--muted); }
.collabs { display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: center; color: var(--muted); font: 400 18px/1 var(--display); letter-spacing: 0.04em; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }
.site-footer { border-top: 1px solid var(--line); padding: 48px var(--gutter) calc(120px + var(--safe-b)); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--panel-solid); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 22px; margin: 0; }
.drawer .lines { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer footer { padding: 18px 20px calc(18px + var(--safe-b)); border-top: 1px solid var(--line); }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; font-size: 18px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .thumb { width: 64px; height: 64px; border-radius: 12px; background: #1b1b20; display: grid; place-items: center; overflow: hidden; }
.line .title { font-weight: 600; }
.line .details { font-size: 13px; color: var(--muted); }
.line .price { font-weight: 600; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; margin-top: 8px; }
.qty button { width: 32px; height: 32px; background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; padding: 0; margin-left: 10px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 15px; margin-bottom: 14px; }
.totals .grand { font-weight: 700; font-size: 18px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.mini-cube { width: 44px; height: 44px; display: grid; grid-template-rows: 38% 20% 42%; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.mini-cube i { display: block; }

/* ---------- forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea, .code-form input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #0d0d10; color: var(--ink); font: inherit; font-size: 16px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .code-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(157, 77, 255, 0.2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 .field:first-child { grid-column: 1 / -1; } }
.alert { padding: 12px 14px; border-radius: 12px; background: rgba(255, 42, 61, 0.1); border: 1px solid rgba(255, 42, 61, 0.35); color: #ffc2c8; margin-bottom: 14px; font-size: 14px; }
.alert.ok { background: rgba(62, 207, 142, 0.1); border-color: rgba(62, 207, 142, 0.35); color: #b7f0d6; }
.notice { font-size: 13px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); background: #1d1d22; border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 999px; font-size: 14px; z-index: 70; opacity: 0; pointer-events: none; transition: all 0.25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* limited editions (landing) */
.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 36px; }
.ed-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: grid; }
.ed-card .ed-img { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #1a1a1f, #000); display: grid; place-items: center; }
.ed-card .ed-img img { width: 100%; height: 100%; object-fit: cover; }
.ed-card .ed-body { padding: 18px; display: grid; gap: 8px; }
.ed-card h3 { margin: 0; font-size: 22px; }
.ed-card p { margin: 0; color: var(--muted); font-size: 14px; }
.ed-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ed-teaser { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.badge.live { background: rgba(157, 77, 255,.15); color: #c08cff; }
.badge.upcoming { background: rgba(245,184,75,.15); color: #f5c76b; }
.badge.sold_out { background: #222; color: var(--muted); }
.badge.draft { background: #2a2414; color: #f3d79a; }
.droplist { max-width: 560px; }
.droplist label { display: block; font-weight: 600; margin-bottom: 8px; }
.droplist-row { display: flex; gap: 8px; }
.droplist-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #0d0d10; color: var(--ink); font: inherit; font-size: 16px; }
@media (max-width: 480px) { .droplist-row { flex-direction: column; } }
/* customer photos + reviews */
.photo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 28px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.photo-strip a { scroll-snap-align: start; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: #111; display: block; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-strip a:hover img { transform: scale(1.05); }
.r-stars { color: #ffc94d; letter-spacing: 2px; font-size: 15px; margin-bottom: 6px; }
.r-stars.big { font-size: 20px; margin: 0; }
.r-summary { color: var(--muted); font-size: 16px; }
.r-summary b { color: var(--ink, #fff); font-size: 18px; }
.r-title { font-weight: 700; margin-bottom: 8px; }
.r-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(62, 207, 142, 0.12); color: #7ee2b2; font-size: 12px; }
.r-product { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); opacity: .8; }
.r-section { margin: 34px 0 6px; font-size: 22px; }
.review .r-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 14px; background: #111; }
.review blockquote { white-space: pre-line; }
.review.clamp blockquote { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* announcement bar */
.promo-bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 36px; padding: 6px 48px; font: 600 13px/1.3 var(--font); letter-spacing: .02em; text-align: center; background: var(--accent); color: #fff; }
.promo-bar[data-style="dark"] { background: #16161a; color: #fff; border-bottom: 1px solid var(--line); }
.promo-bar[data-style="gold"] { background: linear-gradient(90deg, #a77d1e, #e2bd5a, #a77d1e); color: #1a1205; }
.promo-msg { color: inherit; text-decoration: none; }
.promo-msg[href]:hover { text-decoration: underline; }
.promo-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 999px; background: rgba(0,0,0,.18); color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }

/* cart: upsells, free shipping, trust */
.upsell { margin: 16px 0 6px; padding: 14px; border-radius: 14px; background: #0d0d10; border: 1px solid var(--line); }
.upsell-title { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.upsell-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.upsell-row .mini-cube { width: 32px; height: 32px; }
.upsell-row small { display: block; color: var(--muted); font-size: 12px; }
.upsell-row .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.freeship { font-size: 14px; margin-bottom: 12px; }
.freeship-bar { height: 6px; border-radius: 999px; background: #222; margin-top: 6px; overflow: hidden; }
.freeship-bar i { display: block; height: 100%; background: var(--accent); }
.drawer-trust { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.hero-trust { margin: 16px 0 0; font-size: 13px; color: #c4c4cc; letter-spacing: .01em; }
.ship-opts { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.ship-opts legend { font-weight: 600; margin-bottom: 8px; }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px; background: #0d0d10; cursor: pointer; }
.ship-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(157, 77, 255, 0.2); }
.ship-opt small { display: block; color: var(--muted); }
