/* The store page: a homeware shop, Halcyon & Co, shown the way its customers and its owner see it.
   Product photos are free-licence stock (Unsplash; sources in plan/106-site-families.md). The
   demos use site.js's sequences: [data-seq-from] parts appear at their step, .seq-only parts
   only while it plays, so each figure rests on a complete still. */

/* Hero */
.sx-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 72px;
  background:
    radial-gradient(55% 60% at 78% 45%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #f3eee6 0%, #f7f4ef 60%, #fbfaf8 100%);
}
.sx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.sx-hero__text .h1 {
  margin-top: 12px;
  max-width: 13ch;
  text-wrap: balance;
}
.sx-hero__text .lead {
  margin-top: 18px;
  color: var(--ink-600);
}
.sx-hero__text .row {
  margin-top: 28px;
}
.sx-hero__text .hero__meta {
  margin-top: 24px;
}
.sx-hero__text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sx-stage {
  position: relative;
  margin: 0 -4% 0 0;
  padding: 2% 0 12% 6%;
  container-type: inline-size;
}

/* The laptop */
.sx-laptop__lid {
  padding: 1.6cqw 1.6cqw 2cqw;
  border-radius: 2.2cqw 2.2cqw 0.6cqw 0.6cqw;
  background: linear-gradient(180deg, #2b2f3a, #1b1e26);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 50px 80px -40px rgba(60, 40, 20, 0.45);
}
.sx-laptop__screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.6cqw;
  background: #fbfaf8;
}
.sx-laptop__base {
  position: relative;
  height: 2.2cqw;
  margin: 0 -5%;
  border-radius: 0 0 2.6cqw 2.6cqw;
  background: linear-gradient(180deg, #d9dbe1, #b6b9c2 70%, #9ea2ad);
  box-shadow: 0 30px 50px -24px rgba(60, 40, 20, 0.45);
}
.sx-laptop__base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 42%;
  right: 42%;
  height: 0.9cqw;
  border-radius: 0 0 1cqw 1cqw;
  background: #8e929c;
}

/* The storefront inside it */
.sx-site {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #2b2620;
  font-size: 1.35cqw;
}
.sx-site__bar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1em;
  background: #efece7;
  border-bottom: 1px solid #e3ddd4;
}
.sx-site__bar > i {
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: #d6cfc4;
}
.sx-site__bar > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 auto;
  padding: 0.2em 1.2em;
  border-radius: 99em;
  background: #fff;
  font-size: 0.85em;
  color: #8a8174;
}
.sx-site__scroll {
  flex: 1;
  overflow: hidden;
}
.sx-site__scroll > * {
  animation: sx-browse 16s 1s ease-in-out infinite;
}
@keyframes sx-browse {
  0%,
  18% {
    transform: translateY(0);
  }
  48%,
  70% {
    transform: translateY(-46%);
  }
  96%,
  100% {
    transform: translateY(0);
  }
}
.sx-site__nav {
  display: flex;
  align-items: center;
  gap: 2.4em;
  padding: 1.1em 2.2em;
  font-size: 0.95em;
  color: #6f675c;
}
.sx-site__nav b {
  margin-right: auto;
  font-size: 1.25em;
  letter-spacing: -0.02em;
  color: #2b2620;
}
.sx-site__bag {
  position: relative;
  font-weight: 600;
  color: #2b2620;
}
.sx-site__count {
  position: absolute;
  top: -0.8em;
  right: -1.4em;
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: #2b2620;
  color: #fff;
  font-style: normal;
  font-size: 0.8em;
}
.sx-site__banner {
  position: relative;
  height: 15em;
  margin: 0 2.2em;
  overflow: hidden;
  border-radius: 0.6em;
}
.sx-site__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.sx-site__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 35%, rgba(251, 250, 248, 0.88) 72%);
}
.sx-site__banner-text {
  position: absolute;
  z-index: 1;
  right: 2em;
  bottom: 1.8em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  max-width: 50%;
  color: #2b2620;
}
.sx-site__banner-text small {
  font-size: 0.85em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sx-site__banner-text b {
  font-size: 2.1em;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.sx-site__banner-text span {
  align-self: flex-start;
  padding: 0.6em 1.2em;
  border-radius: 99em;
  background: #2b2620;
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
}
.sx-site__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6em 1.2em;
  padding: 1.8em 2.2em 2.4em;
}
.sx-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}
.sx-tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.4em;
  margin-bottom: 0.4em;
  background: #ece6dc;
}
.sx-tile b {
  font-size: 0.95em;
  font-weight: 600;
}
.sx-tile small {
  font-size: 0.9em;
  color: #6f675c;
}

