/* ============================================================
   Qupon — editorial marketplace homepage
   Static preview build. Nothing clickable except inputs.
   ============================================================ */

:root {
  /* Palette */
  --paper:        #FAF6F1;
  --paper-deep:   #F3EDE3;
  --paper-deeper: #ECE3D3;
  --card:         #FFFFFF;
  --ink:          #241814;
  --ink-mid:      #6B5D4F;
  --ink-soft:     #9C8E7F;
  --rule:         #E8DFD1;
  --rule-strong:  #D8CBB4;
  --accent:       #FF7D41;
  --accent-deep:  #E5652A;
  --accent-soft:  #FFE9DC;
  --pulse:        #34A853;

  /* Type */
  --serif: "Fraunces", "DejaVu Serif", Georgia, serif;
  --sans:  "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --pad-x: 72px;
  --maxw:  1440px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; cursor: pointer; }
em { font-style: italic; }

.eyebrow, .cat, .chapter, .step, .kbd, .tag, .save, .taken, .live,
.foot-head, .pull-name, .lang { font-family: var(--sans); }

/* Shared display headline styling */
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--serif); font-weight: 400; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-burger, .search-icon-btn { display: none; color: var(--ink); }

.nav-logo { flex: 0 0 auto; }
.nav-logo img { height: 52px; width: auto; }

.search {
  flex: 1 1 auto;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 46px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}
.search-ico { color: var(--ink-soft); flex: 0 0 auto; }
.search input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}
.search input::placeholder { color: var(--ink-soft); }
.kbd {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mid);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 3px 7px;
  background: var(--paper);
}

.nav-right { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; }
.lang { font-size: 13px; color: var(--ink-mid); letter-spacing: .2px; }
.lang-en { font-weight: 700; color: var(--ink); }
.lang-ar { font-weight: 500; }

.nav-act {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink);
}
.nav-act svg { color: var(--ink); }
.nav-lbl { font-weight: 500; }
.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge-empty { background: var(--rule-strong); color: var(--ink); }

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.chips {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.chips-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip-n { font-size: 11px; color: var(--ink-soft); font-weight: 500; }
.chip-all { background: var(--ink); color: var(--paper); }
.chip-all .chip-n { color: rgba(250,246,241,.6); }
.chip-active { background: var(--accent); color: #fff; }
.chip-active .chip-n { color: rgba(255,255,255,.75); }
.chip-out { background: var(--card); border-color: var(--rule-strong); }
.chip-more { border: 1px dashed var(--rule-strong); color: var(--ink-mid); background: transparent; }

/* ============================================================
   SHARED SECTION SCAFFOLD
   ============================================================ */
.sec {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--pad-x);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.chapter {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sec-title { font-size: 40px; line-height: 1.05; letter-spacing: -.5px; }
.sec-title em, .hero-title em, .spot-title em,
.how-title em, .news-title em, .pull-q em { color: var(--accent); }

.sec-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.fpill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-mid);
  border: 1px solid var(--rule-strong);
  background: var(--card);
}
.fpill.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.see-all { font-size: 13px; font-weight: 500; color: var(--accent-deep); }
.see-all .arw { transition: transform .2s ease; display: inline-block; }
.see-all:hover .arw { transform: translateX(3px); }

/* ============================================================
   BENTO HERO
   ============================================================ */
.bento {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--pad-x) 8px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 300px;
  gap: 16px;
}

