@import url("../tokens/design-tokens.css");

/* ---------------------------------------------------------
   Home: header layout override
   Goal:
   - Hide header search on home
   - Keep Stores/Apps next to logo
   - Keep actions pinned to far right
   --------------------------------------------------------- */

/* 1) Hide header search completely on home */
.page-home .header-search {
  display: none !important;
}

/* 2) Desktop-only home header placement */
@media (min-width: 769px) {
  .page-home .site-header .nav {
    grid-template-columns: auto auto 1fr auto !important;
    justify-content: start !important;
  }

  /* 3) Place items into the right grid columns */
  .page-home .site-header .brand {
    grid-column: 1;
  }

  .page-home .site-header .mode-nav {
    grid-column: 2;
    justify-self: start;
  }

  .page-home .site-header .header-actions {
    grid-column: 4;
    justify-self: end;
  }
}


/* =========================================================
   Curattr - Home page styles
   Scope: Hero, Search, Platform Logos, Featured rails, Collection rails
   Depends on: assets/styles.css (tokens, layout, header/footer base)
   Notes:
   - Keep .wrap gutters global at 24px (set in styles.css).
   - Rail controls are unified (section arrow + carousel arrows).
   - Includes ALL required rail layout rules to avoid broken rails.
   ========================================================= */


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  padding: 24px 0 52px;
  text-align: left;
}

body.page-home {
  overflow-x: clip;
}

.page-home .verify-banner-slot {
  margin: 12px 0 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  max-width: 640px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  width: 100%;
  min-width: 0;
  justify-self: center;
  padding-right: 40px;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 5px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  background: #eff6ff;
  color: #2563eb;
  font-size: var(--text-chip-size);
  font-weight: var(--text-chip-weight);
  line-height: var(--text-chip-line);
  letter-spacing: var(--text-chip-letter);
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2563eb;
  animation: hero-pill-pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 680px;
  font-size: clamp(3rem, 4.2vw, var(--text-page-title-size));
  font-weight: var(--text-page-title-weight);
  letter-spacing: var(--text-page-title-letter);
  line-height: 1.02;
}

.hero-accent {
  background: linear-gradient(90deg, #2563eb 0%, #2aa3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-letter);
}

.hero-sub-secondary {
  margin-bottom: 24px;
}

@keyframes hero-pill-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.38;
    transform: scale(1.35);
  }
}

.hero-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 12px;
  max-width: 620px;
}

.hero-suggestions-label {
  color: #2563eb;
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  line-height: var(--text-label-line);
  letter-spacing: var(--text-label-letter);
  white-space: nowrap;
}

.hero-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.hero-suggestion-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #d9e7ff;
  border-radius: 8px;
  background: #f8fbff;
  color: #2563eb;
  font-size: var(--text-chip-size);
  font-weight: var(--text-chip-weight);
  line-height: var(--text-chip-line);
  letter-spacing: var(--text-chip-letter);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-suggestion-chip:hover {
  background: #eef4ff;
  border-color: #93c5fd;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
}

.hero-suggestion-chip:focus-visible {
  outline: none;
  border-color: var(--ring-border, rgba(47, 107, 255, 0.5));
  box-shadow: var(--ring, 0 0 0 3px rgba(47, 107, 255, 0.12));
}

.hero-stack {
  position: relative;
  width: min(100%, 640px);
  height: 300px;
  margin: 0;
  isolation: isolate;
  overflow: visible;
  animation: hero-stack-float 8s ease-in-out infinite;
}

.hero-stack:not([data-hero-rendered="true"]) > .hero-store-card {
  visibility: hidden;
}

.hero-stack[data-reduced-motion="true"] {
  animation: none;
}

.hero-store-card {
  position: absolute;
  inset: 0;
  display: block;
  width: 300px;
  height: 200px;
  margin: auto;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  opacity: 1;
  transform: translate(0, 0);
  transition:
    transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 520ms ease,
    box-shadow 520ms ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hero-store-card:focus-visible {
  outline: none;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.10),
    0 0 0 3px rgba(37, 99, 235, 0.22);
}

.hero-store-card.is-active {
  z-index: 4;
  opacity: 1;
  width: 500px;
  height: 280px;
  transform: translate(0, 0) scale(1);
}

