/* ==========================================================================
   Checkout — port of pages/checkout.vue (spatial product showcase).
   Chromeless layout (no nav), always dark.
   ========================================================================== */

.pc-checkout-layout {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--pc-surface);
  color: var(--pc-ink);
}

.pc-spatial-page {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  overflow: hidden;
  padding: 1.5rem;
  gap: 2rem;
}

.pc-spatial-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  transition: background 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Top bar ── */

.pc-spatial-top {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 720px;
}

.pc-checkout-tabs-root {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pc-checkout-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.pc-checkout-tab {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 2.5rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  position: relative;
  color: #fff;
}

.pc-checkout-tab:hover { opacity: 0.7; }
.pc-checkout-tab[data-selected='true'] { opacity: 1; }

.pc-checkout-tab-indicator {
  position: absolute;
  bottom: -1.5px;
  left: 0;
  height: 1.5px;
  background: #fff;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.pc-checkout-specs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pc-checkout-spec-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.pc-checkout-spec-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.45;
  color: #fff;
}

.pc-checkout-spec-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #fff;
  opacity: 0.85;
}

.pc-checkout-spec-value--price {
  font-weight: 500;
  opacity: 1;
  color: #fff;
}

.pc-checkout-spec-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── Showcase ── */

.pc-spatial-showcase {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex: 1;
}

@media (min-width: 768px) {
  .pc-spatial-showcase {
    flex-direction: row;
    gap: 6rem;
  }
}

@media (min-width: 1024px) {
  .pc-spatial-showcase { gap: 8rem; }
}

.pc-spatial-visual {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-spatial-ring {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  animation: spatial-spin 20s linear infinite;
  pointer-events: none;
}

@keyframes spatial-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pc-spatial-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  animation: spatial-pulse 4s ease-in-out infinite;
  pointer-events: none;
  transition: background 0.8s ease;
}

@keyframes spatial-pulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.05); opacity: 0.45; }
}

.pc-spatial-image-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pc-spatial-image-wrap { width: 380px; height: 380px; }
}

@media (min-width: 1024px) {
  .pc-spatial-image-wrap { width: 420px; height: 420px; }
}

.pc-spatial-image-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.5) rotate(var(--enter-rotate, -30deg)) translateX(var(--enter-x, -80px));
  filter: blur(15px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  animation: spatial-float 6s ease-in-out infinite;
}

.pc-spatial-image-inner.is-active {
  opacity: 1;
  transform: scale(1) rotate(0) translateX(0);
  filter: blur(0);
  pointer-events: auto;
}

/* The float animation runs on both layers at all times (as in the original):
   because animations own the transform, the crossfade between agents is
   opacity + blur only — the transform values in the rules above never fight
   the float, so there are no fly-in artifacts. */
@keyframes spatial-float {
  0%, 100% { transform: translateY(-8px); }
  50% { transform: translateY(8px); }
}

.pc-spatial-image {
  width: 75%;
  height: 75%;
  object-fit: contain;
  transition: filter 0.5s ease;
}

.pc-spatial-image--hermes {
  filter: grayscale(100%) contrast(1.2) invert(1);
}

