:root {
  color-scheme: light;
  --ink: #24192b;
  --muted: #6e6476;
  --purple: #542478;
  --border: #e9e3ec;
  --page: #f9f7fb;
  --lime: #d5f48b;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 280px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #9b62ca;
  outline-offset: 3px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.visually-hidden, .icon-library {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: middle;
}
.skip-link {
  z-index: 20;
  position: fixed;
  top: 0.5rem;
  left: 1rem;
  transform: translateY(-150%);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  background: white;
}
.skip-link:focus { transform: none; }

.site-header { background: #fff; border-bottom: 1px solid #eee8f0; }
.demo-notice {
  border-bottom: 1px solid #e8ddee;
  background: #f2eaf8;
  color: #4e315c;
}
.demo-notice-inner {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem 0.75rem;
  flex-wrap: wrap;
  padding: 0.45rem 1rem;
  text-align: center;
  font-size: 0.84rem;
}
.demo-notice strong { color: var(--purple); font-weight: 800; }
.header-inner, .page-shell, .footer-inner {
  width: min(100% - 6rem, 77rem);
  margin-inline: auto;
}
.header-inner {
  min-height: 4.65rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.625rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.065em;
}
.brand-accent { color: #6a348f; }
.brand-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 0.75rem;
  background: #512572;
  color: var(--lime);
}
.brand-icon svg { width: 1.65rem; height: 1.65rem; }
.main-nav, .header-actions { display: flex; align-items: center; gap: 0.4rem; }
.header-actions { justify-self: end; gap: 0.65rem; }
.main-nav button, .profile-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: #61546b;
  min-height: 2.55rem;
  padding: 0.5rem 0.72rem;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}
.main-nav button[aria-current="page"], .main-nav button.is-active, .main-nav button[aria-selected="true"] {
  color: var(--purple);
  background: #f2eaf8;
}
.main-nav button:hover, .profile-button:hover { background: #f2eaf8; color: var(--purple); }
.main-nav .icon, .header-actions .icon { width: 1.125rem; height: 1.125rem; }
.compact-business-label { display: none; }
.nav-count {
  display: grid;
  min-width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  padding: 0 0.2rem;
  border-radius: 1rem;
  background: #e7d8f3;
  color: var(--purple);
  font-size: 0.69rem;
}
.profile-button {
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--purple);
  background: #fcf9fd;
}
.location-control, .sort-control {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: white;
  color: var(--purple);
}
.location-control > .icon, .sort-control > .icon { position: absolute; left: 0.65rem; pointer-events: none; }
.location-control > .location-chevron, .sort-control > .sort-chevron { left: auto; right: 0.55rem; width: 1rem; }
.location-control select, .sort-control select {
  width: 100%;
  min-height: 2.55rem;
  appearance: none;
  border: 0;
  border-radius: inherit;
  background: transparent;
  padding: 0 1.95rem 0 2.05rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
}
.location-control { width: 10.35rem; }

.page-shell { padding-block: 1.85rem 4.25rem; min-height: calc(100vh - 10rem); }
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 23rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #2d173e;
  color: #fff;
}
.hero-photo, .hero-shade { position: absolute; inset: 0 0 0 auto; width: 66%; height: 100%; z-index: -2; }
.hero-photo { object-fit: cover; object-position: 53% 54%; }
.hero-shade {
  inset: 0;
  width: 100%;
  z-index: -1;
  background: linear-gradient(90deg, #2d173e 0%, #2d173e 33%, #2d173eec 40%, #2d173e73 51%, #2d173e08 67%, #2d173e0c 100%);
}
.hero-content { position: relative; padding: 1.8rem 0 2rem 3.35rem; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  border: 1px solid #a77abb59;
  border-radius: 3rem;
  background: #f6d8ff10;
  padding: 0.32rem 0.7rem;
  color: #e9cfef;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.075em;
}
.hero-kicker .icon { width: 0.95rem; height: 0.95rem; color: var(--lime); }
.hero h1 {
  font-size: clamp(3rem, 4.85vw, 4.35rem);
  line-height: 1.035;
  font-weight: 800;
  letter-spacing: -0.065em;
}
.hero h1 span { color: var(--lime); }
.hero p {
  max-width: 26rem;
  margin-top: 0.75rem;
  color: #ebdfef;
  font-size: 1rem;
  line-height: 1.6;
}
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.05rem; }
.hero-button, .button-primary, .button-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.9rem;
  padding: 0.63rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: none;
}
.hero-button { background: var(--lime); color: #252b11; }
.hero-button:hover { background: #e3fba8; }
.button-primary { background: var(--purple); color: white; }
.button-primary:hover:not(:disabled) { background: #67368a; }
.button-primary:disabled { opacity: 0.58; }
.button-secondary { border-color: var(--border); background: white; color: var(--purple); }
.button-secondary:hover:not(:disabled) { background: #f3edf7; }
.how-link {
  color: #fff;
  text-underline-offset: 0.3rem;
  text-decoration-color: #ead8f088;
  font-size: 0.9rem;
  font-weight: 700;
}
.how-link:hover { text-decoration-color: var(--lime); color: var(--lime); }
.hero-sparkle { position: absolute; display: block; color: #d6f48c; }
.hero-sparkle svg { display: block; width: 100%; height: 100%; }
.hero-sparkle-large { right: 4.1%; top: 10.5%; width: 2.85rem; height: 2.85rem; transform: rotate(12deg); }
.hero-sparkle-small { right: 7.8%; top: 19.5%; width: 1.25rem; height: 1.25rem; transform: rotate(12deg); }

.market { margin-top: 1.95rem; scroll-margin-top: 1.25rem; }
.market-heading, .market-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.market-heading h2, .how-section h2, .secondary-view h1 {
  font-size: clamp(1.9rem, 3vw, 2.52rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.047em;
}
.market-heading p, .view-description { color: var(--muted); margin-top: 0.32rem; }
.search-control {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  width: min(100%, 19.25rem);
  min-height: 2.8rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: white;
  color: #6b5577;
}
.search-control:focus-within { border-color: #a270c2; box-shadow: 0 0 0 2px #a270c238; }
.search-control input {
  min-width: 0;
  min-height: 2.75rem;
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.94rem;
}
.search-control input:focus-visible { outline: none; }
.search-control input::placeholder { color: #776d80; opacity: 1; }
.market-controls { margin-top: 1.05rem; }
.category-filters { display: flex; gap: 0.52rem; align-items: center; flex-wrap: wrap; }
.category-filters button {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.6rem;
  padding: 0.48rem 0.83rem;
  border: 1px solid #e9e0ec;
  border-radius: 3rem;
  background: #fff;
  color: #615169;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}
.category-filters button:hover { border-color: #b68acf; color: var(--purple); }
.category-filters button[aria-pressed="true"] { border-color: var(--purple); background: var(--purple); color: #fff; }
.category-filters button .icon { width: 1.06rem; height: 1.06rem; }
.sort-control { min-width: 9.2rem; }
.sort-control select { color: #65546e; }
.offer-count { min-height: 1.25rem; margin-block: 0.95rem 0.6rem; color: var(--muted); font-size: 0.875rem; font-weight: 650; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.offer-card {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9e0eb;
  border-radius: 1.03rem;
  background: #fff;
  box-shadow: 0 3px 8px #32103b06;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.offer-card:hover { box-shadow: 0 8px 22px #32103b11; transform: translateY(-2px); }
.offer-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2.2;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #e4d6e9;
}
.offer-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.offer-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--purple); }
.stock-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.8rem;
  border-radius: 2rem;
  background: var(--lime);
  color: #253018;
  padding: 0.18rem 0.66rem;
  font-size: 0.79rem;
  font-weight: 800;
}
.stock-badge.is-low { background: #fce5aa; color: #553819; }
.stock-badge.sold-out { background: #ece7ef; color: #625868; }
.offer-favorite {
  position: absolute;
  top: 0.66rem;
  right: 0.66rem;
  z-index: 2;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--purple);
  box-shadow: 0 2px 7px #24192b20;
}
.offer-favorite:hover { background: #f0e4f7; }
.offer-favorite.is-saved, .offer-favorite[aria-pressed="true"] { background: #f3e7fa; }
.offer-favorite.is-saved .icon, .offer-favorite[aria-pressed="true"] .icon { fill: var(--purple); }
.offer-info { padding: 0.9rem 1rem 0.95rem; }
.offer-merchant { display: flex; gap: 0.5rem; align-items: center; color: #665a6e; font-size: 0.875rem; font-weight: 750; }
.merchant-avatar {
  display: inline-grid;
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  background: var(--avatar-color, #e8d9ec);
  color: #372542;
  font-size: 0.62rem;
  font-weight: 800;
}
.offer-title { margin-top: 0.37rem; font-size: 1.16rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1.33; }
.offer-open { text-align: left; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
.offer-open:hover { color: var(--purple); }
.offer-open::after { position: absolute; inset: 0; z-index: 1; content: ""; }
.offer-open:focus-visible { outline-offset: 3px; border-radius: 0.15rem; }
.offer-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; margin-top: 0.72rem; color: #6b6171; font-size: 0.85rem; }
.offer-meta-item { display: inline-flex; align-items: center; gap: 0.3rem; }
.offer-meta .icon { width: 1rem; height: 1rem; color: #79528a; }
.offer-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-top: 0.8rem; padding-top: 0.72rem; border-top: 1px solid #f0e9f2; }
.offer-price { color: var(--purple); font-size: 1.14rem; font-weight: 800; letter-spacing: -0.035em; }
.offer-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.48rem; }
.offer-original { color: #786e80; font-size: 0.8rem; font-weight: 600; }
.offer-rating { display: inline-flex; gap: 0.28rem; align-items: center; color: #503957; font-size: 0.88rem; font-weight: 800; }
.offer-rating .icon { width: 0.98rem; height: 0.98rem; fill: #ffca68; stroke: #a96313; }

.how-section { margin-top: 3.75rem; scroll-margin-top: 1.25rem; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.how-steps li { display: flex; align-items: flex-start; gap: 0.85rem; padding: 1.05rem; border: 1px solid var(--border); border-radius: 1rem; background: white; }
.step-icon { display: grid; flex: none; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 0.7rem; background: #f1e7f8; color: var(--purple); }
.how-steps h3 { font-size: 1rem; font-weight: 800; }
.how-steps p { margin-top: 0.25rem; color: var(--muted); font-size: 0.9rem; }
.secondary-view { padding-top: 1rem; }
.secondary-view h1 { margin-bottom: 0.4rem; }
.secondary-view .view-description { margin-bottom: 1.5rem; }
.site-footer { border-top: 1px solid var(--border); background: white; }
.footer-inner { display: flex; min-height: 5.3rem; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner p { color: var(--muted); font-size: 0.85rem; }
.footer-business-link { padding: 0.4rem 0; border: 0; background: none; color: var(--purple); font-size: 0.9rem; font-weight: 750; text-underline-offset: 0.22rem; }
.footer-business-link:hover { text-decoration: underline; }
.footer-brand { font-size: 1.22rem; }
.footer-brand .brand-icon { width: 1.85rem; height: 1.85rem; border-radius: 0.55rem; }
.footer-brand svg { width: 1.35rem; height: 1.35rem; }

@media (max-width: 1060px) {
  .header-inner, .page-shell, .footer-inner { width: calc(100% - 3.5rem); }
  .main-nav .icon { display: none; }
}
@media (max-width: 820px) {
  .header-inner { gap: 0.5rem; }
  .main-nav { gap: 0.14rem; }
  .main-nav button { padding-inline: 0.5rem; }
  .main-nav button .icon { display: none; }
  .hero-content { padding-left: 2.2rem; }
  .hero-shade { background: linear-gradient(90deg, #2d173e 0%, #2d173e 29%, #2d173ee8 40%, #2d173e4d 76%, #2d173e13 100%); }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-steps { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  .header-inner, .page-shell, .footer-inner { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr auto; column-gap: 0.75rem; row-gap: 0; padding-top: 0.65rem; }
  .brand { font-size: 1.35rem; }
  .brand-icon { width: 2.1rem; height: 2.1rem; }
  .brand-icon svg { width: 1.48rem; height: 1.48rem; }
  .header-actions { grid-row: 1; grid-column: 2; gap: 0.4rem; }
  .profile-button { width: 2.45rem; height: 2.45rem; min-height: 2.45rem; }
  .location-control { width: 10.2rem; }
  .location-control select { min-height: 2.3rem; font-size: 0.82rem; }
  .main-nav { grid-column: 1 / -1; justify-content: space-between; gap: 0.35rem; padding-block: 0.55rem; }
  .main-nav button { flex: 1; min-width: 0; min-height: 2.4rem; padding-inline: 0.3rem; font-size: 0.82rem; }
  .main-nav button .icon { display: block; width: 1rem; height: 1rem; }
  .wide-business-label { display: none; }
  .compact-business-label { display: inline; }
  .page-shell { padding-top: 1rem; padding-bottom: 2.6rem; }
  .hero { min-height: 30.25rem; align-items: flex-end; border-radius: 1.2rem; }
  .hero-photo { width: 100%; height: 64%; object-position: 50% 44%; }
  .hero-shade { background: linear-gradient(0deg, #2d173e 0%, #2d173e 41%, #2d173ee8 48%, #2d173e36 74%, #2d173e04 100%); }
  .hero-content { padding: 1.35rem; }
  .hero-kicker { margin-bottom: 0.65rem; font-size: 0.67rem; }
  .hero h1 { font-size: clamp(2.75rem, 9.7vw, 3.7rem); }
  .hero p { margin-top: 0.65rem; line-height: 1.5; font-size: 0.95rem; }
  .hero-actions { margin-top: 0.95rem; gap: 1rem; }
  .hero-button { min-height: 2.65rem; padding-inline: 0.85rem; }
  .hero-sparkle-large { width: 2.05rem; height: 2.05rem; right: 7%; top: 5%; }
  .hero-sparkle-small { width: 0.9rem; height: 0.9rem; right: 14%; top: 11%; }
  .market { margin-top: 1.65rem; }
  .market-heading { align-items: stretch; flex-direction: column; gap: 0.85rem; }
  .search-control { width: 100%; }
  .market-controls { flex-wrap: wrap; justify-content: flex-end; row-gap: 0.7rem; margin-top: 0.85rem; }
  .category-filters { width: 100%; flex-wrap: nowrap; overflow: auto; padding: 3px 3px 0.45rem; margin: -3px; }
  .category-filters button { gap: 0.3rem; padding-inline: 0.63rem; }
  .sort-control, .sort-control select { min-height: 2.35rem; }
  .offer-count { margin-block: -1.8rem 1.15rem; width: fit-content; }
  .offer-grid { gap: 0.9rem; }
  .how-section { margin-top: 2.5rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 0.5rem; justify-content: center; padding-block: 1.05rem; }
}
@media (max-width: 480px) {
  .demo-notice-inner { gap: 0.1rem 0.38rem; padding-inline: 0.65rem; font-size: 0.77rem; }
  .main-nav button .icon { display: none; }
  .main-nav .nav-count { position: absolute; top: -0.15rem; right: 0.05rem; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-media { aspect-ratio: 2.03; }
}
@media (max-width: 380px) {
  .header-inner, .page-shell, .footer-inner { width: calc(100% - 1.25rem); }
  .header-inner { column-gap: 0.4rem; }
  .brand { gap: 0.4rem; font-size: 1.18rem; }
  .brand-icon { width: 1.85rem; height: 1.85rem; border-radius: 0.6rem; }
  .header-actions { gap: 0.32rem; }
  .location-control { width: 7.8rem; }
  .location-control > .icon { left: 0.4rem; width: 1rem; }
  .location-control > .location-chevron { left: auto; right: 0.35rem; width: 0.8rem; }
  .location-control select { padding-inline: 1.5rem 1.15rem; font-size: 0.72rem; }
  .profile-button { width: 2.25rem; height: 2.25rem; min-height: 2.25rem; }
  .main-nav button { gap: 0.26rem; padding-inline: 0.35rem; font-size: 0.76rem; }
  .hero-content { padding: 1.1rem; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 2.7rem); }
  .hero-actions { gap: 0.7rem; }
  .hero-button, .how-link { font-size: 0.82rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
