/* Guest marketing landing - rhythm, hero, platform strip, playground, FAQ */

@property --skin-50 {
  syntax: "<color>";
  inherits: true;
  initial-value: #f5f3ff;
}

@property --skin-500 {
  syntax: "<color>";
  inherits: true;
  initial-value: #8b5cf6;
}

@property --skin-600 {
  syntax: "<color>";
  inherits: true;
  initial-value: #7c3aed;
}

.landing-page {
  --landing-section-gap: clamp(5rem, 10vw, 10rem);
  --landing-dot: rgb(15 23 42 / 0.09);
  --landing-dot-print: rgb(var(--primary-500) / 0.11);
  overflow-x: clip;
  background-image:
    radial-gradient(circle, var(--landing-dot) 1.1px, transparent 1.3px),
    radial-gradient(circle, var(--landing-dot-print) 1px, transparent 1.2px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
}

.dark .landing-page {
  --landing-dot: rgb(255 255 255 / 0.055);
  --landing-dot-print: rgb(var(--primary-400) / 0.12);
}

/* App-wide page grid (profile preference html.page-grid) */
html.page-grid #main-content,
html.page-grid main {
  --landing-dot: rgb(15 23 42 / 0.09);
  --landing-dot-print: rgb(var(--primary-500) / 0.11);
  background-image:
    radial-gradient(circle, var(--landing-dot) 1.1px, transparent 1.3px),
    radial-gradient(circle, var(--landing-dot-print) 1px, transparent 1.2px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
}

html.dark.page-grid #main-content,
html.dark.page-grid main {
  --landing-dot: rgb(255 255 255 / 0.055);
  --landing-dot-print: rgb(var(--primary-400) / 0.12);
}

.landing-section {
  padding-block: var(--landing-section-gap);
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.landing-hero-section {
  position: relative;
  background-image:
    url("../images/landing/confetti.svg"),
    radial-gradient(closest-side at 50% 32%, rgb(var(--primary-500) / 0.16), transparent 72%),
    radial-gradient(closest-side at 72% 46%, rgb(253 186 116 / 0.1), transparent 68%);
  background-repeat: no-repeat;
  background-size: cover, auto, auto;
  background-position: center top;
}

.landing-hero {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.landing-hero-copy {
  max-width: 38rem;
  margin-inline: auto;
}

.landing-hero-alt-sep {
  width: 1px;
  height: 0.85em;
  background: rgb(148 163 184 / 0.55);
}

html.dark .landing-hero-alt-sep {
  background: rgb(255 255 255 / 0.16);
}

/* ── Cards ─────────────────────────────────────────────────────────── */

.landing-card {
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 350ms cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) {
  .landing-card-lift:hover {
    transform: translateY(-4px);
  }
}

.landing-play {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .landing-play {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 3rem;
  }
}

.landing-play-list .landing-play-stage {
  text-align: left;
}

.landing-play-row.is-reserved {
  opacity: 0.88;
}

.landing-play-status {
  display: none;
}

.landing-play-status.is-on {
  display: inline-flex;
}

.landing-play-action {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 250ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.landing-play-action[hidden] {
  display: none !important;
}

.landing-play-reserve {
  background: rgb(var(--primary-600));
  color: #fff;
}

.landing-play-reserve:hover {
  background: rgb(var(--primary-700));
}

.landing-play-release {
  background: transparent;
  color: rgb(71 85 105);
  box-shadow: inset 0 0 0 1px rgb(226 232 240);
}

.dark .landing-play-release {
  color: rgb(203 213 225);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.landing-play-action:active {
  transform: translateY(1px);
}

.landing-seg {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 10px;
  background: rgb(241 245 249);
  font-size: 0.75rem;
  font-weight: 600;
}

.dark .landing-seg {
  background: rgb(255 255 255 / 0.05);
}

.landing-seg span,
.landing-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  color: rgb(100 116 139);
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.dark .landing-seg span,
.dark .landing-seg button {
  color: rgb(148 163 184);
}

.landing-seg .landing-seg-on,
.landing-seg button[aria-pressed="true"],
.dark .landing-seg .landing-seg-on,
.dark .landing-seg button[aria-pressed="true"] {
  background: rgb(var(--primary-600));
  color: #fff;
}

.landing-seg button:focus-visible,
.landing-play-action:focus-visible {
  outline: 2px solid rgb(var(--primary-500));
  outline-offset: 2px;
}

.landing-wish-card {
  border-radius: 24px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.landing-mock-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.landing-mock-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.25rem;
  border-radius: 10px;
}

.landing-mock-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  object-fit: contain;
  background: rgb(248 250 252);
  flex-shrink: 0;
}

.dark .landing-mock-thumb {
  background: rgb(255 255 255 / 0.05);
}

.landing-shop-icon-frame {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 22%;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  display: grid;
}

.landing-shop-icon-frame > * {
  grid-area: 1 / 1;
}

.landing-mock-row .landing-shop-icon-frame .landing-shop-icon,
.dark .landing-mock-row .landing-shop-icon-frame .landing-shop-icon {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
  background: #fff;
}

.landing-mock-row .landing-shop-icon-frame .landing-shop-icon.is-padded-icon {
  transform: scale(1.45);
}

.landing-mock-row .landing-shop-icon-frame .landing-shop-icon.is-glyph-icon {
  object-fit: contain;
  transform: none;
  padding: 1px;
}

.landing-mock-row .landing-shop-icon-frame .landing-shop-icon-fallback {
  transform: none;
  border: 0;
}

.landing-shop-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgb(15 23 42 / 0.08);
  flex-shrink: 0;
}

.dark .landing-shop-icon {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.1);
}

.landing-shop-icon-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  color: rgb(148 163 184);
}

.landing-mock-row + .landing-mock-row {
  border-top: 1px solid rgb(15 23 42 / 0.06);
}

.dark .landing-mock-row + .landing-mock-row {
  border-top-color: rgb(255 255 255 / 0.08);
}

.landing-shop-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.75rem;
}

.landing-shop-strip > span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-shop-strip .landing-shop-icon {
  width: 4.5rem;
  height: 4.5rem;
}

.landing-marquee {
  --marquee-fade-from: rgb(var(--neutral-50));
  position: relative;
  overflow: hidden;
}

html.dark .landing-marquee {
  --marquee-fade-from: rgb(var(--neutral-950));
}

.landing-marquee::before,
.landing-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3.5rem;
  z-index: 2;
  pointer-events: none;
}

