/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F8F6F2;
  --white: #FFFFFF;
  --ink: #141210;
  --ink-mid: #3D3A36;
  --ink-muted: #8A8680;
  --border: rgba(20,18,16,0.10);
  --border-mid: rgba(20,18,16,0.18);

  /* Discount colors */
  --gold: #C49A1A;
  --orange: #C85A2A;
  --red: #B02020;

  /* accent */
  --accent: #C85A2A;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max: 1200px;
  --radius: 6px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  height: 60px;
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  color: var(--ink-mid);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--ink); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 64px) 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200,90,42,0.3);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 760px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-mid);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.82; }

.btn-ghost {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--ink); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 400;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-mid);
}

/* ── DEALS SECTION ── */
.deals-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 56px clamp(20px, 5vw, 64px) 80px;
}

.deals-header {
  max-width: var(--max);
  margin: 0 auto 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.deals-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.deals-sub {
  font-size: 13px;
  color: var(--ink-muted);
}

/* SLIDER */
.filter-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-label {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  font-weight: 400;
}

.slider-container {
  position: relative;
  width: 160px;
  height: 24px;
  display: flex;
  align-items: center;
}

.slider-track-bg {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--gold), var(--orange), var(--red));
  pointer-events: none;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  position: relative;
  z-index: 2;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  cursor: pointer;
  margin-top: -7.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.slider-val {
  font-size: 13px;
  font-weight: 500;
  min-width: 40px;
  color: var(--ink);
  transition: color 0.2s;
}

/* CATEGORY PILLS */
.cats {
  max-width: var(--max);
  margin: 0 auto 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.cats::-webkit-scrollbar { display: none; }

.cat {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-mid);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  color: var(--ink-mid);
  font-family: var(--font-body);
  transition: all 0.15s;
}
.cat.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.cat:hover:not(.active) {
  border-color: var(--ink-mid);
  color: var(--ink);
}

.deal-count {
  max-width: var(--max);
  margin: 0 auto 20px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* DEAL GRID */
.grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
}

/* DEAL CARD */
.card {
  background: var(--white);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.card:hover { background: #FAFAF8; }

.card-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: #F0EDE8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  overflow: hidden;
  position: relative;
}

.verified-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
}

.card-body {
  padding: 14px 16px 18px;
}

.card-brand {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.card-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-sale {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.price-orig {
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.discount-pct {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

/* empty */
.empty-state {
  max-width: var(--max);
  margin: 48px auto 0;
  text-align: center;
  padding: 48px 24px;
}
.empty-title {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-mid);
  margin-bottom: 8px;
}
.empty-sub { font-size: 14px; color: var(--ink-muted); }
.hidden { display: none !important; }

/* ── HOW IT WORKS ── */
.how-section {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 80px clamp(20px, 5vw, 64px);
}

.how-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.step-icon {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-head {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-body {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.65;
  font-weight: 300;
}

/* ── BRANDS ── */
.brands-section {
  background: var(--ink);
  padding: 36px clamp(20px, 5vw, 64px);
}

.brands-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.brands-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.brands-list {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brands-list span {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
}

.dot { color: rgba(255,255,255,0.25) !important; }

/* ── WAITLIST ── */
.waitlist-section {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 100px clamp(20px, 5vw, 64px);
}

.waitlist-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}

.waitlist-sub {
  font-size: 17px;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 36px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
}

.waitlist-input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.waitlist-input:focus { border-color: var(--ink); }
.waitlist-input::placeholder { color: var(--ink-muted); }

.waitlist-fine {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 12px;
}

.waitlist-success {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
}

.success-check {
  color: #2A7A4A;
  font-weight: 500;
  margin-right: 6px;
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  padding: 48px clamp(20px, 5vw, 64px);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-legal {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  max-width: 600px;
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nav-right .nav-link { display: none; }
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
  .deals-header { flex-direction: column; align-items: flex-start; }
  .filter-wrap { width: 100%; }
  .slider-container { flex: 1; }
  .brands-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