.hero-store-card.is-right {
  z-index: 3;
  opacity: 0.72;
  width: 320px;
  height: 220px;
  transform: translateX(126px) scale(0.92);
}

.hero-store-card.is-back {
  z-index: 2;
  opacity: 0.46;
  width: 280px;
  height: 196px;
  transform: translateX(156px) scale(0.86);
}

.hero-store-card.is-left {
  z-index: 1;
  opacity: 0.72;
  width: 320px;
  height: 220px;
  transform: translateX(-132px) scale(0.92);
}

.hero-stack[data-reduced-motion="true"] .hero-store-card.is-active,
.hero-stack[data-reduced-motion="true"] .hero-store-card.is-right,
.hero-stack[data-reduced-motion="true"] .hero-store-card.is-back,
.hero-stack[data-reduced-motion="true"] .hero-store-card.is-left {
  opacity: 1;
  transition: none;
}

.hero-store-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  background: transparent;
}

.hero-store-top {
  display: none;
}

.hero-store-brand {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(15, 23, 42, 0.92);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-store-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(71, 85, 105, 0.72);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-store-media {
  flex: 1 1 auto;
  min-height: 100%;
}

.hero-store-preview {
  position: relative;
  height: 100%;
  width: 100%;
  min-height: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.02) 100%);
}

.hero-store-preview::before,
.hero-store-preview::after {
  content: none;
}

.hero-store-preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.98) contrast(1.02);
}

.hero-store-preview.is-media-missing .hero-store-preview-image {
  object-fit: cover;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  padding: 0;
}

.hero-store-art--pawpals {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.44), transparent 30%),
    linear-gradient(135deg, #cfe6c8 0%, #a9c3ae 58%, #8fa793 100%);
}

.hero-store-art--pawpals .hero-store-art-figure {
  background:
    radial-gradient(circle at 42% 26%, rgba(115, 74, 41, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(176, 117, 66, 0.9) 0%, rgba(129, 80, 41, 0.92) 100%);
  border-radius: 54% 46% 48% 52% / 46% 54% 46% 54%;
}

.hero-store-art--pawpals .hero-store-art-figure::before {
  width: 58px;
  height: 42px;
  left: 38px;
  top: 34px;
  background: rgba(126, 78, 41, 0.92);
}

.hero-store-art--furco {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(135deg, #f3eadf 0%, #e5d4bd 54%, #caa67e 100%);
}

.hero-store-art--furco .hero-store-art-figure {
  right: 30px;
  width: 138px;
  height: 164px;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.38), transparent 32%),
    linear-gradient(180deg, rgba(186, 155, 113, 0.92) 0%, rgba(165, 132, 96, 0.96) 100%);
}

.hero-store-art--lumiere {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.5), transparent 24%),
    linear-gradient(135deg, #fde8ee 0%, #f6ccd8 48%, #e7b8c8 100%);
}

.hero-store-art--lumiere .hero-store-art-figure {
  right: 36px;
  width: 128px;
  height: 164px;
  border-radius: 30px 30px 44px 44px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(249, 237, 240, 0.76) 100%);
}

.hero-store-art--lumiere .hero-store-art-figure::before {
  width: 26px;
  height: 58px;
  left: 50px;
  top: 16px;
  background: linear-gradient(180deg, #6b5b58 0%, #a98966 100%);
}

.hero-store-art--lumiere .hero-store-art-figure::after {
  width: 20px;
  height: 32px;
  left: 52px;
  top: 52px;
  background: linear-gradient(180deg, #d7b29f 0%, #bf8a72 100%);
}

.hero-store-art--homely {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.48), transparent 28%),
    linear-gradient(135deg, #f6f0e7 0%, #e7e0d1 46%, #cfd9c4 100%);
}

.hero-store-art--homely .hero-store-art-figure {
  right: 28px;
  width: 144px;
  height: 162px;
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.35), transparent 30%),
    linear-gradient(180deg, rgba(206, 212, 198, 0.96) 0%, rgba(165, 174, 155, 0.92) 100%);
}

.hero-store-art--homely .hero-store-art-figure::before {
  width: 64px;
  height: 64px;
  left: 40px;
  top: 26px;
  background: rgba(255, 255, 255, 0.44);
}

