/* Store page (/store). Loaded after style.css; cards reuse .price-card + holo. */

.store { max-width: 980px; margin: 0 auto; padding-top: 72px; padding-bottom: 96px; }
.store a:not(.btn) { color: var(--accent-2); text-decoration: none; }
.store a:not(.btn):hover { text-decoration: underline; }
.store strong { color: var(--text); font-weight: 600; }

.store-hero { position: relative; text-align: center; max-width: 640px; margin: 0 auto 56px; }
.store-hero > :not(.store-float) { position: relative; z-index: 1; }

/* Badges drifting around the heading (wide screens only) */
.store-float { position: absolute; inset: -30px -170px -10px; pointer-events: none; }
.store-float img { position: absolute; display: block; opacity: 0.9; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.store-float .f1 { left: 2%;  top: 8%;  transform: rotate(-12deg); }
.store-float .f2 { right: 3%; top: 2%;  transform: rotate(10deg); }
.store-float .f3 { left: 10%; bottom: 6%; transform: rotate(8deg); }
.store-float .f4 { right: 11%; bottom: 10%; transform: rotate(-8deg); }
.store-float .f5 { left: -2%; top: 52%; transform: rotate(-6deg); }
.store-float .f6 { right: -1%; top: 56%; transform: rotate(14deg); }
@media (prefers-reduced-motion: no-preference) {
  .store-float img { animation: store-drift 6s ease-in-out infinite alternate; }
  .store-float .f2 { animation-duration: 7.5s; animation-delay: -2s; }
  .store-float .f3 { animation-duration: 5.5s; animation-delay: -1s; }
  .store-float .f4 { animation-duration: 8s;   animation-delay: -3s; }
  .store-float .f5 { animation-duration: 6.5s; animation-delay: -4s; }
  .store-float .f6 { animation-duration: 7s;   animation-delay: -5s; }
}
@keyframes store-drift {
  from { translate: 0 0; }
  to   { translate: 0 -12px; }
}
@media (max-width: 1000px) { .store-float { display: none; } }
.store-hero .eyebrow { margin-bottom: 14px; }
.store-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.store-hero .lead { color: var(--text-dim); font-size: 1.05rem; line-height: 1.6; margin: 0; }

.store-section { margin-top: 56px; }
.store-group { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 12px; }
.store-sub { color: var(--text-dim); line-height: 1.65; font-size: 0.97rem; max-width: 720px; margin: 0 0 22px; }
.store-small { margin: 14px 0 0; font-size: 0.88rem; color: var(--text-dim); }

/* Pro: one wide card, button side + perks side */
.store-pro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; margin-top: 22px; }
.store-pro-main .store-small { text-align: center; }
.store-pro-list { margin: 0; padding: 0 0 0 32px; border-top: 0; border-left: 1px solid var(--border); }

/* Badge cards */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.store-subgroup { margin: 36px 0 16px; font-size: 1.02rem; font-weight: 700; color: var(--text); }

/* 3 + 2, with the short row centred */
.store-grid-buy { display: flex; flex-wrap: wrap; justify-content: center; }
.store-grid-buy > .store-card { flex: 0 1 calc((100% - 40px) / 3); min-width: 260px; }
.store-card { padding: 24px; display: flex; flex-direction: column; }
.store-card .price-tag { margin: 0 0 16px; padding-top: 16px; }
/* Preview, price and button sit at the bottom, so they line up across a row
   however long the description is. */
.price-card.store-card .store-desc { margin-bottom: 16px; }
.price-card.store-card .store-preview { margin-top: auto; }
.store-card .price-amount { font-size: 1.7rem; }
.store-card .btn { padding: 12px 20px; font-size: 0.95rem; }
.store-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.store-desc { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; }

/* Paid cards take their badge's colours (--c light, --c2 dark) */
.price-card.store-card {
  border-color: color-mix(in srgb, var(--c2) 24%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c2) 11%, var(--surface)) 0%, var(--surface) 42%);
}
.store-card .btn-ghost {
  background: color-mix(in srgb, var(--c2) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c2) 42%, var(--border));
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.store-card .btn-ghost:hover {
  background: color-mix(in srgb, var(--c2) 28%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c2) 70%, var(--border)), 0 8px 22px -10px color-mix(in srgb, var(--c2) 70%, transparent);
}
.store-card .btn-ghost:active { transform: scale(0.97); }
.store-card .btn-ghost:focus-visible { outline: 2px solid var(--c2); outline-offset: 2px; }
.price-card.store-card:hover {
  border-color: color-mix(in srgb, var(--c2) 60%, var(--border));
  box-shadow: var(--shadow-md), 0 18px 46px -18px color-mix(in srgb, var(--c2) 70%, transparent);
}
.price-card.store-card .price-amount {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, var(--c2)), var(--c2));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Big badge on a soft glow of its own colour */
.store-glyph {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c2) 38%, transparent) 0%, transparent 70%);
}
.store-glyph img { display: block; width: 56px; height: 56px; filter: drop-shadow(0 6px 12px color-mix(in srgb, var(--c2) 45%, transparent)); }

