:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-soft: #f2eee5;
  --text: #22221f;
  --muted: #6d6a61;
  --line: #ded8ca;
  --accent: #49664d;
  --accent-dark: #304735;
  --warm: #c9855c;
  --shadow: 0 14px 40px rgba(52, 47, 37, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222, 216, 202, 0.75);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  gap: 24px;
  font-weight: 600;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent);
}

/* Hero */

.hero {
  padding: 88px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  max-width: 850px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-copy {
  max-width: 720px;
  font-size: 1.08rem;
  color: var(--muted);
  margin: 24px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
}

.button.secondary:hover {
  background: var(--surface-soft);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero-card-label {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
}

.hero-card ol {
  margin: 18px 0 0;
  padding-left: 22px;
}

.hero-card li {
  margin: 12px 0;
}

/* Search */

.search-section {
  padding: 10px 0 18px;
}

.search-wrap {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 12px;
}

.search-wrap input,
.search-wrap select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 15px 16px;
  outline: none;
}

.search-wrap input:focus,
.search-wrap select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(73, 102, 77, 0.12);
}

/* Sections */

.section {
  padding: 72px 0;
}

.soft-section {
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.deal-count {
  color: var(--muted);
}

/* Deal cards */

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.deal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.deal-image {
  position: relative;
  min-height: 180px;
  aspect-ratio: 1 / 1;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #efe7d8, #dfe8dd);
  overflow: hidden;
}

.deal-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.deal-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 72px;
}

.badge {
  position: absolute;
  top: 36px;
  right: 36px;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 58px;
  min-height: 58px;
  max-width: calc(100% - 72px);
  padding: 8px 12px;

  box-sizing: border-box;
  border-radius: 999px;
  background: #fff;
  color: #111;

  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.deal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deal-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.deal-title {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

.deal-description {
  color: var(--muted);
  margin: 0 0 18px;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 16px;
}

.code-box code {
  font-weight: 700;
}

.copy-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.deal-button {
  margin-top: auto;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.deal-button:hover {
  background: var(--accent-dark);
}

.deal-button.placeholder {
  background: #9b998f;
  cursor: not-allowed;
  opacity: 0.55;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* Categories */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  padding: 20px;
}

.category-card:hover {
  transform: translateY(-2px);
  background: #fff;
}

.category-card span {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card small {
  color: var(--muted);
  margin-top: 4px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.about-copy {
  color: var(--muted);
  font-size: 1.03rem;
}

.disclosure {
  background: var(--surface-soft);
  border-left: 4px solid var(--warm);
  padding: 16px 18px;
  border-radius: 0 14px 14px 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

/* Tablet */

@media (max-width: 850px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .deal-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    display: none;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .hero {
    padding-top: 58px;
  }

  .search-wrap,
  .deal-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .deal-image {
    padding: 18px;
  }

  .badge {
    top: 28px;
    right: 28px;
    min-width: 54px;
    min-height: 54px;
    padding: 7px 10px;
  }
}
/* Expired deals */

.deal-card.expired {
  opacity: 0.8;
}

.deal-card.expired .deal-image,
.deal-card.expired .deal-photo {
  filter: grayscale(100%);
}

.deal-card.expired .badge {
  background: rgba(245, 245, 245, 0.92);
  color: #777;
}

.deal-card.expired .deal-title,
.deal-card.expired .deal-description,
.deal-card.expired .deal-meta,
.deal-card.expired code {
  color: #7b776e;
}

.deal-card.expired .code-box {
  background: #ece9e2;
}

.deal-card.expired .copy-btn {
  color: #8e8a80;
  cursor: not-allowed;
}

.deal-card.expired .deal-button {
  background: #9b998f;
  cursor: not-allowed;
  pointer-events: none;
}

.expired-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%) rotate(-18deg);
  padding: 10px 26px;
  border: 4px solid rgba(90, 90, 90, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(90, 90, 90, 0.95);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.expired-button {
  background: #8f8d86;
}