.hero-card {
  grid-column: span 6;
  grid-row: span 2;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,12,9,.92) 0%, rgba(20,12,9,.55) 38%, rgba(20,12,9,.05) 68%, rgba(20,12,9,0) 100%);
}
.hero-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--paper); color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.hero-top-right {
  position: absolute; top: 20px; right: 20px;
  display: flex; align-items: center; gap: 14px;
}
.dots { display: flex; gap: 5px; }
.dot { width: 14px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.4); }
.dot.on { background: #fff; }

.heart {
  width: 30px; height: 30px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(250,246,241,.92);
  border: 1px solid var(--rule);
  color: var(--ink);
  transition: transform .18s ease;
}
.heart svg { width: 16px; height: 16px; }
.heart:hover { transform: scale(1.1); }
.heart.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.heart.on svg { fill: #fff; stroke: #fff; }
.heart-lg { width: 38px; height: 38px; }
.heart-lg svg { width: 19px; height: 19px; }

.hero-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px;
  color: var(--paper);
}
.eyebrow {
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
  color: rgba(250,246,241,.85);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--pulse);
  box-shadow: 0 0 0 0 rgba(52,168,83,.55);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,168,83,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(52,168,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,168,83,0); }
}
.hero-title {
  font-size: 42px; font-style: italic; line-height: 1.05;
  letter-spacing: -.5px; max-width: 15ch;
  margin: 0 0 12px;
}
.hero-vendor {
  margin: 0 0 18px;
  font-size: 12px; letter-spacing: .4px; text-transform: uppercase;
  color: rgba(250,246,241,.75);
}
.hero-clock {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(250,246,241,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(250,246,241,.22);
  font-size: 13px; color: var(--paper);
  margin-bottom: 22px;
}
.hero-clock svg { color: var(--accent); }
.hero-clock .time { font-family: var(--serif); font-style: italic; }

.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hero-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero-price .now { font-family: var(--serif); font-size: 34px; line-height: 1; }
.hero-price .cur { font-size: 16px; color: rgba(250,246,241,.8); }
.hero-price .was {
  font-family: var(--serif); font-size: 16px; font-style: italic;
  color: rgba(250,246,241,.6); text-decoration: line-through;
}
.hero-price .save {
  font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  color: var(--accent); background: rgba(255,125,65,.16);
  padding: 4px 9px; border-radius: 999px;
}
.cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); color: var(--ink);
  font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: 999px;
}
.cta .arw { transition: transform .2s ease; }
.cta:hover .arw { transform: translateX(4px); }

/* ---------- medium bento cards use .card ---------- */
.med { grid-column: span 3; grid-row: span 1; }

/* ============================================================
   CARD (shared)
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(36,24,20,.08); }

.med .thumb { height: 155px; }
.thumb { position: relative; height: 200px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.tag-cream  { background: var(--paper); color: var(--ink); }
.tag-dark   { background: var(--ink); color: var(--paper); }
.tag-orange { background: var(--accent); color: #fff; }

.card .heart { position: absolute; top: 10px; right: 10px; }

.clock {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(250,246,241,.88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--rule);
  font-size: 11.5px; color: var(--ink-mid);
}
.clock svg { color: var(--accent); }
.clock .time { font-family: var(--serif); font-style: italic; color: var(--ink); }

/* dark full-width timer bar (Almost Gone) */
.timer {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 12px;
  background: rgba(20,12,9,.86);
  color: var(--paper);
  font-size: 12px; letter-spacing: .2px;
  display: flex; align-items: center; gap: 6px;
}
.timer::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent); flex: 0 0 auto;
}
.timer .time { font-family: var(--serif); font-style: italic; }

.body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1 1 auto; }
.cat {
  margin: 0 0 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  color: var(--ink-soft);
}
.title {
  font-size: 15.5px; line-height: 1.2; letter-spacing: -.2px;
  margin: 0 0 5px;
}
.vendor { margin: 0 0 13px; font-size: 11px; color: var(--ink-mid); }
.row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.price { display: flex; align-items: baseline; gap: 8px; }
.price .now { font-family: var(--serif); font-size: 19px; line-height: 1; }
.price .cur { font-size: 11px; color: var(--ink-mid); }
.price .was {
  font-family: var(--serif); font-size: 13px; font-style: italic;
  color: var(--ink-soft); text-decoration: line-through;
}
.save {
  font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  color: var(--accent-deep); white-space: nowrap;
}
.taken {
  font-size: 11px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap;
}
.live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase;
  color: var(--ink-mid); white-space: nowrap;
}
.live .live-dot { width: 6px; height: 6px; }

/* countdown ended state */
.ended, .timer.ended, .clock.ended { opacity: .5; }

/* ============================================================
   GRIDS
   ============================================================ */
.grid { display: grid; gap: 16px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull-sec { padding-top: 8px; padding-bottom: 8px; }
.pull {
  margin: 0;
  background: var(--paper-deeper);
  border-radius: 4px;
  padding: 40px;
  display: flex; align-items: center; gap: 40px;
}
.pull-q {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--serif); font-style: italic;
  font-size: 27px; line-height: 1.35; letter-spacing: -.3px;
  color: var(--ink);
}
.pull-div { width: 1px; align-self: stretch; background: var(--rule-strong); flex: 0 0 auto; }
.pull-attr { flex: 0 0 190px; }
.pull-name {
  margin: 0 0 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink);
}
.pull-sub { margin: 0; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-mid); }

