/* Wait, Don't Buy It
   A curated finds gallery for smart shoppers.
   Signature: the price bar. Full bar = what TikTok Shop charges,
   filled part = what you actually pay. The gap is the story. */

/* Clash Display (Fontshare, free licence). One file covers all display weights
   so the browser never fakes a bold. */
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-600.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --ink: #17191E;
  --muted: #6A6F78;
  --line: #E4E4E0;
  --lime: #C6F432;        /* signature: the money you keep */
  --kept: #456300;        /* lime-family text on light (6.4:1) */
  --kept-tint: #E6E8E3;
  --pay: #17191E;
  --tile: #EDEEEA;
  --mint: #3FC7A4;        /* highlights on dark, matches the logo */
  --coral: #E0593F;       /* the higher price: decoration only */
  --coral-deep: #C8452C;  /* coral surfaces with white text (4.8:1) */

  --display: "Clash Display", "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;

  --r-s: 8px;
  --r-m: 16px;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--kept);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.preview-bar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
}

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark-mark { width: 38px; height: 35px; flex: none; }

.site-header nav { display: flex; gap: 24px; }
.site-header nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: #FFFFFF; }

main { outline: none; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0 0 20px;
}
.hero-copy p {
  font-size: 19px;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 0 28px;
}
.hero-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-facts dt { font-size: 14px; color: var(--muted); }
.hero-facts dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0;
}

/* Featured find */
.feature {
  background: var(--surface);
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.feature .art { aspect-ratio: 16 / 10; }
.feature-body { padding: 22px 24px 24px; }
.feature-kicker { font-size: 14px; font-weight: 600; color: var(--kept); margin: 0 0 4px; }
.feature-hook { color: var(--muted); margin: -10px 0 18px; }
.product-hook { font-size: 19px; color: var(--muted); margin: 0 0 18px; max-width: 40ch; }
.feature-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 18px;
}

/* Product art: photo when we have one, a calm category drawing until then */
.art {
  background: var(--tile);
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  color: #9CA19A;
  position: relative;
}
.art svg { width: 34%; height: auto; }
.art img { width: 100%; height: 100%; object-fit: cover; }

/* The price bar */
.pricebar { margin: 0; }
.pricebar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--kept-tint);
  overflow: hidden;
  margin: 10px 0 8px;
}
.pricebar-fill {
  height: 100%;
  background: var(--pay);
  border-radius: 999px;
  min-width: 10px;
}
.pricebar-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.pricebar-labels b { color: var(--ink); font-weight: 700; }
.pricebar-labels .tt b { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.pricebar-now {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.pricebar-now strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0;
  line-height: 1;
}
.kept {
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 15px;
  white-space: nowrap;
}

/* Deals */
.deals {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 72px;
}
.deals-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.deals-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0;
  margin: 0;
}
.deals-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.chip:hover { border-color: #C9CBC4; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px 24px;
}
.deal a { text-decoration: none; display: block; }
.deal .art { aspect-ratio: 1 / 1; border-radius: var(--r-m); overflow: hidden; }
.deal .art img, .deal .art svg { transition: transform .35s ease; }
.deal a:hover .art img, .deal a:hover .art svg { transform: scale(1.04); }
.deal-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 16px 0 6px;
}
.deal-name .deal-meta { margin: 0 0 2px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.share-msg:empty { display: none; }
.product .actions { margin-bottom: 8px; }
.note { vertical-align: 3px; }
.deal-hook { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.deal-prices { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.deal-prices strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0;
}
.deal-prices span { color: var(--muted); font-size: 14px; }
.deal-prices s { text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

/* Savings badge sits on the photo, the way finds sites tag their picks */
.art-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 5px 12px;
}

.art-note {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  padding: 5px 11px;
}

/* Social proof: how many people paid the higher price */
.proof { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.proof::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  margin-right: 7px;
  vertical-align: 1px;
}
.proof-lg { font-size: 15px; margin: 0 0 20px; }
.product .assure { margin-top: 16px; }

/* Before you buy: answers "will it arrive, is it junk?" */
.assure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 18px 20px 6px;
  margin: 0 0 22px;
}
.assure-title { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.assure ul { margin: 0; padding: 0; list-style: none; }
.assure li { padding: 0 0 12px 26px; position: relative; font-size: 15px; line-height: 1.5; color: var(--muted); }
.assure li strong { color: var(--ink); }
.assure li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--kept);
  border-bottom: 2.5px solid var(--kept);
  transform: rotate(-45deg);
}