/* Back DaLinkz: metallic edge, a slow shine, and Royal's ribbon */
.price-card.store-tier {
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c2) 13%, var(--surface)) 0%, var(--surface) 42%) padding-box,
    linear-gradient(135deg, var(--c), var(--c2) 50%, var(--c)) border-box;
}
.store-tier .holo-shine {
  background: repeating-linear-gradient(115deg,
    transparent 0%,
    color-mix(in srgb, var(--c) 70%, transparent) 7%,
    color-mix(in srgb, var(--c2) 50%, transparent) 12%,
    transparent 19%);
  background-size: 300% 300%;
  background-position: var(--hx, 50%) var(--hy, 50%);
}
.store-tier .holo-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--c) 22%, transparent) 50%, transparent 65%);
  transform: translateX(-120%);
}
@media (prefers-reduced-motion: no-preference) {
  .store-tier .holo-fx::after { animation: store-sweep 6s ease-in-out infinite; }
  .store-tier-diamond .holo-fx::after { animation-delay: 1.5s; }
  .store-tier-royal .holo-fx::after { animation-delay: 3s; }
}
@keyframes store-sweep {
  0%, 70% { transform: translateX(-120%); }
  100%    { transform: translateX(120%); }
}
.store-ribbon { background: linear-gradient(90deg, var(--c), var(--c2)); color: #1c1403; }

/* "YourName" preview */
.store-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 16px 0 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.store-ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-weight: 800;
}
.store-who { display: flex; flex-direction: column; min-width: 0; }
.store-who-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.store-who-name img { display: block; width: 18px; height: 18px; }
.store-who-link { font-size: 0.8rem; color: var(--text-faint); }

/* Earned + invitation cards: no tilt, no price */
.store-card-plain {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.store-card-plain > .store-small { margin-top: auto; padding-top: 14px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.store-badges img { display: block; width: 26px; height: 26px; }
.store-grid-small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.store-card-row { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.store-card-row > img { flex: none; display: block; width: 26px; height: 26px; }

/* Earned + invitation cards take their badge's colours too */
.store-card-plain[style] {
  border-color: color-mix(in srgb, var(--c2) 24%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c2) 10%, var(--surface)) 0%, var(--surface) 55%);
}
.store-card-row[style] { background: linear-gradient(90deg, color-mix(in srgb, var(--c2) 12%, var(--surface)) 0%, var(--surface) 60%); }
.store-row-glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c2) 40%, transparent) 0%, transparent 70%);
}
.store-row-glyph img { display: block; width: 30px; height: 30px; filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--c2) 45%, transparent)); }
.store-card-row .store-title { margin-bottom: 2px; }
.store-card-row .store-desc { font-size: 0.88rem; }

/* Earn: referral medals as a ladder across a full-width card */
.store-grid-earn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.store-card-wide { grid-column: 1 / -1; }
.store-ladder {
  position: relative;
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.store-ladder::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #9A3412, #64748B, #CA8A04, #2563EB, #E11D48);
  opacity: 0.55;
}
.store-ladder li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.store-ladder img {
  display: block;
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c2) 45%, var(--border));
}
.store-ladder span { font-size: 0.8rem; color: var(--text-faint); line-height: 1.3; }
.store-ladder strong { display: block; font-size: 0.95rem; color: var(--text); }

/* FAQ reuses the homepage .faq-item look */
.store .store-faq { max-width: none; margin: 0; }

/* How buying works */
.store-steps { margin: 0; padding-left: 22px; max-width: 720px; }
.store-steps li { color: var(--text-dim); line-height: 1.65; font-size: 0.97rem; margin-bottom: 8px; }

/* Badges hop when their card is hovered (referral medals one after another) */
@media (prefers-reduced-motion: no-preference) {
  .store-glyph img,
  .store-who-name img,
  .store-badges img,
  .store-ladder img,
  .store-card-row > img,
  .store-row-glyph img { transform-origin: 50% 100%; }
  .store-card:hover .store-glyph img,
  .store-card:hover .store-who-name img,
  .store-card:hover .store-badges img,
  .store-card:hover .store-ladder img,
  .store-card-row:hover > img,
  .store-card-row:hover .store-row-glyph img { animation: store-hop 0.7s cubic-bezier(0.3, 0.7, 0.4, 1); }
  .store-card:hover .store-who-name img { animation-delay: 0.12s; }
  .store-card:hover .store-ladder li:nth-child(2) img { animation-delay: 0.08s; }
  .store-card:hover .store-ladder li:nth-child(3) img { animation-delay: 0.16s; }
  .store-card:hover .store-ladder li:nth-child(4) img { animation-delay: 0.24s; }
  .store-card:hover .store-ladder li:nth-child(5) img { animation-delay: 0.32s; }
  .store-card-plain { transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
  .store-card-plain:hover {
    border-color: color-mix(in srgb, var(--c2, var(--accent-2)) 60%, var(--border));
    box-shadow: 0 16px 40px -18px color-mix(in srgb, var(--c2, var(--accent-2)) 70%, transparent);
    transform: translateY(-3px);
  }
}
@keyframes store-hop {
  0%   { transform: translateY(0) scale(1); }
  20%  { transform: translateY(0) scale(1.12, 0.88); }
  45%  { transform: translateY(-7px) scale(0.94, 1.08) rotate(-6deg); }
  70%  { transform: translateY(0) scale(1.08, 0.92); }
  85%  { transform: translateY(-2px) scale(1); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .store { padding-top: 48px; }
  .store-pro { grid-template-columns: 1fr; gap: 24px; }
  .store-grid-buy > .store-card { flex-basis: 100%; min-width: 0; }
  .store-grid-earn { grid-template-columns: 1fr; }
  .store-ladder img { width: 34px; height: 34px; }
  .store-ladder::before { top: 20px; }
  .store-pro-list { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--border); }
}