/* The phone */
.sx-phone {
  position: absolute;
  left: 0;
  bottom: 2%;
  width: 27%;
  padding: 1.1cqw;
  border-radius: 4.4cqw;
  background: linear-gradient(180deg, #2b2f3a, #15171d);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 50px 70px -30px rgba(60, 40, 20, 0.6);
}
.sx-phone__screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 3.4cqw;
  background: #fbfaf8;
}
.sx-pdp {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #2b2620;
  font-size: 1.45cqw;
}
.sx-pdp > img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}
.sx-pdp__info {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  padding: 1.2em 1.1em;
}
.sx-pdp__info b {
  font-size: 1.4em;
  letter-spacing: -0.02em;
}
.sx-pdp__info small {
  color: #6f675c;
  line-height: 1.4;
}
.sx-pdp__add {
  position: relative;
  margin-top: 0.6em;
  padding: 0.9em 0;
  border-radius: 99em;
  background: #2b2620;
  color: #fff;
  font-weight: 650;
  text-align: center;
  overflow: hidden;
}
.sx-pdp__add.is-at {
  animation: pos-press 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sx-pdp__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 1.4em 1.1em 1.6em;
  border-radius: 1.4em 1.4em 0 0;
  background: #fff;
  box-shadow: 0 -1em 3em -1em rgba(43, 38, 32, 0.35);
}
.sx-pdp__sheet[data-seq-from]:not(.is-on) {
  transform: translateY(100%);
}
.sx-pdp__sheet b {
  font-size: 1.3em;
}
.sx-pdp__wallet,
.sx-pdp__pay {
  padding: 0.85em 0;
  border-radius: 0.7em;
  background: #000;
  color: #fff;
  font-weight: 650;
  text-align: center;
}
.sx-pdp__pay {
  background: var(--blue-500);
}
.sx-pdp__line {
  display: flex;
  justify-content: space-between;
  color: #6f675c;
}
.sx-pdp__done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: rgba(251, 250, 248, 0.97);
  text-align: center;
}
.sx-pdp__done b {
  font-size: 1.4em;
}
.sx-pdp__done small {
  color: #6f675c;
}

/* Floating chips */
.sx-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink-900);
  font-size: 13px;
  line-height: 1.3;
  box-shadow:
    0 24px 40px -20px rgba(60, 40, 20, 0.45),
    0 0 0 1px rgba(43, 38, 32, 0.06);
  z-index: 2;
}
.sx-chip b {
  display: block;
}
.sx-chip small {
  color: var(--ink-500);
}
.sx-chip .icon {
  color: var(--mint-700);
}
.sx-chip--order {
  right: 2%;
  top: 0;
  background: var(--ink-900);
  color: #fff;
}
.sx-chip--order small {
  color: var(--ink-300);
}
.sx-chip__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 0 4px rgba(0, 209, 167, 0.25);
}
.sx-chip--stock {
  right: 6%;
  bottom: 6%;
}
[data-sequence][data-step] .sx-chip[data-seq-from]:not(.is-on) {
  transform: translateY(10px);
}
.sx-stage__toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  border-color: var(--ink-200);
  background: #fff;
  color: var(--ink-700);
}

