/* ============================================================
   Sparky Host — store.css
   Storefront pages inside the marketing site. Uses main.css
   tokens throughout so the store is visually continuous with the
   homepage. Mobile-first: every layout starts single-column and
   opts into wider arrangements at breakpoints.
   ============================================================ */

.store-main {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h, 72px) + 20px) 0 var(--s-8, 3rem);
}
/* Nothing in the store may cause sideways scroll. */
.store-main, .store-hero, .plan-grid { max-width: 100%; box-sizing: border-box; }

/* ══════════ CATEGORY HERO (Split Layout matching Homepage) ══════════ */
.store-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4, 1.5rem);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto 32px auto;
  padding: 0 var(--s-4, 1.5rem);
  text-align: left;
}
@media (min-width: 900px) {
  .store-hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--s-8, 3rem);
    padding: 0 var(--s-6, 2rem);
    margin-bottom: 40px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 580px;
  width: 100%;
}

.hero-stage {
  display: none;
  pointer-events: none;
}
@media (min-width: 900px) {
  .hero-stage {
    display: block;
    min-height: 220px;
  }
}

.store-crumb {
  display: flex; align-items: center; gap: 8px; justify-content: flex-start;
  font-size: 12px; color: var(--ink-3, rgba(255,255,255,0.4)); margin-bottom: 8px; flex-wrap: wrap;
}
.store-crumb a { color: var(--ink-2, rgba(255,255,255,0.7)); text-decoration: none; transition: color 0.25s; }
.store-crumb a:hover { color: var(--spark, #FF9900); }

.store-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid rgba(255, 153, 0, 0.28);
  background: rgba(255, 153, 0, 0.07);
  color: var(--spark, #FF9900);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px;
}

.store-hero h1 {
  font-family: var(--font-display, -apple-system, sans-serif);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.08;
  margin: 0 0 8px 0;
  color: #ffffff;
}
.store-hero h1 .accent {
  background: linear-gradient(120deg, var(--spark, #FF9900), var(--spark-2, #FFA726));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.store-hero-desc {
  color: var(--ink-2, rgba(255,255,255,0.65)); font-size: 14.5px;
  line-height: 1.55; max-width: 520px; margin: 0 0 14px 0;
}

/* Feature row */
.hero-features { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin-bottom: 0; }
.hero-feature {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-2, rgba(255,255,255,0.8)); font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.hero-feature svg { width: 13px; height: 13px; color: var(--spark, #FF9900); flex-shrink: 0; }
.scroll-hint:hover {
  color: var(--spark, #FF9900);
  transform: translateY(2px);
}
.scroll-hint-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--spark, #FF9900), transparent);
  display: block;
  animation: hint-drop 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  transform-origin: top;
}
@keyframes hint-drop {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════ PLAN GRID ══════════ */
.plan-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--s-6, 2rem);
  max-width: 1140px; margin: 0 auto; padding: 0 var(--s-4, 1.5rem);
  align-items: stretch;
}
@media (min-width: 760px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.plan-card {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(14, 14, 17, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 153, 0, 0.34);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 153, 0, 0.1);
}

.plan-badge {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--spark, #FF9900); color: #140b00;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}

/* Plan artwork */
.plan-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: rgba(0, 0, 0, 0.4); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.plan-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.plan-card:hover .plan-media img { transform: scale(1.03); }

.plan-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.plan-name { font-family: var(--font-display, -apple-system, sans-serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: #ffffff; margin: 0; }

.plan-price-wrap { display: flex; flex-direction: column; gap: 3px; }
.plan-discount-row { display: flex; align-items: center; gap: 8px; }
.plan-price-orig {
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through; text-decoration-color: #ef4444;
}
.plan-discount-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 153, 0, 0.15); border: 1px solid rgba(255, 153, 0, 0.45);
  color: var(--spark, #FF9900); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price .amt {
  font-family: var(--font-display, -apple-system, sans-serif); font-size: 32px;
  font-weight: 700; color: #ffffff; letter-spacing: -0.02em; line-height: 1;
}
.plan-price .per { color: rgba(255, 255, 255, 0.4); font-size: 13.5px; font-weight: 500; }
.plan-tax-note { font-size: 11px; color: rgba(255, 255, 255, 0.35); margin-top: -6px; }

/* Specs 2x2 grid */
.plan-specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.plan-spec {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  min-width: 0;
  transition: border-color 0.3s, background 0.3s;
}
.plan-card:hover .plan-spec { border-color: rgba(255, 255, 255, 0.14); }

.plan-spec-ic {
  flex-shrink: 0; width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--spark, #FF9900);
}
.plan-spec-ic svg { width: 18px; height: 18px; }

.plan-spec-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.plan-spec-val {
  font-family: var(--font-display, -apple-system, sans-serif);
  font-size: 15px; font-weight: 700;
  color: #ffffff; line-height: 1.15;
  white-space: nowrap;
}
.plan-spec-key {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

/* Feature list */
.plan-features { display: grid; gap: 9px; }
.plan-feature { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.8); font-size: 13px; }
.plan-feature-ic { flex-shrink: 0; width: 16px; height: 16px; display: grid; place-items: center; color: var(--spark, #FF9900); }
.plan-feature-ic svg { width: 14px; height: 14px; }

/* Deploy button */
.deploy-btn {
  margin-top: auto; width: 100%; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 24px; border: none; border-radius: 999px;
  background: linear-gradient(100deg, #F97316 0%, var(--spark, #FF9900) 45%, #FBBF24 100%);
  color: #1a0e00; font-family: var(--font-body, -apple-system, sans-serif); font-size: 15px; font-weight: 700;
  letter-spacing: 0.01em; cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(255, 153, 0, 0.6);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), filter 0.28s;
}
.deploy-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -6px rgba(255, 153, 0, 0.85); filter: brightness(1.04); }
.deploy-btn:active { transform: translateY(0); }
.deploy-btn .arw {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; transition: transform 0.28s var(--ease-out);
}
.deploy-btn .arw svg { width: 16px; height: 16px; }
.deploy-btn:hover .arw { transform: translateY(-50%) translateX(4px); }

/* ══════════ CATEGORY CARDS (store landing) ══════════ */
.cat-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s-4, 1.5rem);
  max-width: 1140px; margin: 0 auto; padding: 0 var(--s-3, 1rem);
}
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cat-card {
  position: relative; display: flex; flex-direction: column;
  background: rgba(14, 14, 17, 0.8); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px; overflow: hidden;
  text-decoration: none; color: inherit;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}
.cat-card:hover {
  transform: translateY(-4px); border-color: rgba(255, 153, 0, 0.36);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 32px rgba(255, 153, 0, 0.12);
}
.cat-art {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 62%, rgba(255, 153, 0, 0.12), transparent 66%), rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.cat-art img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
  transition: transform 0.55s var(--ease-out);
}
.cat-card:hover .cat-art img { transform: translateY(-4px) scale(1.02); }
.cat-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.cat-body h2 { font-family: var(--font-display, -apple-system, sans-serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: #ffffff; margin: 0; }
.cat-body p { color: rgba(255, 255, 255, 0.6); font-size: 13.5px; line-height: 1.6; flex: 1; margin: 0; }
.cat-cta { display: inline-flex; align-items: center; gap: 7px; color: var(--spark, #FF9900); font-size: 13px; font-weight: 700; margin-top: 4px; }
.cat-cta svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.cat-card:hover .cat-cta svg { transform: translateX(4px); }

/* ══════════ TRUST BAR ══════════ */
.trust-bar {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  max-width: 1080px; margin: var(--s-8, 3rem) auto 0; padding: 0 var(--s-3, 1rem);
}
@media (min-width: 900px) { .trust-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.trust-item {
  background: rgba(14, 14, 17, 0.7); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px;
  padding: 20px 16px; text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.trust-item:hover { border-color: rgba(255, 153, 0, 0.3); transform: translateY(-3px); }
.trust-ic {
  width: 36px; height: 36px; border-radius: 10px; margin: 0 auto 10px;
  display: grid; place-items: center;
  background: rgba(255, 153, 0, 0.1); color: var(--spark, #FF9900);
}
.trust-ic svg { width: 18px; height: 18px; }
.trust-item h3 { font-family: var(--font-display, -apple-system, sans-serif); font-size: 15px; font-weight: 600; margin: 0 0 4px 0; color: #ffffff; }
.trust-item p { color: rgba(255, 255, 255, 0.5); font-size: 12.5px; line-height: 1.5; margin: 0; }

/* ══════════ SECTION HEADS / EMPTY ══════════ */
.store-sec-head {
  text-align: left;
  max-width: 1240px;
  margin: 0 auto 28px auto;
  padding: 0 var(--s-4, 1.5rem);
}
@media (min-width: 900px) {
  .store-sec-head {
    padding: 0 var(--s-6, 2rem);
    margin-bottom: 32px;
  }
}
.store-sec-head h2 { font-family: var(--font-display, -apple-system, sans-serif); font-size: clamp(24px, 3.5vw, 32px); font-weight: 600; letter-spacing: -0.02em; color: #ffffff; margin: 0; }
.store-sec-head p { color: rgba(255, 255, 255, 0.65); font-size: 14.5px; margin-top: 6px; margin-bottom: 0; }

.store-empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; }
.store-empty h3 { font-family: var(--font-display, -apple-system, sans-serif); font-size: 20px; margin-bottom: 8px; color: #ffffff; }
.store-empty p { color: rgba(255, 255, 255, 0.6); margin-bottom: 16px; }