.landing-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--marquee-fade-from), transparent);
}

.landing-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--marquee-fade-from), transparent);
}

.landing-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: landingMarquee 42s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

html.preload .landing-marquee-track {
  animation-duration: 42s !important;
  animation-iteration-count: infinite !important;
}

.landing-marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.landing-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.dark .landing-marquee-item {
  box-shadow: none;
}

button.landing-marquee-item {
  appearance: none;
  background: #fff;
  border: none;
  padding: 0;
  cursor: pointer;
}

.landing-marquee-item .landing-shop-icon,
.dark .landing-marquee-item .landing-shop-icon {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  object-fit: cover;
  background: #fff;
}

.landing-marquee-item .landing-shop-icon.is-padded-icon {
  transform: scale(1.12);
}

.landing-marquee-item .landing-shop-icon.is-glyph-icon {
  object-fit: contain;
  transform: none;
  padding: 0.45rem;
}

.landing-marquee-item.is-missing-icon {
  display: none !important;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-shadow: none;
}

@media (hover: hover) {
  .landing-marquee:hover .landing-marquee-track {
    animation-play-state: paused;
  }
}

@keyframes landingMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.landing-platforms {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .landing-platforms {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.landing-platform-group {
  border-radius: 1.5rem;
}

.landing-platform-list {
  display: flex;
  flex-direction: column;
}

.landing-platform-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.15rem;
}

.landing-platform-line + .landing-platform-line {
  border-top: 1px solid rgb(15 23 42 / 0.06);
}

.dark .landing-platform-line + .landing-platform-line {
  border-top-color: rgb(255 255 255 / 0.08);
}

.landing-platform-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgb(15 23 42);
  color: #fff;
  text-decoration: none;
}

.landing-platform-cta:hover {
  opacity: 0.88;
}

.dark .landing-platform-cta {
  background: #fff;
  color: rgb(15 23 42);
}

.landing-platform-line .landing-chip {
  margin-left: auto;
}

/* ── Color skins ───────────────────────────────────────────────────── */

.landing-themes {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .landing-themes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.landing-theme-stage {
  --skin-50: #f5f3ff;
  --skin-500: #8b5cf6;
  --skin-600: #7c3aed;
  animation: landingSkinCycle 12s linear infinite;
}

.landing-theme-accent,
.landing-theme-well,
.landing-theme-btn,
.landing-theme-chip {
  animation: landingSkinCycle 12s linear infinite;
}

.landing-theme-mock {
  position: relative;
  overflow: hidden;
}

.landing-theme-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--skin-500);
}