/* Unified commerce */
.sx-uni__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.sx-uni__text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sx-uni__points {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-200);
}
.sx-uni__points li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sx-uni__points .icon {
  color: var(--mint-300);
}
.sx-flow {
  margin: 0;
  container-type: inline-size;
}
.sx-flow__scene {
  position: relative;
  aspect-ratio: 520 / 420;
  font-size: 2.6cqw;
}
.sx-flow__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}
.sx-flow__wires path {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.5;
}
.sx-flow__wires .sx-flow__pulse {
  stroke: var(--mint-300);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 22 100;
  stroke-dashoffset: 22;
  transition: none;
}
.sx-flow__wires .sx-flow__pulse.is-on {
  animation: sx-pulse 1.1s cubic-bezier(0.4, 0, 0.6, 1) both;
}
@keyframes sx-pulse {
  to {
    stroke-dashoffset: -100;
  }
}
.sx-flow__src {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1em 0.6em 0.8em;
  border-radius: 99em;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
  transform: translateY(-50%);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.sx-flow__src .icon {
  width: 1.1em;
  height: 1.1em;
}
.sx-flow__src--1 {
  top: 16.7%;
}
.sx-flow__src--2 {
  top: 50%;
}
.sx-flow__src--3 {
  top: 83.3%;
}
.sx-flow__src.is-at {
  background: rgba(0, 209, 167, 0.3);
  box-shadow: inset 0 0 0 1px rgba(77, 226, 195, 0.8);
}
.sx-flow__product {
  position: absolute;
  left: 45.5%;
  top: 50%;
  width: 26%;
  overflow: hidden;
  border-radius: 1em;
  background: #fff;
  color: var(--ink-900);
  transform: translateY(-50%);
  box-shadow: 0 2em 4em -1.6em rgba(5, 8, 20, 0.8);
}
.sx-flow__product img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.sx-flow__stock {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 0.7em 0.8em 0.8em;
}
.sx-flow__stock small {
  font-size: 0.7em;
  color: var(--ink-500);
}
.sx-flow__count {
  display: grid;
  font-size: 2.2em;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.sx-flow__count b {
  grid-area: 1 / 1;
}
.sx-flow__orders {
  position: absolute;
  right: 0;
  top: 50%;
  width: 24%;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  padding: 0.8em;
  border-radius: 1em;
  background: #fff;
  color: var(--ink-900);
  transform: translateY(-50%);
  box-shadow: 0 2em 4em -1.6em rgba(5, 8, 20, 0.8);
  font-size: 0.72em;
}
.sx-flow__head {
  font-weight: 650;
  color: var(--ink-500);
}
.sx-flow__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5em;
  align-items: center;
  padding-top: 0.45em;
  border-top: 1px solid var(--ink-100);
  font-variant-numeric: tabular-nums;
}
[data-sequence][data-step] .sx-flow__row[data-seq-from]:not(.is-on) {
  transform: translateX(0.8em);
}
.sx-src {
  justify-self: start;
  padding: 0.1em 0.6em;
  border-radius: 99em;
  font-style: normal;
  font-weight: 650;
}
.sx-src--online {
  background: var(--blue-50);
  color: var(--blue-700);
}
.sx-src--till {
  background: var(--mint-50);
  color: var(--mint-800);
}
.sx-src--agent {
  background: var(--lilac-100);
  color: var(--lilac-700);
}

/* Feature bands */
.sx-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.sx-band__text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sx-band__text .lead {
  margin-top: 14px;
}
.sx-band__text .link-arrow {
  display: inline-flex;
  margin-top: 18px;
}

/* Drops: a phone on its own, on a warm stage */
.sx-drop {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 48px 0;
  border-radius: 28px;
  background:
    radial-gradient(60% 60% at 50% 40%, #fff, transparent 70%),
    linear-gradient(160deg, #efe7da, #e2d6c3);
  container-type: inline-size;
}
.sx-phone--solo {
  position: relative;
  left: auto;
  bottom: auto;
  width: 42%;
  padding: 1.6cqw;
  border-radius: 6.4cqw;
}
.sx-phone--solo .sx-phone__screen {
  border-radius: 5cqw;
}
.sx-dropui {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  color: #2b2620;
  font-size: 2.2cqw;
}
.sx-dropui img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  margin-bottom: 0.4em;
}
.sx-dropui > b,
.sx-dropui > small {
  padding: 0 1em;
}
.sx-dropui > b {
  font-size: 1.35em;
  letter-spacing: -0.02em;
}
.sx-dropui > small {
  color: #6f675c;
}
.sx-dropui__timer {
  display: grid;
  margin: 0.6em 1em 0;
}
.sx-dropui__timer > span {
  grid-area: 1 / 1;
  padding: 0.85em 0.6em;
  border-radius: 99em;
  background: #2b2620;
  color: #fff;
  font-weight: 650;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sx-dropui__turn {
  background: var(--blue-500) !important;
  font-size: 0.9em;
}
.sx-dropui__pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  margin: 0.5em 1em 0;
  padding: 0.5em;
  border-radius: 0.6em;
  background: var(--mint-50);
  color: var(--mint-800);
  font-weight: 650;
}

/* Shipping: the photo, a label, the tracking */
.sx-ship {
  position: relative;
  margin: 0;
  padding: 0 0 40px;
}
.sx-ship__photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 40px 70px -40px rgba(11, 16, 32, 0.45);
}
.sx-ship__label {
  position: absolute;
  left: -4%;
  bottom: 0;
  width: 46%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  box-shadow: 0 30px 50px -24px rgba(11, 16, 32, 0.5);
  transform: rotate(-3deg);
}
.sx-ship__label-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sx-ship__label-head i {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
}
.sx-ship__to {
  color: var(--ink-600);
}
.sx-ship__bars {
  height: 34px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink-900) 0 2px,
    transparent 2px 4px,
    var(--ink-900) 4px 5px,
    transparent 5px 8px,
    var(--ink-900) 8px 11px,
    transparent 11px 13px
  );
}
.sx-ship__label small {
  color: var(--mint-700);
  font-weight: 600;
}
.sx-ship__track {
  position: absolute;
  right: -3%;
  top: 8%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 30px 50px -24px rgba(11, 16, 32, 0.5);
}
.sx-ship__track li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-800);
}
.sx-ship__track .icon {
  padding: 3px;
  border-radius: 50%;
  background: var(--mint-500);
  color: #fff;
  box-sizing: content-box;
}
/* Every step is listed from the start; each turns green as the parcel gets there. */
[data-sequence][data-step] .sx-ship__track li[data-seq-from]:not(.is-on) {
  opacity: 0.4;
  visibility: visible;
}
[data-sequence][data-step] .sx-ship__track li[data-seq-from]:not(.is-on) .icon {
  background: var(--ink-300);
}

