/* Psychology AI Store: premium pre-order collection. Scoped to .store-page so
   the shared navigation and footer keep their standalone-page styling. */
.store-page {
  --store-ink: #241F3D;
  --store-plum: #2F2A52;
  --store-plum-deep: #1E1A36;
  --store-lavender: #CFC6E6;
  --store-lilac: #EEE9F7;
  --store-mist: #F7F4FB;
  --store-mint: #BDE6E2;
  --store-muted: #5E5873;
  --store-line: rgba(47, 42, 82, 0.12);
  --store-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  padding: 120px 5% 72px;
  background:
    radial-gradient(1100px 520px at 50% -120px, #E7E0F4 0%, rgba(231, 224, 244, 0) 70%),
    var(--store-mist);
  color: var(--store-ink);
  font-family: 'Poppins', sans-serif;
}

.store-page > section { max-width: 1180px; margin: 0 auto 88px; }

/* Hero */
.store-hero { text-align: center; padding: 24px 0 8px; }
.store-eyebrow {
  margin: 0 0 14px;
  color: #6A5490;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.store-eyebrow--light { color: var(--store-mint); }
.store-title {
  margin: 0 auto 22px;
  max-width: 820px;
  font-family: var(--store-serif);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--store-plum-deep);
}
.store-lede {
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--store-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}
.store-promises {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store-promises li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--store-plum);
  font-size: 0.85rem;
  font-weight: 500;
}
.store-promises li::before { content: '✦'; color: #8C7BC0; font-size: 0.75rem; }

/* Product grid */
.store-collection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.store-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(36, 31, 61, 0.04), 0 24px 48px -28px rgba(36, 31, 61, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  scroll-margin-top: 110px;
}
.store-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(36, 31, 61, 0.04), 0 36px 64px -30px rgba(36, 31, 61, 0.38);
}
.store-product-media { position: relative; overflow: hidden; background: var(--store-lilac); aspect-ratio: 1 / 1; }
.store-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.store-product:hover .store-product-media img { transform: scale(1.04); }
.store-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(30, 26, 54, 0.86);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.store-product-body { display: flex; flex: 1; flex-direction: column; padding: 30px 32px 32px; }
.store-product-kicker {
  margin: 0 0 8px;
  color: #8C7BC0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.store-product-name {
  margin: 0 0 12px;
  font-family: var(--store-serif);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--store-plum-deep);
}
.store-product-text { margin: 0 0 18px; color: var(--store-muted); line-height: 1.75; }
.store-product-includes { flex: 1; margin: 0 0 26px; padding: 0; list-style: none; }
.store-product-includes li {
  position: relative;
  padding: 7px 0 7px 26px;
  border-top: 1px solid var(--store-line);
  color: var(--store-ink);
  font-size: 0.92rem;
}
.store-product-includes li::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 2px;
  width: 12px;
  height: 7px;
  border-left: 2px solid #6A5490;
  border-bottom: 2px solid #6A5490;
  transform: translateY(-70%) rotate(-45deg);
}
.store-product-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.store-price {
  margin: 0;
  font-family: var(--store-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--store-plum-deep);
}
.store-price > span:first-child { font-size: 1.1rem; }
.store-price--light { color: #fff; }
.store-price-was { margin-left: 6px; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 400; color: rgba(255, 255, 255, 0.6); }
.store-save {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--store-mint);
  color: var(--store-plum-deep);
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

/* Buttons */
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #3A3366 0%, #241F3D 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(36, 31, 61, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.store-button::after { content: '→'; transition: transform 0.2s ease; }
.store-button:hover { transform: translateY(-1px); filter: brightness(1.12); box-shadow: 0 16px 28px -12px rgba(36, 31, 61, 0.75); }
.store-button:hover::after { transform: translateX(3px); }
.store-button--light { background: #fff; color: var(--store-plum-deep); box-shadow: none; }
.store-button--full { width: 100%; }
.store-page button:focus-visible,
.store-page a:focus-visible,
.store-page input:focus-visible,
.store-page select:focus-visible { outline: 3px solid #8C7BC0; outline-offset: 3px; }

/* Bundle */
.store-bundle {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 56px;
  border-radius: 32px;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(140, 123, 192, 0.35), rgba(140, 123, 192, 0) 70%),
    linear-gradient(135deg, var(--store-plum) 0%, var(--store-plum-deep) 100%);
  color: #fff;
  box-shadow: 0 40px 80px -40px rgba(30, 26, 54, 0.6);
}
.store-bundle-title {
  margin: 0 0 16px;
  font-family: var(--store-serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
}
.store-bundle-text { margin: 0 0 30px; color: rgba(255, 255, 255, 0.78); line-height: 1.8; }
.store-bundle-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.store-bundle-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.6);
}
.store-bundle-gallery img:nth-child(even) { transform: translateY(22px); }

/* How it works */
.store-how { text-align: center; }
.store-section-title {
  margin: 0 0 36px;
  font-family: var(--store-serif);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 500;
  color: var(--store-plum-deep);
}
.store-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.store-steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 26px;
  border: 1px solid var(--store-line);
  border-radius: 22px;
  background: #fff;
  text-align: left;
  counter-increment: step;
}
.store-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--store-serif);
  font-size: 1.6rem;
  color: #8C7BC0;
}
.store-steps strong { font-size: 1.05rem; color: var(--store-plum-deep); }
.store-steps span { color: var(--store-muted); line-height: 1.7; font-size: 0.94rem; }
.store-note { max-width: 680px; margin: 0 auto; color: var(--store-muted); font-size: 0.85rem; line-height: 1.7; }

