:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5f6d74;
  --line: #d9e1e4;
  --paper: #f7faf9;
  --white: #ffffff;
  --mint: #dff5eb;
  --green: #0f7b58;
  --green-dark: #0b5f45;
  --coral: #d95d39;
  --blue: #275d8c;
  --gold: #b78113;
  --shadow: 0 18px 42px rgba(18, 39, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(217, 225, 228, 0.9);
  background: rgba(247, 250, 249, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  min-height: 430px;
  padding: clamp(48px, 8vw, 86px) clamp(18px, 4vw, 52px) 42px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(223, 245, 235, 0.78), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(135deg, rgba(15, 123, 88, 0.08) 0 1px, transparent 1px 22px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.hero-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.hero-stats div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-stats span {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 900;
}

.hero-stats small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-band,
.category-band {
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.intro-band .section-heading > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.info-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.info-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.toolbar-band {
  padding: 22px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr) minmax(160px, 220px);
  gap: 14px;
  align-items: center;
}

.search-wrap {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
}

button,
.deal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

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

.filter-group {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-button {
  min-width: max-content;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-button.active {
  border-color: var(--green);
  background: var(--mint);
  color: var(--green-dark);
}

.deal-section {
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 52px);
}

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

.section-heading h2,
.newsletter-band h2,
.empty-state h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: 0;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.deal-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 26px rgba(18, 39, 51, 0.06);
}

.deal-media {
  position: relative;
  display: grid;
  min-height: 210px;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: #e8eef1;
}

.deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15, 123, 88, 0.16), rgba(217, 93, 57, 0.14)),
    #edf4f1;
  color: var(--ink);
  text-align: center;
  font-weight: 900;
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 900;
}

.deal-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.deal-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.24;
}

.deal-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.price {
  color: var(--green-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.list-price {
  color: var(--muted);
  text-decoration: line-through;
}

.code-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  background: #fff8e8;
  color: #6b4a09;
  font-size: 0.85rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.deal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.expires {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.empty-state {
  max-width: 720px;
  padding: 42px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--white);
}

.empty-state p {
  color: var(--muted);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-list span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 900;
}

.newsletter-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 24px;
  align-items: center;
  margin: 0 clamp(18px, 4vw, 52px) 44px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.newsletter-band .eyebrow {
  color: #8de0bf;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.page-shell {
  padding: clamp(38px, 6vw, 72px) clamp(18px, 4vw, 52px);
}

.content-page {
  max-width: 840px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 26px rgba(18, 39, 51, 0.06);
}

.content-page h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.content-page h2 {
  margin: 28px 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: 0;
}

.content-page p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

@media (max-width: 860px) {
  .site-header,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .toolbar,
  .newsletter-band,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }
}