/* Search and the assistant */
.sx-find {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(160deg, #f6f1ea, #ece3d6);
}
.sx-find__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(43, 38, 32, 0.5);
  color: #8a8174;
  font-size: 15px;
}
.sx-find__q {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #2b2620;
}
.sx-find__typed {
  display: inline-block;
}
.sx-find__typed.is-on {
  animation: sx-type 1.6s steps(42, end) both;
}
@keyframes sx-type {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.sx-find__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sx-find__res {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 8px 10px;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  color: #2b2620;
}
.sx-find__res img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 6px;
}
.sx-find__res small {
  color: #6f675c;
}
[data-sequence][data-step] .sx-find__res[data-seq-from]:not(.is-on) {
  transform: translateY(10px);
}
.sx-find__res:nth-child(2) {
  transition-delay: 0.08s;
}
.sx-find__res:nth-child(3) {
  transition-delay: 0.16s;
}
.sx-find__ask {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 40px -24px rgba(43, 38, 32, 0.5);
  font-size: 14px;
}
.sx-find__ask-who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 600;
}
.sx-find__ask-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.sx-find__ask-btns i {
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--ink-200);
  font-style: normal;
  font-size: 13px;
  font-weight: 650;
}
.sx-find__ask-btns i.is-yes {
  background: var(--ink-900);
  box-shadow: none;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .sx-site__scroll > *,
  .sx-flow__wires .sx-flow__pulse.is-on,
  .sx-find__typed.is-on {
    animation: none;
  }
}
@media (max-width: 960px) {
  .sx-hero {
    padding: 112px 0 48px;
  }
  .sx-hero__grid,
  .sx-uni__grid,
  .sx-band__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .sx-stage {
    margin: 0;
  }
  .sx-band__grid--flip .sx-band__text {
    order: -1;
  }
  .sx-ship__label {
    left: 0;
  }
  .sx-ship__track {
    right: 0;
  }
}
@media (max-width: 560px) {
  .sx-chip {
    font-size: 11px;
    padding: 8px 10px;
  }
  .sx-ship__label,
  .sx-ship__track {
    font-size: 11px;
  }
  .sx-find__results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .sx-find__search {
    font-size: 13px;
  }
}