.hero-store-art--homely .hero-store-art-figure::after {
  width: 76px;
  height: 24px;
  left: 34px;
  top: 96px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-store-footer {
  display: none;
}

.hero-store-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-store-name {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(15, 23, 42, 0.92);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-store-rating {
  flex: 0 0 auto;
  color: #b7791f;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

@keyframes hero-stack-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes hero-card-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

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

/* ---------------------------------------------------------
   Hero Proof Cards
   --------------------------------------------------------- */
.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-16);
  margin-top: 62px;
}

.hero-proof-card {
  padding: 18px;
  text-align: left;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  animation: hero-card-float 6s ease-in-out infinite;
}

.hero-proof-card:nth-child(2) { animation-delay: 0.8s; }
.hero-proof-card:nth-child(3) { animation-delay: 1.6s; }
.hero-proof-card:nth-child(4) { animation-delay: 2.4s; }


.hero-proof-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.hero-proof-card h3 {
  margin: 0 0 10px;
  font-size: var(--text-card-title-size);
  font-weight: var(--text-card-title-weight);
  line-height: var(--text-card-title-line);
  letter-spacing: var(--text-card-title-letter);
  color: rgba(15, 23, 42, 0.92);
}

.hero-proof-card p {
  margin: 0;
  max-width: none;
  font-size: var(--text-body-sm-size);
  font-weight: var(--text-body-sm-weight);
  line-height: var(--text-body-sm-line);
  letter-spacing: var(--text-body-sm-letter);
  color: var(--muted);
}

@keyframes hero-card-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 520px) {
  .hero-proof-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Hero Search
   --------------------------------------------------------- */
.search-shell {
  width: 100%;
  max-width: 580px;
  margin: 0;
  padding: 4px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.07);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-shell .btn-cta {
  border-radius: 9px;
  height: 36px;
  padding: 0 18px;
  font-size: var(--text-button-size);
  font-weight: var(--text-button-weight);
  line-height: var(--text-button-line);
  letter-spacing: var(--text-button-letter);
}

.search-shell:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.14), 0 0 0 4px rgba(37, 99, 235, 0.07);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-action {
  flex: 0 0 auto;
  margin-left: auto;
  background: #2563eb;
  box-shadow: none;
}

.search-input {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 10px;
  overflow: visible;
  min-height: 46px;
  padding: 0 14px;
}

.ghost-wrap {
  position: relative;
}

#q-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: var(--space-12) 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(148, 163, 184, 0.8);
  pointer-events: none;
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-letter);
}

.page-home #q-ghost {
  display: none;
}

.home-autocomplete-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  text-align: left;
}

.home-autocomplete-option {
  padding: 10px 12px;
  border-radius: 8px;
  color: #0f172a;
  font-size: var(--text-body-sm-size);
  font-weight: var(--text-body-sm-weight);
  line-height: var(--text-body-sm-line);
  letter-spacing: var(--text-body-sm-letter);
  cursor: pointer;
}

.home-autocomplete-option:hover {
  background: #eff6ff;
}

.home-autocomplete-option.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

#q {
  position: relative;
  background: transparent;
}

.search-input input,
#q-ghost,
#q {
  border-radius: inherit;
}

.search-input input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-letter);
  color: rgba(15, 23, 42, 0.9);
}

