/* Clean marketplace / cascading image panels, inspired by the supplied video. */
body {
  background: #f8f7f3;
  line-height: 1.6;
}
.market-shell,
.market-home .market-shell {
  width: calc(100% - 80px);
  max-width: 1360px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.market-nav,
.market-home .market-nav {
  position: relative;
  inset: auto;
  min-height: 98px;
  padding: 18px 0;
  margin: 0 0 24px;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
}
.market-nav nav,
.market-home .market-nav nav {
  width: auto;
  font-size: 14px;
  gap: 28px;
}
.market-nav nav a,
.market-home .market-nav nav a {
  color: var(--ink);
}
.market-nav nav a[aria-current],
.market-home .market-nav nav a[aria-current] {
  background: transparent;
  color: var(--petrol);
  padding: 8px 0;
  border-radius: 0;
  box-shadow: 0 2px var(--petrol);
}
.market-brand img {
  filter: brightness(0);
}
.market-nav > .btn,
.market-home .market-nav > .btn {
  font-size: 14px;
  width: auto;
  min-height: 44px;
  padding: 11px 20px;
}
.btn,
.icon-btn,
.chip,
.badge,
.demo-badge,
.listing-status,
input,
select,
textarea,
.step-list button,
.file-row,
.file-row img,
.hint,
.error,
dialog,
.toast {
  border-radius: 3px;
}
.btn {
  border-color: transparent;
  font-size: 15px;
  font-weight: 500;
}
.btn.outline {
  border: 0;
  background: #e8ece7;
}
.badge,
.demo-badge {
  font-size: 11px;
}
.market-hero {
  height: clamp(280px, 24vw, 340px);
  border-radius: 3px;
  background: #25352d;
}
.hero-photo {
  object-position: center;
}
.hero-shade {
  background: linear-gradient(270deg, #101e18c4, #101e1840 44%, transparent 72%);
}
.hero-title {
  inset: 0 42px 0 auto;
  width: 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: right;
}
.hero-title p {
  color: #e4d9c6;
  font-size: 11px;
  letter-spacing: 0;
  margin: 0 0 14px;
}
.market-home .hero-title h1 {
  color: #fff;
  font-size: clamp(42px, 4.2vw, 62px);
  letter-spacing: -1.5px;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
}
.hero-title > span {
  font-size: 16px;
  letter-spacing: 0;
  margin-top: 10px;
  color: #ecebe2;
}
.hero-cta {
  margin-top: 22px;
  border-radius: 2px;
  min-height: 42px;
  padding: 10px 18px;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}
.hero-cta span {
  background: transparent;
  color: var(--ink);
  width: auto;
  height: auto;
  border-radius: 0;
  font-size: 20px;
}
.hero-cta:hover {
  transform: none;
}
.hero-image-note {
  position: absolute;
  bottom: 12px;
  left: 18px;
  font-size: 9px;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
.market-content {
  padding: 48px 0 0;
}
.overline {
  font-size: 11px;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.collection-heading {
  margin-bottom: 22px;
}
.market-home .collection-heading h2,
.market-home .section-heading h2 {
  font-size: 27px;
  font-weight: 500;
}
.collection-note {
  font-size: 12px;
  color: var(--muted);
}
.market-home .pro-carousel {
  border: 0;
  padding: 0;
  margin-bottom: 64px;
}
.market-home .pro-viewport {
  border: 0;
  border-radius: 3px;
  background: #2c342b;
  padding: 28px;
}
.cascade-track {
  direction: ltr;
  display: flex;
  gap: 8px;
  height: 300px;
}
.cascade-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  flex: 0.6 1 0;
  border-radius: 3px;
  background: #425047;
  transition: flex-grow 0.8s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.cascade-panel[data-distance='1'] {
  flex-grow: 1.5;
}
.cascade-panel.is-active {
  flex-grow: 8;
}
.cascade-panel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cascade-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #091811cc, transparent 65%);
  pointer-events: none;
}
.cascade-select {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  padding: 0;
  background: transparent;
  color: white;
}
.cascade-select:hover {
  background: #ffffff12;
}
.cascade-select:focus-visible {
  outline-offset: -5px;
  outline: 2px solid #f0d9ac;
}
.cascade-panel.is-active .cascade-select {
  display: none;
}
.cascade-title {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 22px;
  direction: rtl;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s,
    transform 0.5s;
}
.cascade-panel.is-active .cascade-title {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.2s;
}
.cascade-title > span {
  display: block;
  color: #e3d3b2;
  font-size: 10px;
  margin-bottom: 7px;
}
.cascade-title h3 {
  color: white;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.4;
}
.cascade-title a {
  display: inline;
}
.cascade-title a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.cascade-title a:focus-visible {
  outline-color: #f0d9ac;
}
.cascade-summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
  padding-top: 22px;
  color: #fff;
}
.cascade-context {
  min-width: 0;
}
.cascade-context p {
  font-size: 13px;
  color: #e4e8e0;
}
.cascade-context small {
  color: #bbc6b8;
  font-size: 10px;
}
.cascade-summary .metrics {
  gap: 26px;
  border: 0;
  padding: 0;
}
.market-home .cascade-summary .metrics strong {
  font-size: 23px;
  font-weight: 500;
}
.market-home .cascade-summary .metrics .metric-price strong {
  color: #abe7b6;
}
.market-home .cascade-summary .metrics .metric-revenue strong {
  color: #fff;
  background: transparent;
  width: auto;
  padding: 0;
}
.cascade-summary .metrics small {
  color: #ced6c9;
  font-size: 10px;
}
.cascade-summary .btn {
  background: #e8ddc6;
  color: #182820;
  min-height: 40px;
  padding: 10px 18px;
  font-size: 12px;
}
.market-home .pro-controls {
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
}
.market-home .pro-controls .icon-btn {
  border: 0;
  border-radius: 2px;
  background: #dee7d7;
  color: #243526;
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.market-home .pro-controls .dot {
  width: 22px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  position: relative;
}
.market-home .pro-controls .dot::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: #778471;
}
.market-home .pro-controls .dot.active {
  background: transparent;
}
.market-home .pro-controls .dot.active::after {
  background: #e8ddc6;
}
.market-home .pro-controls .dot:focus-visible {
  outline-color: #e8ddc6;
}
#pro-controls[hidden] {
  display: none;
}
.pro-empty {
  padding: 18px;
  color: white;
}
.pro-empty h3 {
  margin-bottom: 14px;
}
.pro-empty p {
  font-size: 14px;
  color: #d2dacd;
  margin-bottom: 22px;
}
.market-home .section-heading select {
  border: 0;
  border-radius: 2px;
  background: #eeeee8;
  font-size: 12px;
}
.market-home .search-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 20px;
  margin: 28px 0 36px;
}
.market-home .search-row {
  gap: 14px;
}
.market-home .search-row input,
.market-home .search-row select {
  border: 0;
  border-bottom: 1px solid #bbc7bb;
  border-radius: 0;
  background: #eeeee8;
  font-size: 13px;
  min-height: 46px;
}
.market-home .search-row .btn {
  border-radius: 2px;
  font-size: 14px;
}
.market-home .chip {
  border: 0;
  border-radius: 2px;
  background: #ebeee7;
  min-height: 36px;
  font-size: 12px;
}
.market-home .chip.active {
  background: #2c342b;
}
.market-home .cards {
  gap: 42px 28px;
}
.project-card,
.market-home .project-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  gap: 14px;
}
.market-home .project-card:hover {
  transform: translateY(-3px);
}
.project-card .cover,
.market-home .project-card .cover {
  border-radius: 3px;
}
.market-home .project-card :is(h3, .meta, .metrics, .card-bottom) {
  margin-right: 0;
  margin-left: 0;
}
.market-home .project-card h3 {
  font-size: 22px;
}
.market-home .project-card .meta {
  margin-top: -6px;
  font-size: 12px;
}
.market-home .project-card .metrics {
  padding: 12px 0 0;
  border: 0;
}
.market-home .project-card .metrics strong {
  font-size: 25px;
}
.market-home .project-card .metrics small {
  font-size: 11px;
}
.market-home .card-bottom .btn {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  padding: 4px 0;
  font-size: 13px;
  min-height: 40px;
  box-shadow: inset 0 -1px #b9c3b7;
}
.market-home .card-bottom .icon-btn {
  border-radius: 2px;
  background: #e8ece4;
}
.market-home .project-card > .demo-badge {
  top: 12px;
  right: 12px;
  border: 0;
  border-radius: 2px;
  padding: 5px 8px;
  font-size: 10px;
}
.panel,
.step-panel,
.empty,
.demo-notice,
.upload-zone,
.plan,
.gallery-main,
.gallery-thumbs img {
  border-radius: 3px;
}
.panel,
.step-panel,
.empty,
.demo-notice {
  border: 0;
}
.panel {
  background: #fff;
  padding: 28px;
}
.detail-grid > div:first-child .panel {
  background: transparent;
  padding: 16px 0;
}
.detail-grid > .sticky {
  background: #eff0e9;
}
.detail-grid {
  gap: 44px;
}
.detail-grid .metrics {
  border: 0;
}
.plan {
  border-width: 1px;
}
.market-footer,
.market-home .market-footer {
  border: 0;
  border-radius: 0;
  margin: 72px 0 0;
  padding: 40px 0 32px;
  background: transparent;
  border-top: 1px solid #dce0d5;
}
.footer-top {
  gap: 80px;
}
.footer-intro h2 {
  font-size: 42px;
  font-weight: 500;
}
.feedback-form input,
.feedback-form textarea {
  border: 0;
  border-bottom: 1px solid #bbc7bb;
  border-radius: 0;
  background: #eeeee8;
}
.market-home .market-enter .search-panel {
  animation: none;
}
@media (max-width: 1100px) {
  .market-shell,
  .market-home .market-shell {
    width: calc(100% - 48px);
  }
  .market-nav nav,
  .market-home .market-nav nav {
    gap: 20px;
    font-size: 12px;
  }
  .cascade-summary {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }
  .cascade-context {
    grid-column: 1 / -1;
  }
  .cascade-track {
    height: 260px;
  }
}
@media (max-width: 760px) {
  .market-shell,
  .market-home .market-shell {
    width: calc(100% - 32px);
    margin: 0 auto;
    border: 0;
  }
  .market-nav,
  .market-home .market-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px 0;
    margin-bottom: 14px;
  }
  .market-brand,
  .market-home .market-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 110px;
    height: 40px;
  }
  .market-brand img,
  .market-home .market-brand img {
    width: 110px;
  }
  .market-nav > .btn,
  .market-home .market-nav > .btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 11px;
    padding: 10px 14px;
    min-height: 40px;
  }
  .market-nav nav,
  .market-home .market-nav nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
  }
  .market-home .market-nav nav a[aria-current] {
    padding: 8px 0;
  }
  .market-hero {
    height: 250px;
    border-radius: 3px;
  }
  .hero-title {
    inset: 0 22px 0 auto;
    width: calc(100% - 44px);
  }
  .hero-shade {
    background: linear-gradient(270deg, #102118cf, #10211826);
  }
  .hero-photo {
    object-position: 65% center;
  }
  .market-home .hero-title h1 {
    font-size: 36px;
    letter-spacing: -0.8px;
  }
  .hero-title p {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .hero-title > span {
    font-size: 14px;
    margin-top: 8px;
  }
  .hero-cta {
    font-size: 12px;
    min-height: 40px;
    margin-top: 20px;
  }
  .hero-image-note {
    font-size: 7px;
    bottom: 9px;
    left: 10px;
  }
  .market-content {
    padding: 34px 0 0;
  }
  .collection-heading {
    display: flex;
    align-items: end;
    gap: 10px;
  }
  .collection-note {
    display: none;
  }
  .market-home .collection-heading h2,
  .market-home .section-heading h2 {
    font-size: 22px;
  }
  .market-home .pro-carousel {
    margin-bottom: 42px;
    padding: 0;
  }
  .market-home .pro-viewport {
    padding: 14px;
  }
  .cascade-track {
    height: 225px;
    gap: 5px;
  }
  .cascade-panel {
    flex-grow: 0.25;
  }
  .cascade-panel[data-distance='1'] {
    flex-grow: 0.8;
  }
  .cascade-panel.is-active {
    flex-grow: 9;
  }
  .cascade-title {
    left: 14px;
    right: 14px;
    bottom: 18px;
  }
  .cascade-title h3 {
    font-size: 18px;
  }
  .cascade-summary {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 16px;
  }
  .cascade-context {
    grid-column: auto;
  }
  .cascade-context p {
    font-size: 12px;
  }
  .market-home .cascade-summary .metrics strong {
    font-size: 22px;
  }
  .cascade-summary .btn {
    justify-self: start;
  }
  .market-home .pro-controls {
    margin-top: 18px;
    gap: 5px;
  }
  .market-home .cards {
    gap: 34px;
  }
  .market-home .project-card .cover {
    aspect-ratio: 1.65;
  }
  .market-home .search-panel {
    padding: 0;
    margin: 22px 0 28px;
    gap: 16px;
  }
  .market-home .search-row {
    gap: 14px 10px;
  }
  .market-home .section-heading select {
    margin-top: 16px;
  }
  .market-home .project-card h3 {
    font-size: 22px;
  }
  .market-home .project-card .metrics strong {
    font-size: 24px;
  }
  .detail-grid {
    gap: 20px;
  }
  .panel {
    padding: 22px;
  }
  .market-footer,
  .market-home .market-footer {
    padding: 28px 0;
    margin-top: 48px;
    border-radius: 0;
  }
  .footer-top {
    gap: 32px;
  }
  .footer-intro h2 {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cascade-panel,
  .cascade-title {
    transition: none;
  }
}
/* Softer architectural corners; decoration stays limited to interactive controls. */
.market-hero,
.market-home .pro-viewport {
  border-radius: 12px;
}
.cascade-panel,
.project-card .cover,
.market-home .project-card .cover,
.gallery-main,
.gallery-thumbs img {
  border-radius: 10px;
}
.panel,
.step-panel,
.empty,
.demo-notice,
.upload-zone,
.plan,
dialog {
  border-radius: 12px;
}
.hint,
.error,
.file-row,
.file-row img,
.step-list button {
  border-radius: 8px;
}
input,
select,
textarea,
.market-home .search-row input,
.market-home .search-row select,
.feedback-form input,
.feedback-form textarea {
  border-radius: 8px;
}
.badge,
.demo-badge,
.market-home .project-card > .demo-badge {
  border-radius: 5px;
}
.market-home .section-heading select {
  border-radius: 8px;
}
