:root {
  --bg: #0f2a24;
  --bg-soft: #16352d;
  --surface: #f3f7f4;
  --ink: #14201c;
  --muted: #4a5c55;
  --accent: #e85d4c;
  --accent-deep: #c44738;
  --line: rgba(20, 32, 28, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #2a5c4e 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #1a4036 0%, transparent 50%),
    var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  color: #eef6f2;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header nav a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-header nav a:hover {
  opacity: 1;
}

.hero {
  min-height: calc(100svh - 4.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
  color: #eef6f2;
}

.hero--simple {
  grid-template-columns: 1fr;
  align-items: center;
  max-width: 52rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  animation: rise 0.7s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.9rem;
  max-width: 18ch;
  animation: rise 0.7s ease 0.08s both;
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 34ch;
  color: rgba(238, 246, 242, 0.78);
  font-size: 1.05rem;
  animation: rise 0.7s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.7s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-deep);
}

.btn.ghost {
  border: 1px solid rgba(238, 246, 242, 0.35);
  color: #eef6f2;
}

.hero-visual {
  min-height: min(62vh, 520px);
  border-radius: 1.5rem 1.5rem 0.5rem 1.5rem;
  background:
    linear-gradient(160deg, rgba(15, 42, 36, 0.15), rgba(15, 42, 36, 0.55)),
    url("https://images.unsplash.com/photo-1556911220-bff31c875dbd?auto=format&fit=crop&w=1400&q=80")
      center / cover no-repeat;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  animation: fade-scale 1s ease 0.15s both;
}

.deals,
.how,
.legal {
  background: var(--surface);
  color: var(--ink);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.deals h2,
.how h2,
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.section-lede {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
}

.deals-head {
  margin-bottom: 1.25rem;
}

.deals-head .section-lede {
  margin-top: 0.45rem;
}

.deal-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-wrap {
  flex: 1 1 220px;
  min-width: 0;
}

.search-wrap input,
.sort-wrap select {
  width: 100%;
  height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0 1rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}

.search-wrap input:focus,
.sort-wrap select:focus {
  outline: 2px solid rgba(232, 93, 76, 0.35);
  border-color: rgba(232, 93, 76, 0.55);
}

.sort-wrap {
  flex: 0 0 11.5rem;
}

.sort-wrap select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5c55' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.deal-count {
  margin: 0;
  flex: 0 0 auto;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
  white-space: nowrap;
}

.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cat-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cat-chip:hover {
  border-color: rgba(232, 93, 76, 0.45);
}

.cat-chip.is-active {
  background: var(--bg);
  border-color: var(--bg);
  color: #eef6f2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.deal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.deal-loading {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 1rem;
  padding: 0.5rem 0;
}

.deal-badge {
  display: inline-flex;
  align-self: start;
  margin-top: 0.2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(232, 93, 76, 0.12);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .sort-wrap {
    flex: 1 1 140px;
  }

  .deal-count {
    width: 100%;
    justify-content: center;
  }
}

.deal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.deal:hover {
  border-color: rgba(232, 93, 76, 0.45);
  transform: translateY(-2px);
}

.deal-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e4ebe7;
}

.deal-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.15rem 1.2rem;
  flex: 1;
}

.deal-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.deal strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.deal-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.deal-price s {
  color: var(--muted);
  font-size: 0.9rem;
}

.deal-price em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-deep);
  font-size: 1.2rem;
}

.deal-cta {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-soft);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 500;
}

.steps span {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  font-size: 1.25rem;
}

.site-footer {
  background: #0b1f1a;
  color: rgba(238, 246, 242, 0.85);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
}

.affiliate {
  max-width: 52ch;
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.65;
}

.legal {
  min-height: 70vh;
}

.legal .back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--bg-soft);
}

.legal p,
.legal li {
  max-width: 60ch;
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.note-box {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: #fff;
  max-width: 60ch;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-scale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero-visual {
    min-height: 42vh;
    order: -1;
    border-radius: 1.25rem;
  }

  .site-header nav {
    gap: 0.85rem;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