.pc-spatial-status {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(10, 10, 10, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pc-spatial-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: spatial-pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spatial-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Details ── */

.pc-spatial-details {
  width: 100%;
  max-width: 420px;
}

.pc-spatial-details-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.pc-spatial-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.pc-spatial-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pc-spatial-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 360px;
}

.pc-spatial-features {
  width: 100%;
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pc-spatial-feature {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pc-spatial-feature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
}

.pc-spatial-feature-value {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.6rem;
}

.pc-spatial-feature-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.pc-spatial-feature-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: 2px;
  opacity: 0.85;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc-spatial-specs-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0;
  background: none;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
}

.pc-spatial-specs-btn:hover { color: #fff; }

.pc-spatial-uptime {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.pc-spatial-uptime svg { opacity: 0.5; }

/* Content swap animation (staggered blur-in) */
.pc-spatial-details-inner.is-entering .pc-spatial-label { animation: spatial-item-in 0.5s 0.04s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pc-spatial-details-inner.is-entering .pc-spatial-title { animation: spatial-item-in 0.5s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pc-spatial-details-inner.is-entering .pc-spatial-desc { animation: spatial-item-in 0.5s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pc-spatial-details-inner.is-entering .pc-spatial-features { animation: spatial-item-in 0.5s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pc-spatial-details-inner.is-entering .pc-spatial-uptime { animation: spatial-item-in 0.5s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }

.pc-spatial-details-inner.is-leaving {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@keyframes spatial-item-in {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── Bottom switcher + CTA ── */

.pc-spatial-bottom {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.pc-spatial-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
}

.pc-spatial-switcher-pill {
  position: absolute;
  bottom: -1.5px;
  left: 0;
  height: 1.5px;
  background: #fff;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.pc-spatial-switcher-btn {
  position: relative;
  z-index: 1;
  padding: 0.75rem 2.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.pc-spatial-switcher-btn:hover { color: rgba(255, 255, 255, 0.7); }
.pc-spatial-switcher-btn[data-active='true'] { color: #fff; }

.pc-spatial-choose-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.875rem 2.5rem;
  border-radius: 0;
  border: 1.5px solid currentColor;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.pc-spatial-choose-btn:hover {
  background: #fff;
  color: #000;
}

.pc-spatial-choose-btn:active { transform: scale(0.98); }

/* ── Modals ── */

.pc-info-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pc-info-modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

.pc-order-modal {
  width: 100%;
  max-width: 420px;
  background: #111;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #fff;
}

.pc-info-modal {
  width: 100%;
  max-width: 440px;
  background: #111;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  color: #fff;
}

.pc-info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.pc-info-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.pc-info-modal-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.pc-info-modal-close:hover { opacity: 1; }

.pc-info-modal-body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.9;
  opacity: 0.7;
  color: #fff;
  margin: 0;
}

.pc-order-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pc-order-agent {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pc-order-agent-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  flex-shrink: 0;
}

.pc-order-agent-img.is-inverted { filter: invert(1); }

.pc-order-agent-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pc-order-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.5;
}

.pc-order-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
}

.pc-order-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  line-height: 1.5;
  opacity: 0.55;
  color: #fff;
}

.pc-order-specs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pc-order-spec {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #fff;
  opacity: 0.85;
}

.pc-order-spec-icon {
  width: 14px;
  height: 14px;
  opacity: 0.45;
  color: #fff;
}

.pc-order-price-row {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-order-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.pc-order-confirm-btn {
  width: 100%;
  text-align: center;
  border: 1.5px solid currentColor;
  background: transparent;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.875rem 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.pc-order-confirm-btn:hover {
  background: #fff;
  color: #000;
}

.pc-checkout-error {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #ff6b6b;
  text-align: center;
  margin: 0;
}

/* ── Mobile ── */

@media (max-width: 767px) {
  .pc-spatial-page {
    padding: 1rem;
    gap: 1.5rem;
    justify-content: flex-start;
    padding-top: 2rem;
  }

  .pc-spatial-showcase {
    gap: 2rem;
    flex: unset;
  }

  .pc-spatial-image-wrap {
    width: 240px;
    height: 240px;
  }

  .pc-spatial-details-inner {
    align-items: center;
    text-align: center;
  }

  .pc-spatial-desc { max-width: 320px; }
  .pc-spatial-features { padding: 1rem; }

  .pc-spatial-switcher-btn {
    padding: 0.625rem 1.75rem;
    font-size: 0.6rem;
  }

  .pc-checkout-tab {
    padding: 0.5rem 1.25rem;
    font-size: 0.6rem;
  }

  .pc-checkout-specs-bar {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.4rem;
  }

  .pc-checkout-spec-divider { display: none; }

  .pc-info-modal,
  .pc-order-modal { padding: 1.5rem; }
}
