:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #fffefa;
  --surface-strong: #ffffff;
  --fg: #172018;
  --muted: #5d675e;
  --brand: #176b45;
  --brand-dark: #0d4f31;
  --accent: #e8f45b;
  --line: #dce1d8;
  --ended: #8a423f;
  --shadow: 0 18px 45px rgb(25 52 35 / 9%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: var(--brand-dark); }

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 1.4rem 1.25rem;
}

.brand {
  color: var(--fg);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.main-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.main-nav a,
.footer-links a {
  font-weight: 650;
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 1rem 1.25rem 4rem;
}

.hero {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.2fr 0.8fr;
  padding: 3.5rem 0 4rem;
}

.hero h1,
.deal-page h1,
.empty-page h1 {
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  letter-spacing: -0.065em;
  line-height: 0.96;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  margin: 0 0 1.8rem;
  max-width: 42rem;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.button,
.filters button {
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 750;
  padding: 0.78rem 1.2rem;
  text-decoration: none;
}

.button:hover,
.filters button:hover { background: var(--brand-dark); }

.button.secondary {
  background: transparent;
  color: var(--brand-dark);
  margin-top: 1.5rem;
}

.hero-visual { display: flex; justify-content: center; }

.catalog-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--brand);
  border-radius: 42% 58% 58% 42% / 48% 44% 56% 52%;
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 320px;
  position: relative;
  transform: rotate(4deg);
  width: 75%;
}

.catalog-mark-ring {
  border: 2px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  inset: 12%;
  position: absolute;
}

.catalog-mark strong {
  font-size: 6rem;
  letter-spacing: -0.1em;
  line-height: 0.9;
}

.catalog-mark small {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.disclosure-banner {
  background: #f0f4ca;
  border: 1px solid #d7df84;
  border-radius: 14px;
  color: #354016;
  margin-bottom: 4rem;
  padding: 1rem 1.15rem;
}

.deal-feed { scroll-margin-top: 1rem; }

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

.section-heading h2,
.method-grid h2,
.app-callout h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.section-heading > p {
  color: var(--muted);
  margin: 0;
  max-width: 31rem;
}

.filters {
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  padding: 1rem;
}

.filters label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.35rem;
}

.filters select {
  appearance: none;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  font: inherit;
  padding: 0.72rem 0.8rem;
}

.feed-status {
  color: var(--muted);
  min-height: 1.55rem;
  padding: 0.8rem 0;
}

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

.deal-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgb(25 52 35 / 5%);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 1rem;
}

.category-art,
.detail-art {
  align-items: center;
  background: linear-gradient(135deg, #d8edc9, #edf26f);
  border-radius: 14px;
  color: var(--brand-dark);
  display: flex;
  font-size: 3rem;
  font-weight: 900;
  justify-content: center;
  min-height: 150px;
}

.deal-status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.status-badge,
.condition-badge,
.coming-soon {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.32rem 0.58rem;
}

.status-badge { background: #d9f4e6; color: var(--brand-dark); }
.status-badge.ended { background: #f6e0dd; color: var(--ended); }
.condition-badge { background: #edf0eb; color: #444e45; }

.deal-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0.65rem 0;
}

.deal-card h3 a { color: var(--fg); text-decoration: none; }
.deal-card h3 a:hover { color: var(--brand); }

.deal-brand {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0.9rem 0 0;
  text-transform: uppercase;
}

.verified-time,
.deal-reason { color: var(--muted); font-size: 0.88rem; }
.deal-reason { flex: 1; }

.text-link { font-size: 0.9rem; font-weight: 750; text-decoration: none; }

.method-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  padding: 6rem 0 4rem;
}

.method-card {
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}

.method-card h3 { font-size: 1rem; margin: 0 0 0.4rem; }
.method-card p { color: var(--muted); margin: 0; }

.app-callout {
  align-items: center;
  background: var(--fg);
  border-radius: 24px;
  color: #fff;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.app-callout p:not(.eyebrow) { color: #c9d0ca; max-width: 45rem; }
.app-callout .eyebrow { color: var(--accent); }
.coming-soon { background: var(--accent); color: var(--fg); white-space: nowrap; }

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin: 0 auto;
  max-width: 1120px;
  padding: 2rem 1.25rem 3rem;
}

.footer-links { margin: 0.5rem 0; }
.disclosure-note { font-size: 0.85rem; }

.deal-page { max-width: 800px; }
.deal-page article { padding-top: 1rem; }
.deal-page h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-top: 0.7rem; }
.detail-art { min-height: 240px; }

.breadcrumb {
  color: var(--muted);
  display: flex;
  font-size: 0.86rem;
  gap: 0.5rem;
  padding: 1rem 0;
}

.why,
.deal-note,
.amazon-action,
.ended-panel {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.why h2,
.deal-note h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.why p,
.deal-note p { color: var(--muted); margin: 0; }
.affiliate-near-cta { color: var(--muted); font-size: 0.85rem; }
.amazon-button { text-align: center; }
.ended-panel { color: var(--ended); }
.ended-panel p { color: var(--muted); }

.empty-page { min-height: 55vh; padding-top: 6rem; }
.empty-page h1 { font-size: clamp(2.3rem, 6vw, 4rem); }

main > h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.05em; }
main > h2 { font-size: 1.25rem; margin-top: 2rem; }
main > p,
main > ul { max-width: 760px; }

@media (max-width: 900px) {
  .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: repeat(3, 1fr); }
  .method-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero-visual { order: -1; }
  .catalog-mark { max-width: 180px; }
  .catalog-mark strong { font-size: 4rem; }
  .section-heading,
  .app-callout { align-items: flex-start; flex-direction: column; }
  .filters { grid-template-columns: 1fr; }
  .deal-grid,
  .method-grid { grid-template-columns: 1fr; }
  .method-grid > div:first-child { grid-column: auto; }
  .main-nav { gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
