/* Shared CTA + modal styling for the full-screen deck gallery */

/* CTA that lives in the top nav */


.shell-cta-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary.shell-gallery-trigger {
   margin-right: 0;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.18);
  padding: 8px 14px;
  height: 34px;
  font-size: 13px;
  white-space: nowrap;
}

.shell-onboarding-trigger {
  height: 34px;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
  color: #cbd5e1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.4);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 160ms ease;
}

.shell-onboarding-trigger .btn-icon {
  transition: transform 200ms ease;
}

.shell-onboarding-trigger:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}

.shell-onboarding-trigger:hover .btn-icon {
  transform: translateX(2px);
}

.shell-onboarding-trigger:active {
  transform: translateY(1px);
}

.btn-primary.shell-gallery-trigger .btn-icon {
  transition: transform 200ms ease;
}

.btn-primary.shell-gallery-trigger:hover .btn-icon {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .btn-primary.shell-gallery-trigger {
    margin-right: 16px;
    padding: 8px 12px;
    height: 32px;
  }
}

/* Prevent background scroll when the gallery is open */
body.deck-gallery-open {
  overflow: hidden;
}

.deck-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 12000;
  background: rgba(10, 23, 30, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(14px, 3vw, 30px);
}

.deck-modal-backdrop.is-open {
  display: flex;
}

.deck-modal {
  width: min(1160px, 96vw);
  height: min(780px, 90vh);
  background: radial-gradient(circle at 0 0, #0f172a 0%, #020617 55%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 22px;
  box-shadow:
    0 26px 80px rgba(15, 23, 42, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.deck-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.08), transparent 45%);
  pointer-events: none;
}

.deck-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 22px) clamp(18px, 3vw, 26px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  position: relative;
  z-index: 2;
}

.deck-modal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.deck-modal-brand img {
  height: 24px;
  width: auto;
  display: block;
}

.deck-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deck-modal-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.deck-modal-subtitle {
  font-size: 13px;
  color: #9ca3af;
}

.deck-modal-close {
  border: none;
  background: rgba(15, 23, 42, 0.65);
  color: #9ca3af;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 200ms ease;
}

.deck-modal-close:hover {
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.deck-modal-close:active {
  transform: translateY(1px);
}

.deck-slider-shell {
  flex: 1;
  position: relative;
  padding: clamp(14px, 3vw, 24px) clamp(18px, 3vw, 26px) clamp(10px, 3vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1;
}

.deck-slider-nav {
  position: absolute;
  left: var(--deck-slide-padding);
  bottom: clamp(16px, 3vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.deck-slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.12);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0ea5e9;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35); 
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 120ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.deck-slider-arrow i {
  font-size: 18px;
}

.deck-slider-arrow:hover:not(:disabled) {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
  color: hsl(190, 95%, 82%);
  box-shadow:
    0 12px 30px rgba(2, 6, 23, 0.55),
     0 0 0 1px rgba(56, 189, 248, 0.14);
  transform: translateY(-0.5px);
  text-shadow:
    0 0 4px rgba(56, 189, 248, 0.45),
    0 0 6px rgba(168, 85, 247, 0.35);
}

.deck-slider-arrow:disabled,
.deck-slider-arrow[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(148, 163, 184, 0.28);
  color: #94a3b8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.deck-slider-frame {
  position: relative;
  --deck-slide-padding: clamp(18px, 3vw, 36px);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.3));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex: 1;
}

.deck-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(18px, 3vw, 32px);
   padding: var(--deck-slide-padding);
  padding-right: 0;
  padding-bottom: clamp(18px, 4vh, 36px);
  align-items: flex-start;
  opacity: 0;
  transform: translateX(52px);
  transition:
    opacity 480ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.deck-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 3;
}

.deck-slide.is-exit-left {
  opacity: 0;
  transform: translateX(-52px);
  z-index: 2;
}

.deck-slide.is-exit-right {
  opacity: 0;
  transform: translateX(52px);
  z-index: 2;
}

.deck-slide.from-right {
  transform: translateX(68px);
}

.deck-slide.from-left {
  transform: translateX(-68px);
}

.deck-slide-visual {
  position: relative;
  width: 100%;
  height: min(540px, 68vh);
 overflow: visible;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: flex-start;
}

.deck-slide-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 5px 0 0 5px;
}

