/* ============================================================
   DevAndRepair – store.css
   Store pages (/store/<app>). Uses the variables of style.css.
   ============================================================ */

.store-page {
  position: relative;
  padding: 8rem 0 6rem;
  min-height: 70vh;
  overflow: hidden;
}

.store-wrap {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.store-test {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 0 auto 2rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--r-sm);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  font-size: 0.9rem;
  text-align: center;
}

.store-header {
  text-align: center;
  margin-bottom: 3rem;
}

.store-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 1rem 0;
}

.store-lead {
  max-width: 640px;
  margin: 0 auto 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.store-links {
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: center;
}

.store-page a {
  color: var(--accent-2);
}

.store-h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

#plansTitle {
  text-align: center;
}

/* ── Plans ──────────────────────────────────────────────────── */
.plan-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.plan-card,
.store-card,
.key-result {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-card.is-picked {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.plan-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.plan-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 600;
}

.plan-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  unicode-bidi: isolate;
}

.plan-per {
  color: var(--text-muted);
}

.plan-sub {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  flex: 1;
}

.plan-buy {
  justify-content: center;
  width: 100%;
  min-height: 48px;
}

.plan-buy:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.plan-msg {
  min-height: 1.2em;
  color: #fca5a5;
  font-size: 0.88rem;
  line-height: 1.5;
}

.plan-msg.is-info {
  color: var(--text-muted);
}

.store-fine {
  margin: 1.5rem auto 0;
  max-width: 720px;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.7;
  text-align: center;
}

/* ── Key result ─────────────────────────────────────────────── */
.key-result {
  text-align: center;
  border-color: rgba(16, 185, 129, 0.45);
}

.key-result:focus {
  outline: none;
}

.key-status {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.key-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.key-value {
  padding: 0.9rem 1.2rem;
  border: 1px dashed var(--glass-border);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.3);
  color: #6ee7b7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.key-mail {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Info cards ─────────────────────────────────────────────── */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.store-steps {
  padding-inline-start: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.store-steps li + li {
  margin-top: 0.6rem;
}

.store-steps b {
  color: var(--text);
}

.faq-item {
  border-top: 1px solid var(--glass-border);
  padding: 0.85rem 0;
}

.faq-item summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.faq-item p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.store-lost {
  margin-top: 1.5rem;
}

.store-lost > p {
  color: var(--text-muted);
  line-height: 1.6;
}

.store-lost form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.store-lost input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.store-lost input:focus-visible,
.plan-buy:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .plan-row,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .store-page {
    padding-top: 6.5rem;
  }
}

/* The hidden attribute must win over display: grid / flex above. */
.store-page [hidden] {
  display: none !important;
}
