/* Homepage rhythm. Shared marketplace and account pages keep their own layout. */
html:has(body.home-page) { background-image: linear-gradient(#07070b66, #07070b66), url(/assets/art/bg-doodles.svg?v=2); }
.home-page .hx-section { padding-top: 38px; padding-bottom: 38px; }
.home-page .hx-head { gap: 12px 24px; margin-bottom: 22px; align-items: center; }
.home-page .hx-h2 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.2; letter-spacing: -.035em; }
.home-page .hx-h2[data-ico]::before { width: 1.15em; height: 1.15em; vertical-align: -.19em; margin-right: .32em; }
.home-page .hx-link { padding: 9px 15px; font-size: 13px; line-height: 1.4; }
.home-page .hx-sub { font-size: 14px; line-height: 1.6; }
.home-page .rec-note { font-size: 13px; line-height: 1.5; margin-top: 10px; }
.home-page .tg .hx-head { margin-bottom: 30px; }
.home-page .tg__foot { margin-top: 18px; }

/* A quiet feed must not turn one available listing into a full-width billboard. */
.home-page main .lots-grid.hx-lots {
  --cols: 5;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.home-page .lots-grid.hx-lots > * { min-width: 0; }
.home-page .lots-grid.hx-lots > .empty,
.home-page .lots-grid.hx-lots > .pg-empty { grid-column: 1 / -1; padding: 30px 20px; }

/* Referral bonus is secondary to shopping, with the live percentage kept in the copy. */
.home-page #hx-ref-section:has(.ref-cta.ax) { padding-top: 12px !important; padding-bottom: 24px; }
.home-page .ref-cta.ax {
  --hero-w: 112px; --hero-top: 4px; --hero-right: auto;
  --shade-mid: 60%; --shade-end: 100%;
  min-height: 124px; padding: 24px 28px 24px 140px; border-radius: 22px;
  gap: 24px; overflow: hidden;
}
.home-page .ref-cta.ax .ax__hero { left: 16px; translate: none; animation: none; }
.home-page .ref-cta.ax .ax__scene { opacity: .35; }
.home-page .ref-cta.ax .ax__surface::before { background: linear-gradient(90deg, #24142ccc, #16131bea 75%); }
.home-page .ref-cta__body { gap: 8px; max-width: none; min-width: 0; flex: 1; }
.home-page .ref-cta__title { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.3; font-weight: 700; }
.home-page .ref-cta__text { font-size: 13px; line-height: 1.5; }
.home-page .ref-cta.ax .ref-cta__btn {
  flex: none; align-self: center; margin: 0; height: 42px; padding: 0 18px;
  font-size: 13px; white-space: nowrap; border-radius: 12px;
  background: #f4eaff; color: #21172f;
}

/* Four clear steps, with smaller native illustrations and equal card spacing. */
.home-page .hx-steps:has(.hx-step__art) { gap: 16px; padding-top: 18px; }
.home-page .hx-step:has(.hx-step__art) { min-width: 0; border-radius: 20px; padding: 0 18px 21px; }
.home-page .hx-step__art { height: 100px; margin: 0 -18px; border-radius: 19px 19px 0 0; opacity: .85; }
.home-page .hx-step__hero { width: 112px; height: 112px; top: -16px; right: 10px; }
.home-page .hx-step:has(.hx-step__art) .hx-step__num { width: 32px; height: 32px; margin: -16px 0 14px; border-radius: 10px; font-size: 15px; box-shadow: 0 0 0 4px var(--bg-1); }
.home-page .hx-step h3 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.home-page .hx-step p { font-size: 13px; line-height: 1.65; }
.home-page .hx-sellers { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.home-page .seller-tile { border-radius: 18px; min-width: 0; }
.home-page .hx-review { padding: 18px; border-radius: 18px; }

.home-page .hx-faq-wrap { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.home-page .hx-faq { gap: 10px; }
.home-page .hx-faq details { border-radius: 16px; }
.home-page .hx-faq summary { padding: 18px 20px; font-size: 14px; line-height: 1.5; }
.home-page .hx-faq summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: inherit; }
.home-page .hx-faq details p { font-size: 14px; padding: 0 20px 20px; }
.home-page .hx-help {
  --hero-w: 136px; --hero-top: 4px; --hero-right: 14px;
  top: 96px; margin-top: 0; padding: 144px 24px 24px; border-radius: 22px;
}
.home-page .hx-help .ax__hero { translate: none; animation: none; }
.home-page .hx-help__title { font-size: 20px; line-height: 1.3; }
.home-page .hx-help__text { font-size: 13px; line-height: 1.65; }
.home-page .hx-help__btn { justify-content: center; width: 100%; border-radius: 12px; font-size: 13px; padding: 0 12px; }

.home-page .hx-section:has(> .hx-cta-card.ax) { padding-top: 32px; padding-bottom: 56px; }
.home-page .hx-cta-card.ax {
  --hero-w: 210px; --hero-top: -12px; --hero-right: 28px;
  min-height: 212px; padding: 28px 275px 28px 30px; gap: 22px; border-radius: 22px;
}
.home-page .hx-cta-card.ax .ax__hero { translate: none; animation: none; }
.home-page .hx-cta-card.ax .hx-h2 { font-size: 27px; }
.home-page .hx-cta-card.ax .hx-sub { max-width: 46ch; font-size: 14px; }
.home-page .hx-cta-card .hx-cta { gap: 10px; }
.home-page .hx-cta-card .btn-shimmer,
.home-page .hx-cta-card .btn-ghost { min-height: 44px; padding: 10px 20px; font-size: 13px; border-radius: 12px; }

@media (min-width: 1800px) {
  .home-page main .lots-grid.hx-lots { --cols: 6; }
}
@media (max-width: 1439px) {
  .home-page main .lots-grid.hx-lots { --cols: 4; }
}
@media (max-width: 1099px) {
  .home-page main .lots-grid.hx-lots { --cols: 3; }
  .home-page .hx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .home-page .hx-steps:has(.hx-step__art) { row-gap: 30px; }
  .home-page .hx-faq-wrap { grid-template-columns: minmax(0, 1fr) 280px; }
  .home-page .hx-help { position: sticky; padding: 136px 20px 22px; }
  .home-page .hx-help > :not(.ax__surface):not(.ax__hero) { max-width: none; }
  .home-page .hx-help .ax__surface::before { background: linear-gradient(180deg, rgb(var(--shade) / .1), rgb(var(--shade) / .94) 65%); }
  .home-page .ref-cta.ax { padding-left: 116px; --hero-w: 92px; --hero-top: 12px; gap: 16px; }
  .home-page .ref-cta.ax .ax__hero { left: 10px; }
}
@media (max-width: 760px) {
  .home-page .hx-sellers > :nth-child(n + 4) { display: none; }
  .home-page .hx-section { padding-top: 28px; padding-bottom: 28px; }
  .home-page .hx-head { gap: 12px; margin-bottom: 20px; }
  .home-page .hx-h2 { font-size: 22px; }
  .home-page .hx-link { padding: 7px 11px; font-size: 12px; }
  .home-page .tg .hx-head { margin-bottom: 14px; }
  .home-page .tg__foot { margin-top: 10px; }
  .home-page main .lots-grid.hx-lots { --cols: 2; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)) !important; gap: 12px; }
  .home-page #hx-ref-section:has(.ref-cta.ax) { padding-top: 8px !important; padding-bottom: 16px; }
  .home-page .ref-cta.ax { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 140px; padding: 20px; gap: 16px; }
  .home-page .ref-cta__body { grid-column: 1; padding-right: 0; }
  .home-page .ref-cta__title { font-size: 17px; max-width: 30ch; }
  .home-page .ref-cta__text { font-size: 12px; }
  .home-page .ref-cta.ax .ax__hero { left: auto; right: 12px; top: 8px; width: 96px; height: 96px; opacity: .8; }
  .home-page .ref-cta.ax .ref-cta__btn { grid-column: 1; justify-self: start; height: 38px; font-size: 12px; }
  .home-page .hx-faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-page .hx-help { position: relative; top: 0; padding: 24px 140px 24px 22px; gap: 12px; min-height: 174px; --hero-top: 16px; --hero-right: 8px; --hero-w: 120px; }
  .home-page .hx-help > :not(.ax__surface):not(.ax__hero) { max-width: none; }
  .home-page .hx-help .ax__surface::before { background: linear-gradient(90deg, rgb(var(--shade) / .96), rgb(var(--shade) / .8) 60%, rgb(var(--shade) / .1)); }
  .home-page .hx-help__btn { width: auto; min-height: 42px; white-space: normal; height: auto; padding: 10px 14px; }
  .home-page .hx-section:has(> .hx-cta-card.ax) { padding-top: 24px; padding-bottom: 36px; }
  .home-page .hx-cta-card.ax { min-height: 205px; padding: 24px 185px 24px 22px; gap: 18px; --hero-w: 170px; --hero-top: 6px; --hero-right: 6px; }
  .home-page .hx-cta-card.ax .hx-h2 { font-size: 23px; }
  .home-page .hx-cta-card.ax .hx-sub { max-width: none; font-size: 13px; }
  .home-page .hx-cta-card.ax .ax__surface::before { background: linear-gradient(90deg, rgb(var(--shade) / .96), rgb(var(--shade) / .8) 65%, rgb(var(--shade) / .1)); }
  .home-page .hx-cta-card .hx-cta { flex-direction: row; width: auto; }
}
@media (max-width: 520px) {
  .home-page .hx-h2 { font-size: 21px; }
  .home-page .hx-head { align-items: flex-start; }
  .home-page .hx-head .hx-link { flex: none; }
  .home-page .hx-step:has(.hx-step__art) { padding: 0 14px 18px; border-radius: 17px; }
  .home-page .hx-step__art { height: 80px; margin: 0 -14px; border-radius: 16px 16px 0 0; }
  .home-page .hx-step__hero { width: 90px; height: 90px; top: -12px; right: 0; }
  .home-page .hx-step h3 { font-size: 15px; }
  .home-page .hx-step p { font-size: 12px; line-height: 1.6; }
  .home-page .hx-steps:has(.hx-step__art) { gap: 26px 12px; }
  .home-page .ref-cta.ax { padding-right: 20px; grid-template-columns: 1fr; }
  .home-page .ref-cta__body { padding-right: 64px; }
  .home-page .ref-cta__title { font-size: 16px; }
  .home-page .ref-cta.ax .ax__hero { width: 84px; height: 84px; right: 0; top: 12px; }
  .home-page .hx-faq summary { padding: 16px; font-size: 13px; gap: 12px; }
  .home-page .hx-faq details p { padding: 0 16px 18px; font-size: 13px; }
  .home-page .hx-help { padding: 22px 110px 22px 20px; --hero-w: 100px; --hero-top: 20px; --hero-right: 2px; }
  .home-page .hx-help__title { font-size: 18px; }
  .home-page .hx-help__text { font-size: 12px; }
  .home-page .hx-help__btn { font-size: 12px; }
  .home-page .hx-cta-card.ax { padding: 24px 22px; --hero-w: 112px; --hero-top: 8px; --hero-right: 4px; }
  .home-page .hx-cta-card.ax > div:not(.ax__surface) { position: relative; }
  .home-page .hx-cta-card.ax > div:not(.ax__surface):not(.hx-cta) { padding-right: 76px; }
  .home-page .hx-cta-card.ax .hx-h2 { font-size: 22px; }
  .home-page .hx-cta-card.ax .hx-sub { font-size: 12px; }
  .home-page .hx-cta-card .hx-cta { width: 100%; }
  .home-page .hx-cta-card .hx-cta > a { flex: 1; padding: 10px 14px; }
}
@media (max-width: 380px) {
  .home-page main .lots-grid.hx-lots { --cols: 1; }
  .home-page .hx-h2 { font-size: 20px; }
  .home-page .hx-steps { grid-template-columns: minmax(0, 1fr); }
  .home-page .hx-step:has(.hx-step__art) { min-height: 140px; padding: 20px 92px 20px 16px; }
  .home-page .hx-step__art { position: absolute; inset: 0; height: auto; margin: 0; border-radius: inherit; opacity: .3; }
  .home-page .hx-step__hero { width: 90px; height: 90px; right: 2px; top: 26px; }
  .home-page .hx-step:has(.hx-step__art) .hx-step__num { margin: 0 0 12px; width: 28px; height: 28px; }
  .home-page .hx-step p { max-width: 26ch; }
  .home-page .hx-steps:has(.hx-step__art) { gap: 12px; padding-top: 0; }
  .home-page .hx-help { padding-right: 88px; --hero-w: 80px; }
  .home-page .hx-cta-card .hx-cta > a { padding: 10px; font-size: 12px; }
}