.deck-slide-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  margin: auto;
}
.deck-slide-tags {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.deck-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 50px;
  background: rgba(34, 211, 238, 0.08);
  color: rgba(94, 234, 212, 0.9);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.deck-slide-title {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  color: #e5e7eb;
}

.deck-slide-kicker {
  font-size: 15px;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 520px;
}

.deck-slide-metadata {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  color: #cbd5e1;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deck-slide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
   width: 36px;
  height: 36px;
  border-radius: 12px;
   background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #0b1220;
  font-weight: 700;
  box-shadow:
    0 0 8px rgba(34, 211, 238, 0.25),
    inset 0 0 2px rgba(255, 255, 255, 0.12);
}

.deck-slide-step.is-brand-step {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  box-shadow:
     0 8px 18px rgba(15, 23, 42, 0.6),
    0 0 0 rgba(56, 189, 248, 0);
  backdrop-filter: blur(3px);
  text-shadow: none;
  animation: deckBrandGlow 3.6s ease-in-out infinite alternate;
}

.deck-slide-meta-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: auto auto auto 0;
}

.deck-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 8px 4px;
}

@keyframes deckBrandGlow {
  0% {
    filter:
    drop-shadow(0 0 0 rgba(56, 189, 248, 0))
      drop-shadow(0 0 0 rgba(56, 189, 248, 0));
  }
  100% {
    filter:
      drop-shadow(0 0 6px rgba(56, 189, 248, 0.25))
      drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
  }
}


.deck-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.5);
  transition:
    width 240ms ease,
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease;
  cursor: pointer;
  padding: 0;
}

.deck-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.35);
  filter:
    drop-shadow(0 0 6px rgba(34, 211, 238, 0.32))
    drop-shadow(0 0 10px rgba(168, 85, 247, 0.2));
  transform: translateY(-1px);
}

.deck-dot:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .deck-slide {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    padding-right: clamp(16px, 3vw, 24px);
  }

  .deck-slider-nav {
    top: clamp(12px, 3vw, 18px);
    right: clamp(12px, 3vw, 18px);
    left: auto;
    bottom: auto;
    justify-content: flex-end;
  }

  .deck-slide-visual {
    order: 2;
    height: min(360px, 48vh);
    border-radius: 14px;
  }

  .deck-slide-copy {
    order: 1;
  }
}

@media (max-width: 600px) {
  .deck-modal {
    height: min(720px, 92vh);
  }

  .deck-modal-header {
    padding: 14px 16px;
  }

  .deck-slider-shell {
    padding: 12px;
    gap: 12px;
  }

  .deck-slide {
    padding: 16px;
  }

  .deck-slide-title {
    font-size: clamp(22px, 6vw, 28px);
  }
  }

/* ── Onboarding modal (first-login + nav CTA) ───────────────────────────── */

body.onboard-modal-open {
  overflow: hidden;
}

.onboard-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 12500;
  background: rgba(10, 23, 30, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(14px, 3vw, 30px);
}

.onboard-modal-backdrop.is-open {
  display: flex;
}

.onboard-modal {
  width: min(1160px, 96vw);
  background: radial-gradient(circle at 0 0, #0f172a 0%, #020617 55%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 22px;
  box-shadow:
    0 26px 80px rgba(15, 23, 42, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.onboard-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.08), transparent 45%);
  pointer-events: none;
}

.onboard-modal-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.onboard-modal-titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.onboard-modal-titles .deck-modal-title {
  font-size: 21px;
}

.onboard-modal-body {
  padding: clamp(16px, 3vw, 24px);
  position: relative;
  z-index: 1;
}

.onboard-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.onboard-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(2, 6, 23, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 90%;
  box-shadow:
    0 18px 40px rgba(2, 6, 23, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  animation: onboardCardIn 720ms cubic-bezier(0.24, 0.72, 0.2, 1) forwards;
  animation-play-state: paused;
}

.onboard-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.onboard-card:nth-child(1) {
  animation-delay: 60ms;
}

.onboard-card:nth-child(2) {
  animation-delay: 200ms;
}

.onboard-card:nth-child(3) {
  animation-delay: 340ms;
}

.onboard-modal-backdrop.is-open .onboard-card {
  animation-play-state: running;
}

.onboard-card-step .deck-slide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  min-height: 25px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.14);
  color: #a5f3fc;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.onboard-card-time .deck-slide-tag {
  margin: 0;
}

.onboard-card-visual {
  background: radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.08), transparent 40%);
  border-radius: 12px;
  padding: 14px 12px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

.onboard-card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px;
}