.landing-theme-well {
  background: var(--skin-50);
  color: var(--skin-600);
}

.dark .landing-theme-well {
  background: color-mix(in srgb, var(--skin-500) 16%, transparent);
  color: var(--skin-500);
}

.landing-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 0.875rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--skin-600);
  color: #fff;
}

.landing-theme-chip {
  background: var(--skin-50);
  color: var(--skin-600);
}

.dark .landing-theme-chip {
  background: color-mix(in srgb, var(--skin-500) 16%, transparent);
  color: var(--skin-500);
}

.landing-theme-name {
  position: relative;
  height: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(100 116 139);
}

.dark .landing-theme-name {
  color: rgb(148 163 184);
}

.landing-theme-name span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: landingSkinName 12s linear infinite;
}

.landing-theme-name span:nth-child(1) { animation-delay: 0s; }
.landing-theme-name span:nth-child(2) { animation-delay: -10.8s; }
.landing-theme-name span:nth-child(3) { animation-delay: -9.6s; }
.landing-theme-name span:nth-child(4) { animation-delay: -8.4s; }
.landing-theme-name span:nth-child(5) { animation-delay: -7.2s; }
.landing-theme-name span:nth-child(6) { animation-delay: -6s; }
.landing-theme-name span:nth-child(7) { animation-delay: -4.8s; }
.landing-theme-name span:nth-child(8) { animation-delay: -3.6s; }
.landing-theme-name span:nth-child(9) { animation-delay: -2.4s; }
.landing-theme-name span:nth-child(10) { animation-delay: -1.2s; }

@media (hover: hover) {
  .landing-theme-stage:hover,
  .landing-theme-stage:focus-within {
    animation-play-state: paused;
  }

  .landing-theme-stage:hover .landing-theme-accent,
  .landing-theme-stage:hover .landing-theme-well,
  .landing-theme-stage:hover .landing-theme-btn,
  .landing-theme-stage:hover .landing-theme-chip,
  .landing-theme-stage:hover .landing-theme-name span,
  .landing-theme-stage:focus-within .landing-theme-accent,
  .landing-theme-stage:focus-within .landing-theme-well,
  .landing-theme-stage:focus-within .landing-theme-btn,
  .landing-theme-stage:focus-within .landing-theme-chip,
  .landing-theme-stage:focus-within .landing-theme-name span {
    animation-play-state: paused;
  }
}

.landing-theme-stage:focus-visible {
  outline: 2px solid rgb(var(--primary-500));
  outline-offset: 4px;
  border-radius: 1.5rem;
}

@keyframes landingSkinCycle {
  0%, 8% {
    --skin-50: #f5f3ff;
    --skin-500: #8b5cf6;
    --skin-600: #7c3aed;
  }
  10%, 18% {
    --skin-50: #eff6ff;
    --skin-500: #3b82f6;
    --skin-600: #2563eb;
  }
  20%, 28% {
    --skin-50: #fff1f2;
    --skin-500: #f43f5e;
    --skin-600: #e11d48;
  }
  30%, 38% {
    --skin-50: #fffbeb;
    --skin-500: #f59e0b;
    --skin-600: #d97706;
  }
  40%, 48% {
    --skin-50: #ecfdf5;
    --skin-500: #10b981;
    --skin-600: #059669;
  }
  50%, 58% {
    --skin-50: #f0f9ff;
    --skin-500: #0ea5e9;
    --skin-600: #0284c7;
  }
  60%, 68% {
    --skin-50: #fdf2f8;
    --skin-500: #ec4899;
    --skin-600: #db2777;
  }
  70%, 78% {
    --skin-50: #f0fdfa;
    --skin-500: #14b8a6;
    --skin-600: #0d9488;
  }
  80%, 88% {
    --skin-50: #fff7ed;
    --skin-500: #f97316;
    --skin-600: #ea580c;
  }
  90%, 98% {
    --skin-50: #f7fee7;
    --skin-500: #84cc16;
    --skin-600: #65a30d;
  }
  100% {
    --skin-50: #f5f3ff;
    --skin-500: #8b5cf6;
    --skin-600: #7c3aed;
  }
}

@keyframes landingSkinName {
  0%, 8% { opacity: 1; }
  10%, 98% { opacity: 0; }
  100% { opacity: 1; }
}

/* ── Status chips ──────────────────────────────────────────────────── */

.landing-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.landing-chip::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: currentColor;
}