/* Pre-order dialog */
.store-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: max-content;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #fff;
  color: var(--store-ink);
  box-shadow: 0 40px 100px -30px rgba(30, 26, 54, 0.55);
}
.store-dialog::backdrop { background: rgba(30, 26, 54, 0.55); backdrop-filter: blur(4px); }
.store-dialog[open] { animation: store-dialog-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes store-dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.store-form { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 36px 32px 30px; }
.store-form .store-eyebrow { margin: 0; }
.store-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--store-lilac);
  color: var(--store-plum-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.store-dialog-title { margin: -6px 0 0; font-family: var(--store-serif); font-size: 1.9rem; font-weight: 500; color: var(--store-plum-deep); }
.store-dialog-price { margin: -10px 0 4px; color: var(--store-muted); }
.store-field { display: flex; flex-direction: column; gap: 6px; }
.store-field label { font-size: 0.82rem; font-weight: 600; color: var(--store-plum); }
.store-field input,
.store-field select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(47, 42, 82, 0.22);
  border-radius: 14px;
  background: #fff;
  color: var(--store-ink);
  font: inherit;
  font-size: 16px;
}
.store-field input[aria-invalid="true"] { border-color: #B3261E; }
.store-qty { display: inline-flex; align-items: center; width: max-content; border: 1px solid rgba(47, 42, 82, 0.22); border-radius: 14px; overflow: hidden; }
.store-qty button { width: 46px; min-height: 46px; border: 0; background: var(--store-lilac); color: var(--store-plum-deep); font-size: 1.2rem; cursor: pointer; }
.store-qty input { width: 64px; min-height: 46px; border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; }
.store-qty input::-webkit-outer-spin-button,
.store-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.store-form-error { margin: 0; color: #B3261E; font-size: 0.88rem; }
.store-form-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--store-line);
  font-weight: 500;
}
.store-form-total strong { font-family: var(--store-serif); font-size: 1.6rem; color: var(--store-plum-deep); }
.store-form-fine { margin: 0; color: var(--store-muted); font-size: 0.8rem; line-height: 1.6; text-align: center; }
.store-form[hidden] { display: none; }
.store-form-success { text-align: center; }
.store-form-success .store-dialog-title { margin: 0 0 8px; }

@media (max-width: 900px) {
  .store-collection { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }
  .store-bundle { grid-template-columns: 1fr; padding: 40px 28px; }
  .store-steps { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
  .store-page { padding: 96px 16px 40px; }
  .store-page > section { margin-bottom: 56px; }
  .store-product-body { padding: 24px 22px 26px; }
  .store-product-buy .store-button { width: 100%; }
  .store-bundle-gallery img:nth-child(even) { transform: none; }
  .store-form { padding: 32px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .store-product,
  .store-product-media img,
  .store-button,
  .store-dialog[open] { transition: none; animation: none; }
  .store-product:hover,
  .store-product:hover .store-product-media img { transform: none; }
}