.onboard-card-headline {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  margin: 0 0 2px;
}

.onboard-card-hint {
  color: #93c5fd;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  margin-top: 0;
  margin-bottom: 10px;
}

.onboard-card-bodycopy {
  line-height: 1.5;
  color: #9ca3af;
  font-size: 12px;
  margin-top: 3px;
}

.onboard-card-tags {
  margin-top: auto;
}

.onboard-modal-footer {
  padding: 0 clamp(18px, 3vw, 26px) clamp(16px, 3vw, 24px);
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65), rgba(2, 6, 23, 0.85));
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.onboard-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 6px;
   margin-left: auto;
}

.onboard-footer-actions .btn-icon {
  transition: transform 160ms ease;
}

.onboard-footer-actions .btn-next:hover .btn-icon {
  transform: translateX(2px);
}

.onboard-footer-note {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.onboard-secondary {
  min-width: 170px;
}

.onboard-primary {
  min-width: 160px;
}

@keyframes onboardCardIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }

  65% {
    opacity: 1;
    transform: translateY(6px) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Static stack visuals (final frames from onboarding steps) ─────────── */

.tour-stack {
  position: relative;
  width: 190px;
  height: 145px;
  transform-style: preserve-3d;
  perspective: 900px;
  transform: rotateX(58deg) rotateZ(-32deg);
  transition: transform 220ms ease-out;
}

.tour-stack-block {
  position: absolute;
  border-radius: 20px;
  background: linear-gradient(145deg, #22d3ee, #0ea5e9);
  border-right: 12px solid rgba(15, 23, 42, 0.78);
  border-bottom: 12px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.95);
  transform-origin: center;
  opacity: 1;
  transform: translateY(0) rotateX(8deg) rotateY(-10deg);
}

.tour-stack-block.lg {
  width: 150px;
  height: 80px;
  bottom: 0;
  left: 10px;
  z-index: 1;
}

.tour-stack-block.md {
  width: 120px;
  height: 60px;
  bottom: 35px;
  left: 30px;
  z-index: 2;
}

.tour-stack-block.sm {
  width: 95px;
  height: 46px;
  bottom: 70px;
  left: 50px;
  z-index: 3;
}

/* Step 2 finale: opened stack with type cue */
.tour-step-2 {
  transform: rotateX(58deg) rotateZ(-12deg);
}

.tour-step-2 .tour-stack-block {
  transform: translateY(0) rotateX(8deg) rotateY(-10deg);
}

.tour-step-2 .tour-stack-block.lg {
  transform: translateY(-4px) rotateX(8deg) rotateY(-10deg);
}

.tour-step-2 .tour-stack-block.md {
  transform: translateY(-12px) rotateX(8deg) rotateY(-10deg);
  background: linear-gradient(145deg, #38bdf8, #a855f7);
}

.tour-step-2 .tour-stack-block.sm {
  transform: translateY(-22px) rotateX(8deg) rotateY(-10deg);
}

.tour-step-2 .tour-stack-block.sm::after {
  content: "Aa";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #0f172a;
}

/* Step 3 finale: single hero brikk with label */
.tour-step-3 {
  transform: rotateX(58deg) rotateZ(0deg);
}

.tour-stack-final {
  position: relative;
  width: 200px;
  height: 150px;
  transform-style: preserve-3d;
  perspective: 900px;
  transform: rotateX(58deg) rotateZ(0deg);
}

.tour-final-block {
  position: absolute;
  width: 170px;
  height: 92px;
  left: 5px;
  bottom: 4px;
  border-radius: 22px;
  background: linear-gradient(145deg, #38bdf8, #a855f7);
  border-right: 12px solid rgba(15, 23, 42, 0.82);
  border-bottom: 12px solid rgba(15, 23, 42, 0.95);
  box-shadow:
    0 24px 55px rgba(15, 23, 42, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tour-final-block::before {
  content: "";
  position: absolute;
  inset: 8px 10px 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  opacity: 0.9;
}

.tour-final-block::after {
  content: "Brikks";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  text-shadow:
    0.5px 0.5px 0 rgba(255, 255, 255, 0.4),
    -0.5px -0.5px 0 rgba(15, 23, 42, 0.72);
}

@media (max-width: 960px) {
  .onboard-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .onboard-modal-footer {
    padding-top: 6px;
  }
}

@media (max-width: 640px) {
  .onboard-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .onboard-secondary,
  .onboard-primary {
    width: 100%;
  }
}