/* =====================================================================
   The store (store/*.html). Sits on landing.css and contests.css (header,
   buttons, h1, date lists) and adds only the store pieces.
   Scoped to body.store-page.
   ===================================================================== */

.store-page .store-nav { display: flex; gap: 18px; }

.store-page .module-subtitle { margin: 10px 0 0; font-size: 15px; max-width: 62ch; }
.store-test {
    margin: 12px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(252, 211, 77, 0.45);
    background: rgba(2, 6, 23, 0.4);
    color: #fcd34d;
    font-size: 13px;
}
.store-note { color: #cbd5f5; font-size: 13px; margin: 12px 0 0; }
.store-note a { color: #f38ab8; }
.store-note.warn { color: #fcd34d; }

/* ----- shelves ----- */
.store-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.store-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 132px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 245, 0.35);
    background: rgba(2, 6, 23, 0.35);
    color: #cbd5f5;
    font: 600 14px 'Outfit', -apple-system, 'Segoe UI', sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
.store-tab .count {
    margin-left: auto;
    min-width: 2ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
    font-size: 12px;
}
.store-tab .count.none { visibility: hidden; }
.store-tab[aria-selected="true"] { background: #35d07f; border-color: #35d07f; color: #04140b; }
.store-tab[aria-selected="true"] .count { color: #04140b; }
.store-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.store-empty { color: #cbd5f5; font-size: 14px; margin: 6px 0; grid-column: 1 / -1; }

.store-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.45);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
}
.store-card:hover { transform: translateY(-1px); filter: brightness(1.06); }
.store-card:focus-visible { outline: 2px solid rgba(243, 138, 184, 0.85); outline-offset: 2px; }
.store-card-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.store-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store-card h3 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.store-card p { margin: 0; font-size: 13px; color: #cbd5f5; }
.store-meta { color: #94a3b8 !important; font-size: 12px !important; }
.store-price {
    flex: none;
    min-width: 64px;
    text-align: center;
    padding: 2px 10px;
    border-radius: 999px;
    font: 700 13px 'Outfit', sans-serif;
    font-variant-numeric: tabular-nums;
    color: #fff;
    border: 1px solid rgba(203, 213, 245, 0.35);
}
.store-price.free { color: #6ee7a8; border-color: rgba(110, 231, 168, 0.55); }

.store-thumb, .store-shot { aspect-ratio: 17 / 10; background: #111821; overflow: hidden; }
.store-thumb img, .store-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-thumb.blank, .store-shot.blank { display: grid; place-items: center; color: #94a3b8; font: 700 18px 'Outfit', sans-serif; }
.store-thumb.small { width: 96px; flex: none; border-radius: 8px; }

/* ----- one item ----- */
.store-item { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.store-shot { border-radius: 12px; }
.store-shot img { object-fit: contain; }
.store-item-side { display: grid; gap: 8px; min-width: 0; }
.store-kind { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #cbd5f5; }
.store-item .tagline { margin: 0; color: #e5e7eb; font-size: 15px; }
.store-big-price { margin: 4px 0; font: 700 26px 'Outfit', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.store-formats { margin-top: 10px; }

/* ----- checkout, thanks, purchases ----- */
.store-checkout { max-width: 640px; }
.store-checkout .store-files { grid-template-columns: 1fr; }
.store-page .contest-section h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #cbd5f5; margin: 0 0 8px; }
.store-checkout h1 { margin-bottom: 14px; }
.store-summary { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.store-summary .what { flex: 1; min-width: 0; display: grid; gap: 2px; }
.store-summary .what strong { color: #fff; font-size: 16px; }
.store-summary .what strong a { color: inherit; text-decoration: none; }
.store-summary .what span { color: #94a3b8; font-size: 13px; }
.store-summary .amount { font: 700 16px 'Outfit', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.store-totals { margin: 8px 0 16px; }
.store-totals .total dt, .store-totals .total dd { color: #fff; font-weight: 700; }
.store-agree { display: flex; align-items: flex-start; gap: 10px; color: #e5e7eb; font-size: 14px; line-height: 1.45; margin-bottom: 14px; cursor: pointer; }
.store-agree input { margin-top: 3px; accent-color: #35d07f; width: 16px; height: 16px; flex: none; }

.store-files { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 8px; }
.store-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(2, 6, 23, 0.4); }
.store-file .what { flex: 1; min-width: 0; display: grid; gap: 2px; }
.store-file .what strong { color: #fff; font-size: 14px; }
.store-file .what span { color: #94a3b8; font-size: 12px; }
.store-dl { min-width: 136px; }
.store-install { margin-top: 12px; color: #cbd5f5; font-size: 13px; }
.store-install summary { cursor: pointer; }
.store-install ul { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.5; }
.store-install code { font-size: 12px; background: rgba(2, 6, 23, 0.5); padding: 1px 4px; border-radius: 3px; word-break: break-all; }

/* ----- plans (plans/index.html) ----- */
.plans-page .plans-facts { max-width: 420px; margin-top: 14px; }
.plans-page .plans-current h1 { margin-bottom: 4px; }
.plans-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.plans-page .plans-head h2.plans-title { margin: 0; }
.plans-page .module h2.plans-title, .plans-page h2.plans-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #cbd5f5; }
.plans-interval { margin: 0; }
.plans-interval .store-tab { min-width: 110px; justify-content: center; }
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plans-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(203, 213, 245, 0.14);
}
.plans-card.mine { border-color: rgba(53, 208, 127, 0.7); }
.plans-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; }
.plans-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; min-height: 52px; }
.plans-amount { font: 700 28px 'Outfit', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.plans-per { color: #94a3b8; font-size: 13px; }
.plans-save { flex-basis: 100%; color: #6ee7a8; font-size: 12px; }
.plans-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; flex: 1; }
.plans-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; }
.plans-features li svg { flex: none; margin-top: 1px; color: #35d07f; }
.plans-features li.not { color: #64748b; }
.plans-features .dash { flex: none; width: 16px; text-align: center; }
.plans-features em { font-style: normal; color: #fcd34d; }
.plans-action { min-height: 40px; }
.plans-action .contest-btn { width: 100%; justify-content: center; }
.plans-song .store-files { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 12px; }
.plans-song .store-dl { text-decoration: none; }
@media (max-width: 860px) {
    .plans-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .store-item { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .store-tab { min-width: 0; }
    .store-thumb.small { width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    .store-card { transition: none; }
}

/* ----- Founding Subscriber (plans) and the founders list (founders/index.html) ----- */
.plans-was { color: #94a3b8; font-size: 15px; margin-right: 4px; }
.plans-founding { border: 1px solid rgba(252, 211, 77, 0.45); }
.plans-founding .module-subtitle a { color: #fcd34d; }
.plans-founding-form { display: grid; gap: 10px; max-width: 520px; margin-top: 12px; }
.plans-founding-form .modal-field { display: grid; gap: 4px; color: #cbd5f5; font-size: 13px; }
.plans-founding-form input[type="text"] {
    height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(203, 213, 245, 0.35);
    background: rgba(2, 6, 23, 0.45); color: #fff; font: 14px 'Outfit', sans-serif;
}
.plans-founding-form .store-agree { margin: 0; }
.founders-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px;
}
.founders-list li {
    padding: 8px 12px; border-radius: 8px; background: rgba(2, 6, 23, 0.4);
    color: #fff; font: 600 15px 'Outfit', sans-serif; overflow-wrap: anywhere;
}
.store-agree a { color: #f38ab8; }