/* Gift guides */
.guides { max-width: var(--max); margin: 0 auto; padding: 0 24px 48px; }
.guides-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0;
  margin: 0 0 14px;
}
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.guide {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  min-height: 112px;
  padding: 18px 20px;
  border-radius: var(--r-m);
  text-decoration: none;
  background: var(--ink);
  color: #fff;
}
.guide-list li:nth-child(1) .guide { background: var(--lime); color: var(--ink); }
.guide-list li:nth-child(2) .guide { background: var(--ink); }
.guide-list li:nth-child(3) .guide { background: #2E3139; }
.guide:hover { filter: brightness(1.08); }
.guide[aria-current="page"] { outline: 3px solid var(--ink); outline-offset: 3px; }
.guide-name { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: 0; max-width: 15ch; }
.guide-count { font-size: 14px; font-weight: 600; opacity: .85; white-space: nowrap; }
.guide-head { max-width: var(--max); margin: 0 auto; padding: 8px 24px 28px; }
.guide-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 14px 0 10px;
}
.guide-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 52ch; }

/* Until photos arrive every tile shares one calm neutral */
.art[data-cat] { background: var(--tile); color: #9AA096; }

.deal-meta { margin: 0 0 2px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.share-msg:empty { display: none; }
.product .actions { margin-bottom: 8px; }
.note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
}
.empty { padding: 40px 0; color: var(--muted); }

/* Product page */
.product {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 24px 72px;
}
.back {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--ink); }
.product-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.product .art { border-radius: var(--r-m); overflow: hidden; }
.product h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 4px 0 16px;
}
.product .pricebar { margin-bottom: 22px; }
.product .pricebar-now strong { font-size: 44px; }
.product-take { font-size: 18px; margin: 0 0 20px; max-width: 46ch; }
.facts {
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  font-size: 15px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--r-s);
  padding: 12px 18px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
}
.btn-primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn-primary:hover { background: #B3E21E; border-color: #B3E21E; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: #C9CBC4; }
.share-msg { font-size: 14px; color: var(--kept); font-weight: 600; min-height: 1.4em; margin: 8px 0 0; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); max-width: 52ch; }

/* About */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px 72px;
}
.about h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 16px 0 18px;
}
.about h2 { font-family: var(--display); font-size: 22px; letter-spacing: 0; margin: 32px 0 8px; }
.about p, .about li { max-width: 62ch; }

/* Signup */
.signup { background: var(--ink); color: #fff; }
.signup-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: center;
}
.signup h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: 0;
  margin: 0 0 6px;
}
.signup p { margin: 0; color: #C7CAD0; }
.signup-form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-form input {
  flex: 1 1 220px;
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--r-s);
  border: 1.5px solid #3A3E47;
  background: #22252C;
  color: #fff;
}
.signup-form input::placeholder { color: #8D929B; }
.signup-form button {
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--r-s);
  border: 0;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
}
.signup-msg { margin: 10px 0 0; font-weight: 600; min-height: 1.5em; color: var(--lime); grid-column: 2; }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 48px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer p { max-width: 80ch; }

/* One moment: the featured price bar fills on load */
@media (prefers-reduced-motion: no-preference) {
  .feature .pricebar-fill { animation: fill .9s cubic-bezier(.2, .8, .2, 1) .2s both; }
  @keyframes fill { from { width: 100% !important; } }
}

@media (max-width: 820px) {
  /* Products sooner on phones: the featured find is also the first card */
  .hero { grid-template-columns: 1fr; gap: 0; padding: 4px 24px 32px; }
  .hero h1 { font-size: 36px; margin-bottom: 12px; }
  .hero-copy p { font-size: 16px; margin-bottom: 18px; }
  .hero-facts { padding-top: 14px; gap: 22px; }
  .hero-facts dd { font-size: 21px; }
  .feature { display: none; }
  .guides { padding-bottom: 36px; }
  .guide-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; margin: 0 -24px; padding: 0 24px 4px; scrollbar-width: none; }
  .guide { min-height: 96px; }
  .product-grid { grid-template-columns: 1fr; gap: 24px; }
  .signup-inner { grid-template-columns: 1fr; }
  .signup-msg { grid-column: 1; }
  .controls { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 2px 24px; scrollbar-width: none; }
  .chip { flex: none; }
}

/* Signature band: near-black header (every page) and home hero */
.top, .hero-band { background: var(--ink); }
.top .wordmark { color: #FFFFFF; }
.top nav a { color: #B9BDC4; }
.top :focus-visible, .hero-band :focus-visible { outline-color: var(--lime); }
.hero-band h1 { color: #FFFFFF; }
.hero-band .hero-copy p { color: #B9BDC4; }
.hero-band .feature { border-color: transparent; }
.hero-band + .guides { padding-top: 48px; }

/* Popular-finds shelf (single AliExpress listings, no comparison) */
.finds { max-width: var(--max); margin: 0 auto; padding: 0 24px 48px; }
.hero-band + .finds { padding-top: 48px; }
.finds .deals-head { margin-bottom: 16px; }