/* ============================================================
   ALMOST GONE
   ============================================================ */
.gone-sec {
  max-width: none;
  background: var(--paper-deep);
  padding-left: 0; padding-right: 0;
}
.gone-sec > .sec-head,
.gone-sec > .grid {
  max-width: var(--maxw);
  margin-left: auto; margin-right: auto;
  padding-left: var(--pad-x); padding-right: var(--pad-x);
}

/* ============================================================
   HOW IT WORKS (dark)
   ============================================================ */
.how { background: var(--ink); color: var(--paper); }
.how-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--pad-x);
}
.chapter-dark { color: var(--ink-soft); }
.chapter-no { color: var(--accent); }
.how-title {
  font-size: 44px; font-style: italic; line-height: 1.08; letter-spacing: -.6px;
  max-width: 18ch; margin-bottom: 52px;
}
.how-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.how-col { padding: 0 40px; border-left: 1px solid rgba(250,246,241,.14); }
.how-col:first-child { padding-left: 0; border-left: 0; }
.step {
  margin: 0 0 14px;
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--accent);
}
.how-h {
  font-size: 24px; font-style: italic; line-height: 1.15;
  margin-bottom: 14px;
}
.how-p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(250,246,241,.68); }

/* ============================================================
   SPOTLIGHT — BEAUTY EDIT
   ============================================================ */
.spotlight {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px;
  align-items: start;
}
.spot-title { font-size: 56px; font-style: italic; line-height: 1; letter-spacing: -1px; margin: 8px 0 20px; }
.spot-p { margin: 0 0 28px; font-size: 15px; line-height: 1.6; color: var(--ink-mid); max-width: 42ch; }
.vlist { border-top: 1px solid var(--rule); }
.vlist li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.vname {
  font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  color: var(--ink);
}
.vloc { font-size: 12.5px; color: var(--ink-soft); font-style: italic; font-family: var(--serif); }
.spot-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============================================================
   TRUST
   ============================================================ */
.trust-cols { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-col { padding: 0 32px; border-left: 1px solid var(--rule); }
.trust-col:first-child { padding-left: 0; border-left: 0; }
.trust-ico { width: 28px; height: 28px; color: var(--accent); margin-bottom: 16px; }
.trust-h { font-size: 21px; font-style: italic; margin-bottom: 10px; }
.trust-p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-mid); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.news { text-align: center; }
.news-inner { max-width: 560px; margin: 0 auto; }
.news-title { font-size: 40px; font-style: italic; line-height: 1.1; letter-spacing: -.5px; margin-bottom: 14px; }
.news-p { margin: 0 auto 28px; font-size: 15px; line-height: 1.6; color: var(--ink-mid); max-width: 46ch; }
.news-form {
  display: flex; align-items: center; gap: 12px;
  max-width: 420px; margin: 0 auto;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 8px;
}
.news-form input {
  flex: 1 1 auto;
  border: 0; outline: none; background: transparent;
  font-size: 16px; color: var(--ink); text-align: left;
}
.news-form input::placeholder { color: var(--ink-soft); }
.news-btn {
  flex: 0 0 auto;
  font-family: var(--serif); font-size: 26px; line-height: 1;
  color: var(--accent-deep);
  transition: transform .2s ease;
}
.news-btn:hover { transform: translateX(4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--paper); }
.foot-top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px var(--pad-x) 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.foot-logo { height: 40px; width: auto; margin-bottom: 18px; }
.foot-tag { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(250,246,241,.6); max-width: 34ch; }
.foot-head {
  margin: 0 0 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(250,246,241,.5);
}
.foot-col ul li { margin-bottom: 11px; }
.foot-col a { font-size: 14px; color: rgba(250,246,241,.82); transition: color .15s ease; }
.foot-col a:hover { color: var(--accent); }

.foot-vendor {
  border: 1px solid rgba(250,246,241,.16);
  border-radius: 4px;
  padding: 22px;
}
.foot-vh { font-size: 20px; font-style: italic; margin-bottom: 10px; }
.foot-vp { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: rgba(250,246,241,.6); }
.foot-vlink { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.foot-vlink .arw { transition: transform .2s ease; display: inline-block; }
.foot-vlink:hover .arw { transform: translateX(3px); }

.foot-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--pad-x);
  border-top: 1px solid rgba(250,246,241,.14);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.foot-copy { margin: 0; font-size: 12.5px; color: rgba(250,246,241,.5); }