.search-input input::placeholder {
  color: rgba(100, 116, 139, 0.9);
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    min-height: 300px;
    justify-self: center;
    width: 100%;
    max-width: 580px;
    padding-right: 0;
  }

  .hero-stack {
    margin: 0 auto;
    width: min(100%, 580px);
    height: 278px;
  }

  .hero-store-card.is-active {
    width: 460px;
    height: 256px;
  }

  .hero-store-card.is-right,
  .hero-store-card.is-left {
    width: 288px;
    height: 196px;
  }

  .hero-store-card.is-right {
    transform: translateX(118px) scale(0.92);
  }

  .hero-store-card.is-back {
    width: 256px;
    height: 182px;
    transform: translateX(146px) scale(0.86);
  }

  .hero-store-card.is-left {
    transform: translateX(-122px) scale(0.92);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 24px 0 44px;
  }

  .search-action {
    width: 100%;
    margin-left: 0;
  }

  .search-shell {
    padding: 8px;
    max-width: 100%;
  }

  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-suggestions {
    gap: 10px;
  }

  .hero-proof-grid {
    grid-template-columns: 1fr;
  }

  .featured>.wrap {
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .rail-track .collection-card {
    flex: 0 0 calc((100% - var(--space-18)) / 2);
    min-width: calc((100% - var(--space-18)) / 2);
    max-width: calc((100% - var(--space-18)) / 2);
  }

  .collections {
    padding-bottom: 72px;
  }

  .collections .rail {
    margin-top: 48px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-shell {
    display: block;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-visual {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
}

@media (max-width: 640px) {
  .hero-visual {
    display: none;
  }

  .hero-store-card {
    width: min(100%, 360px);
    height: 280px;
  }

  .rail-track .collection-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .category-grid-section .section-left {
    align-items: center;
  }

  .spotlight-card .collection-media {
    min-height: 180px;
  }

  .spotlight-copy {
    padding: 20px;
  }

  .spotlight-detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collections .section-head {
    align-items: center;
  }
}

/* ---------------------------------------------------------
   Category Grid
   --------------------------------------------------------- */
.category-grid-section {
  padding: 0;
}

.category-grid-section > .wrap {
  padding-top: 0;
  padding-bottom: 72px;
}

.category-grid-section .section-head {
  margin-bottom: var(--space-18);
}

.category-grid-section .section-left {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.category-grid-section .section-copy {
  display: block;
}

.category-grid-section .section-subtitle {
  display: none;
}

.category-grid-section .section-arrow {
  flex: 0 0 auto;
  align-self: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-18);
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 164px;
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.category-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  border-color: rgba(37, 99, 235, 0.18);
}

.category-tile-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
}

.category-glyph {
  display: block;
  line-height: 1;
}

.category-tile:hover .category-tile-icon {
  background: #dbeafe;
  transform: translateY(-1px);
}

.category-tile-title {
  font-size: var(--text-card-title-size);
  font-weight: var(--text-card-title-weight);
  line-height: var(--text-card-title-line);
  letter-spacing: var(--text-card-title-letter);
  color: rgba(15, 23, 42, 0.92);
}

.category-tile:focus-visible {
  outline: none;
  border-color: var(--ring-border, rgba(47, 107, 255, 0.5));
  box-shadow: var(--ring, 0 0 0 3px rgba(47, 107, 255, 0.12));
}

/* ---------------------------------------------------------
   Spotlight
   --------------------------------------------------------- */
.spotlight-section {
  padding: 0;
}

.spotlight-section > .wrap {
  padding-top: 0;
  padding-bottom: 48px;
}

.spotlight-shell {
  display: block;
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.spotlight-card:hover {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.spotlight-visual {
  position: relative;
  min-width: 0;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.spotlight-card .collection-media {
  min-height: 220px;
  height: 100%;
}

.spotlight-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  line-height: var(--text-label-line);
  letter-spacing: var(--text-label-letter);
  text-transform: uppercase;
  pointer-events: none;
}

.spotlight-kicker {
  margin-bottom: 10px;
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  line-height: var(--text-label-line);
  letter-spacing: var(--text-label-letter);
  text-transform: uppercase;
  color: #2563eb;
}

.spotlight-title {
  margin: 0;
  font-size: var(--text-section-title-size);
  font-weight: var(--text-section-title-weight);
  line-height: var(--text-section-title-line);
  letter-spacing: var(--text-section-title-letter);
  color: rgba(15, 23, 42, 0.94);
}

.spotlight-quote {
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 3px solid rgba(37, 99, 235, 0.22);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-letter);
  color: rgba(15, 23, 42, 0.88);
}

.spotlight-text {
  margin: 14px 0 0;
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-letter);
  color: var(--muted);
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.spotlight-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.spotlight-detail {
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.spotlight-detail-label {
  margin-bottom: 6px;
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  line-height: var(--text-label-line);
  letter-spacing: var(--text-label-letter);
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.72);
}

.spotlight-detail p {
  margin: 0;
  font-size: var(--text-body-sm-size);
  font-weight: var(--text-body-sm-weight);
  line-height: var(--text-body-sm-line);
  letter-spacing: var(--text-body-sm-letter);
  color: var(--muted);
}

.spotlight-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: var(--text-button-size);
  font-weight: var(--text-button-weight);
  line-height: var(--text-button-line);
  letter-spacing: var(--text-button-letter);
  color: #2563eb;
}

.spotlight-link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Ecosystem Bridge
   --------------------------------------------------------- */
.ecosystem-bridge {
  padding: 0;
}

.ecosystem-bridge > .wrap {
  padding-top: 0;
  padding-bottom: 72px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-18);
}


/* ---------------------------------------------------------
   Featured & Collections Sections
   --------------------------------------------------------- */
.featured {
  padding: 0;
  text-align: left;
}

.featured>.wrap {
  padding-top: 0;
  padding-bottom: 64px;
}

.trending{
  padding: 0;
  text-align: left;
}

.trending > .wrap{
  padding-top: 24px;
  padding-bottom: 64px;
}

.collections {
  padding-bottom: 64px;
}

/* Space between collection rows */
.collections .rail {
  margin-top: 64px;
}

.collections .rail:first-child {
  margin-top: 0;
}

.ecosystem-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ecosystem-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.ecosystem-card-title {
  font-size: var(--text-card-title-size);
  font-weight: var(--text-card-title-weight);
  line-height: var(--text-card-title-line);
  letter-spacing: var(--text-card-title-letter);
  color: rgba(15, 23, 42, 0.92);
}

.ecosystem-card-text {
  margin-top: 10px;
  font-size: var(--text-body-sm-size);
  font-weight: var(--text-body-sm-weight);
  line-height: var(--text-body-sm-line);
  letter-spacing: var(--text-body-sm-letter);
  color: var(--muted);
}


/* ---------------------------------------------------------
   Rail (carousel) - REQUIRED layout rules
   --------------------------------------------------------- */
.rail {
  position: relative;
  overflow: visible;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
}

.section-left {
  display: inline-flex;
  align-items: center;
  gap: var(--space-10);
  min-width: 0;
}

.section-title {
  margin: 0;
  font-size: var(--text-section-title-size);
  font-weight: var(--text-section-title-weight);
  letter-spacing: var(--text-section-title-letter);
  line-height: var(--text-section-title-line);
  color: rgba(15, 23, 42, 0.88);
}

/* Track */
.rail-track {
  display: flex;
  gap: var(--card-grid-gap);
  overflow-x: auto;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  padding-top: 0;
  padding-bottom: 0;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.rail-track .collection-card {
  flex: 0 0 var(--card-width-desktop);
  min-width: var(--card-width-desktop);
  max-width: var(--card-width-desktop);
  scroll-snap-align: start;
  height: 100%;
}

/* Controls container */
.rail-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* ---------------------------------------------------------
   Rail Controls (boxed) - shared style for:
   - Section arrow (View all arrow)
   - Carousel buttons (left/right chevrons)
   --------------------------------------------------------- */
.section-arrow,
.rail-btn {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  color: rgba(15, 23, 42, 0.9);

  cursor: pointer;
  /* REVIEW: icon control centering intentionally uses unitless 1 */
  line-height: 1;
  text-decoration: none;

  box-shadow: var(--shadow-soft);
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.section-arrow:hover,
.rail-btn:hover {
  background: rgba(15, 23, 42, 0.04);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  transform: translateY(-1px);
}

.section-arrow:active,
.rail-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.section-arrow:focus-visible,
.rail-btn:focus-visible {
  outline: none;
  border-color: var(--ring-border, rgba(47, 107, 255, 0.5));
  box-shadow: var(--ring, 0 0 0 3px rgba(47, 107, 255, 0.12));
}

.section-arrow span,
.rail-btn span {
  /* REVIEW: icon glyph size intentionally tied to control visuals */
  font-size: 18px;
  /* REVIEW: icon glyph centering intentionally uses unitless 1 */
  line-height: 1;
  display: block;
}

/* Hard kill any inherited underline */
.section-arrow,
.section-arrow * {
  text-decoration: none !important;
}


/* ---------------------------------------------------------
   Home owns rail layout only.
   Core reusable card shell/media/body/title/meta/tags belong
   to assets/styles.css.
   --------------------------------------------------------- */

/* Home rails inherit shared overlay inset from assets/styles.css */


/* ---------------------------------------------------------
   Editor badge (Featured only)
   --------------------------------------------------------- */
.editor-badge {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);

  padding: var(--space-4) var(--space-10);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;

  /* REVIEW: compact badge label intentionally below --text-micro-size */
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  line-height: var(--text-label-line);
  letter-spacing: var(--text-label-letter);

  pointer-events: none;
}
