/* ==========================================================================
   KYARIN STORE — store / commissions page
   Builds on style.css (blue desktop + windows). Store-only pieces below.
   ========================================================================== */

.store-page { --subnav-h: 44px; } /* height of the phone section row */
.store-main { padding-top: calc(var(--bar-h) + var(--subnav-h) + env(safe-area-inset-top, 0px) + 8px); }

.store-page .topbar-inner { flex-wrap: wrap; height: auto; min-height: var(--bar-h); }
.store-nav { order: 3; flex-basis: 100%; display: flex; gap: 6px; overflow-x: auto; padding: 0 0 8px; scrollbar-width: none; }
.store-nav a { flex: none; padding: 6px 10px; border: 2px solid #fff; font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; text-decoration: none; }
.store-hero .back-link { margin-bottom: 16px; }

/* ---------- Hero ---------- */
.hero-body { display: grid; gap: 28px; }
.store-title { margin-top: 6px; }
.hero-lead { max-width: 46ch; margin-top: 14px; font-size: 1.05rem; line-height: 1.8; color: var(--white-75); }

/* receipt */
.receipt {
  position: relative; align-self: start; width: min(100%, 340px); justify-self: center; padding: 20px 18px 26px;
  background: #fff; color: #111; font-family: var(--font-ensemble); font-size: 0.8rem; line-height: 1.5;
  rotate: 1.5deg;
  --zig: 8px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
}
.receipt-head { text-align: center; font-weight: 700; font-size: 1rem; letter-spacing: 0.12em; padding-bottom: 10px; border-bottom: 1px dashed #999; }
.receipt-head small { font-weight: 300; font-size: var(--fs-label); letter-spacing: 0.04em; }
.receipt-lines { margin: 10px 0 0; display: grid; gap: 6px; }
.receipt-lines div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.receipt-lines dt { color: #555; }
.receipt-lines dd { margin: 0; font-weight: 700; text-align: right; }
.receipt-total { display: flex; justify-content: space-between; margin-top: 12px; padding: 8px 0; border-block: 2px solid #111; font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; }
.barcode { height: 44px; margin-top: 12px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px, #111 12px 13px, transparent 13px 16px); }
.receipt-foot { margin-top: 8px; text-align: center; font-size: var(--fs-label); color: #555; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border: 2px solid currentColor; font-family: var(--font-ensemble); font-weight: 700; font-size: var(--fs-label); letter-spacing: 0.08em; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #18c964; box-shadow: 0 0 0 2px rgba(24, 201, 100, 0.25); animation: pulse 1.6s ease-in-out infinite; }
.status-pill[data-status="closed"]::before { background: #ff4d4d; box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.25); animation: none; }
@keyframes pulse { 50% { opacity: 0.35; } }

.store-marquee { margin: 8px 0 0; }
.store-marquee span { font-family: var(--font-music); font-size: clamp(2.6rem, 9vw, 6rem); -webkit-text-stroke: 1.5px #fff; letter-spacing: 0.02em; }

/* ---------- Listen first strip ---------- */
.listen { display: grid; gap: 6px; margin-top: 14px; }

/* ---------- Music packs (coming soon) ---------- */
.packs { display: grid; gap: 18px; }
.pack { display: flex; flex-direction: column; border: 2px solid #fff; background: rgba(255, 255, 255, 0.06); }
.pack-cover { display: grid; place-items: end start; aspect-ratio: 16 / 9; padding: 14px; border-bottom: 2px dashed var(--white-50); background: rgba(255, 255, 255, 0.04); } /* placeholder until real covers */
.pack-cover span { font-family: var(--font-music); font-size: 2.4rem; line-height: 0.9; opacity: 0.55; }
.pack-info { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px; }
.pack-soon { align-self: start; padding: 1px 8px; background: #fff; color: var(--blue); font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.08em; }
.pack-name { font-family: var(--font-hero); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.pack-contents { font-size: 0.92rem; color: var(--white-75); }
.pack-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pack-badges li { padding: 2px 8px; border: 1px solid var(--white-50); font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; }
.pack-buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--white-50); }
.btn--sm { min-height: 36px; padding: 0 12px; font-family: var(--font-ensemble); font-size: var(--fs-label); letter-spacing: 0.04em; }
.btn:disabled { opacity: 0.7; border-style: dashed; cursor: not-allowed; } /* still readable, clearly inactive */
.btn:disabled:hover { color: inherit; box-shadow: none; transform: none; }
.btn:disabled::before { transform: scaleX(0); }

/* ---------- Storefronts ---------- */
.shops { display: grid; gap: 16px; }
.shop {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px;
  border: 2px solid var(--blue); background: #fff; color: var(--blue); text-decoration: none;
  box-shadow: inset 0 6px 0 var(--accent, var(--blue));
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background-color 0.25s, color 0.25s;
}
.shop:hover, .shop:focus-visible { transform: translate(-3px, -3px); background: var(--blue); color: #fff; box-shadow: inset 0 6px 0 var(--accent, #fff), 8px 8px 0 rgba(0, 8, 255, 0.2); }
.shop-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.shop-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid currentColor; }
.shop-icon svg { width: 26px; height: 26px; }
.shop-kind { font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; background: var(--accent); color: #111; }
.shop-name { margin-top: 8px; font-family: var(--font-hero); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.shop-url { font-family: var(--font-ensemble); font-size: var(--fs-label); opacity: 0.75; overflow-wrap: anywhere; }
.shop-desc { margin-top: 6px; font-size: 0.95rem; line-height: 1.7; }
.shop .chips { margin-top: 6px; }
.shop .chip { border-color: currentColor; background: transparent; font-size: var(--fs-label); }
.shop-go { margin-top: auto; padding-top: 12px; border-top: 1px dashed currentColor; font-family: var(--font-hero); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.85rem; display: block; }

/* ---------- Commissions ---------- */
.commission-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.menu-note { margin-bottom: 20px; font-size: 0.92rem; line-height: 1.7; opacity: 0.85; }
.menu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.menu-group { padding: 16px 18px 18px; border: 2px solid var(--blue); background: rgba(0, 8, 255, 0.03); }
.menu-head { padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid var(--blue); font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.menu ul { display: grid; gap: 14px; }
.menu li { display: grid; grid-template-columns: minmax(0, max-content) minmax(16px, 1fr) auto; align-items: baseline; gap: 10px; } /* name shrinks/wraps first, price never leaves the box */
.menu-name { display: grid; min-width: 0; overflow-wrap: anywhere; }
.menu-name b { font-family: var(--font-hero); font-size: 1.05rem; line-height: 1.35; }
.menu-name small { font-size: 0.85rem; line-height: 1.5; opacity: 0.8; }
.menu .dots { border-bottom: 2px dotted rgba(0, 8, 255, 0.4); }
.menu .price { font-size: 1.35rem; }
.menu .price small { font-size: 0.8rem; opacity: 1; }

.wizard { margin-top: 28px; padding: 16px 18px 20px; border: 2px solid var(--blue); background: rgba(0, 8, 255, 0.03); }
.wizard-head { padding-bottom: 10px; border-bottom: 2px solid var(--blue); }
.steps { display: grid; gap: 14px; margin-top: 16px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; }
.steps b { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; background: var(--blue); color: #fff; font-family: var(--font-ensemble); font-size: 0.9rem; }
.steps li > span { font-family: var(--font-hero); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.steps small { font-size: 0.85rem; line-height: 1.5; opacity: 0.8; }
.wizard-bar { height: 14px; margin-top: 18px; padding: 2px; border: 2px solid var(--blue); }
.wizard-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 13px); transition: width 2.4s var(--ease); }
.reveal.is-in .wizard-bar i { width: 100%; }

.commission-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- Contact ---------- */
.contact-lead { max-width: 52ch; margin: 12px auto 0; line-height: 1.8; color: var(--white-75); }
.contact-checklist { max-width: 680px; margin: 28px auto 0; padding: 16px 18px; border: 2px solid #fff; text-align: left; }
.contact-checklist ul { display: grid; gap: 6px; margin-top: 10px; }
.contact-checklist li { position: relative; padding-left: 22px; }
.contact-checklist li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.contact-alt { margin-top: 20px; font-size: 0.95rem; }
.contact-alt a { font-weight: 700; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item { padding: 16px 18px 18px; border: 2px solid #fff; background: rgba(255, 255, 255, 0.06); }
.faq-q { display: flex; gap: 10px; font-family: var(--font-hero); font-size: 1.05rem; font-weight: 700; line-height: 1.45; }
.faq-q::before { content: "Q."; flex: none; font-family: var(--font-ensemble); color: var(--white-75); }
.faq-item p { display: flex; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--white-50); line-height: 1.8; color: var(--white-75); }
.faq-item p::before { content: "A."; flex: none; font-family: var(--font-ensemble); font-weight: 700; color: #fff; }

/* ---------- Desktop ---------- */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .store-page .topbar-inner { flex-wrap: nowrap; height: var(--bar-h); }
  .store-page { --subnav-h: 0px; }
  .store-nav { order: 0; flex-basis: auto; overflow: visible; padding: 0; gap: 8px; margin-right: 8px; }
  .store-nav a { padding: 4px 10px; border: 0; border-left: 2px solid #fff; font-weight: 500; font-family: var(--font-hero); font-size: 0.95rem; text-transform: uppercase; transition: background-color 0.2s, color 0.2s; }
  .store-nav a:hover { background: #fff; color: var(--blue); }
  .hero-body { grid-template-columns: 1fr 340px; align-items: center; column-gap: 48px; }
  .shops { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .packs { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .listen { grid-template-columns: 1fr 1fr; }
  .listen .mono-label { grid-column: 1 / -1; }
  .menu { grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; }
  .menu-group:nth-child(2) { grid-row: span 2; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { grid-template-columns: 1fr; justify-items: start; align-items: start; align-content: start; row-gap: 6px; }
  .steps b { grid-row: auto; }
}

@media (min-width: 640px) and (max-width: 1024px), (min-width: 640px) and (hover: none) {
  .shops, .packs { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .status-pill::before { animation: none; }
  .wizard-bar i { transition: none; }
}