.foot-social, .foot-pay { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.foot-social a { color: rgba(250,246,241,.72); }
.foot-social a:hover { color: var(--accent); }
.foot-social span, .foot-pay span:nth-child(even) { color: rgba(250,246,241,.3); }
.foot-pay { color: rgba(250,246,241,.6); }

/* ============================================================
   RESPONSIVE — TABLET (<= 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --pad-x: 32px; }

  .nav-inner { gap: 16px; }
  .nav-logo img { height: 44px; }
  .search { max-width: none; margin: 0; }
  .kbd { display: none; }
  .lang { display: none; }
  .nav-lbl { display: none; }

  .sec-title { font-size: 34px; }

  /* Bento: big card full width, four mediums 2x2 */
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .hero-card { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .med { grid-column: span 1; }
  .med .thumb { height: 180px; }

  .grid-5 { grid-template-columns: repeat(3, 1fr); }

  /* Pull quote stacks, divider horizontal */
  .pull { flex-direction: column; align-items: stretch; gap: 24px; padding: 32px; }
  .pull-div { width: auto; height: 1px; }
  .pull-attr { flex: none; }

  /* How it works: keep 3 but tighten (brief keeps cols; only mobile drops to 1) */
  .how-title { font-size: 36px; }
  .how-col { padding: 0 24px; }

  /* Spotlight stacks, 3 featured in a row below */
  .spotlight { grid-template-columns: 1fr; gap: 32px; }
  .spot-title { font-size: 46px; }

  /* Trust: 2 columns */
  .trust-cols { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .trust-col:nth-child(3) { padding-left: 0; border-left: 0; }

  /* Footer: 2 cols, brand + vendor span both */
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-vendor { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — MOBILE (<= 639px)
   ============================================================ */
@media (max-width: 639px) {
  :root { --pad-x: 16px; }

  body { font-size: 14.5px; }

  /* Nav: 5-cell grid */
  .nav-inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 10px;
  }
  .nav-burger { display: inline-flex; align-items: center; }
  .nav-logo { margin-right: auto; }
  .nav-logo img { height: 34px; }
  .search { display: none; }
  .search-icon-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-right { gap: 12px; }
  .nav-act { gap: 4px; }

  /* Categories: hide middle 3 chips */
  .chip-h { display: none; }
  .chips-inner { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .sec { padding: 44px var(--pad-x); }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-tools { align-items: flex-start; width: 100%; }
  .sec-title { font-size: 30px; }

  /* Bento: 2-col, big card spans both, mediums 2x2 */
  .bento { padding-top: 20px; }
  .hero-card { min-height: 380px; }
  .hero-title { font-size: 30px; }
  .hero-price .now { font-size: 28px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-body { padding: 22px; }
  .med .thumb { height: 150px; }

  /* Deal grids: 2 columns */
  .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .thumb { height: 150px; }
  .body { padding: 12px 12px 13px; }
  .title { font-size: 14.5px; }

  /* Countdown pills shrink */
  .clock { font-size: 10.5px; padding: 4px 8px; gap: 4px; }
  .timer { font-size: 11px; padding: 7px 10px; }

  /* How it works: 1 column */
  .how-inner { padding: 56px var(--pad-x); }
  .how-title { font-size: 26px; margin-bottom: 36px; }
  .how-cols { grid-template-columns: 1fr; gap: 32px; }
  .how-col { padding: 0; border-left: 0; }

  /* Spotlight: featured cards 2 columns */
  .spot-cards { grid-template-columns: repeat(2, 1fr); }
  .spot-title { font-size: 40px; }

  /* Trust: 1 column */
  .trust-cols { grid-template-columns: 1fr; row-gap: 28px; }
  .trust-col { padding-left: 0; border-left: 0; }

  /* Newsletter full width */
  .news-title { font-size: 30px; }
  .news-form { max-width: none; }

  /* Footer: 1 column centred */
  .foot-top { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .foot-brand, .foot-vendor { grid-column: auto; }
  .foot-tag { margin-left: auto; margin-right: auto; }
  .foot-logo { margin-left: auto; margin-right: auto; }
  .foot-bottom { flex-direction: column; text-align: center; gap: 14px; }
}