.landing-chip-available {
  background: rgb(var(--primary-50));
  color: rgb(var(--primary-700));
}

.dark .landing-chip-available {
  background: rgb(var(--primary-500) / 0.16);
  color: rgb(var(--primary-300));
}

.landing-chip-soon {
  background: rgb(var(--neutral-100));
  color: rgb(var(--neutral-500));
}

.dark .landing-chip-soon {
  background: rgb(255 255 255 / 0.06);
  color: rgb(var(--neutral-400));
}

/* Amber stays semantic in both themes so "in progress" reads apart from "soon" */
.landing-chip-progress {
  background: rgb(254 243 199);
  color: rgb(146 64 14);
}

.dark .landing-chip-progress {
  background: rgb(245 158 11 / 0.16);
  color: rgb(252 211 77);
}

/* ── Step rail ─────────────────────────────────────────────────────── */

.landing-step {
  position: relative;
}

.landing-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 2.75rem;
  bottom: -0.75rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, rgb(var(--primary-500) / 0.35), rgb(var(--primary-500) / 0.05));
}

/* ── FAQ ───────────────────────────────────────────────────────────── */

.landing-faq summary {
  list-style: none;
}

.landing-faq summary::-webkit-details-marker {
  display: none;
}

.landing-faq .faq-minus {
  display: none;
}

.landing-faq[open] .faq-plus {
  display: none;
}

.landing-faq[open] .faq-minus {
  display: block;
}

.landing-faq summary:focus-visible {
  outline: 2px solid rgb(var(--primary-500));
  outline-offset: 4px;
  border-radius: 10px;
}

.landing-brand-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

/* ── Motion ────────────────────────────────────────────────────────── */

.landing-reveal {
  opacity: 0;
  transform: translateY(16px);
}

.landing-reveal.is-inview {
  animation: landingReveal 650ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.landing-reveal-1 { animation-delay: 80ms; }
.landing-reveal-2 { animation-delay: 160ms; }
.landing-reveal-3 { animation-delay: 240ms; }
.landing-reveal-4 { animation-delay: 320ms; }
.landing-reveal-5 { animation-delay: 400ms; }
.landing-reveal-6 { animation-delay: 480ms; }

@keyframes landingReveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-reveal,
  .landing-reveal.is-inview {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .landing-card,
  .landing-card-lift:hover,
  .landing-play-action {
    transition: none;
    transform: none;
  }

  .landing-marquee::before,
  .landing-marquee::after {
    display: none;
  }

  .landing-marquee-track {
    animation: none !important;
    will-change: auto;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    row-gap: 1rem;
  }

  .landing-marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    row-gap: 1rem;
  }

  .landing-marquee-clone {
    display: none;
  }

  .landing-theme-stage,
  .landing-theme-accent,
  .landing-theme-well,
  .landing-theme-btn,
  .landing-theme-chip,
  .landing-theme-name span {
    animation: none;
  }

  .landing-theme-name span {
    opacity: 0;
  }

  .landing-theme-name span:first-child {
    opacity: 1;
  }
}

/* ── Page shell override ───────────────────────────────────────────── */
/* _Head.cshtml forces the app shell (flex + hidden overflow) on body */

html.landing,
html.landing body {
  height: auto !important;
  min-height: 100% !important;
  position: static !important;
}

html.landing body {
  display: block !important;
  overflow-x: visible !important;
  overflow-y: auto !important;
  margin-bottom: 0 !important;
  --landing-dot: rgb(15 23 42 / 0.09);
  --landing-dot-print: rgb(var(--primary-500) / 0.11);
  background-image:
    radial-gradient(circle, var(--landing-dot) 1.1px, transparent 1.3px),
    radial-gradient(circle, var(--landing-dot-print) 1px, transparent 1.2px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
}

html.dark.landing body {
  --landing-dot: rgb(255 255 255 / 0.055);
  --landing-dot-print: rgb(var(--primary-400) / 0.12);
}

html.landing .landing-page {
  background-image: none;
}

html.landing #main-content {
  overflow: visible !important;
  height: auto !important;
  min-height: calc(100dvh - 11rem) !important;
  display: block !important;
  flex: none !important;
}

header:has(.guest-top-nav-row) {
  overflow: visible;
  isolation: isolate;
}

.guest-top-nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  height: 4rem;
  overflow: visible;
}

@media (max-width: 767px) {
  .guest-top-nav-row {
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
  }
}

.guest-top-nav-brand {
  justify-self: start;
}

.guest-top-nav-actions {
  justify-self: end;
  min-width: 0;
}
