:root {
  --ink: #1d2733;
  --muted: #5b6b7a;
  --accent: #e07a3f;
  --accent-dark: #c25e27;
  --paper: #fffaf4;
  --card: #ffffff;
  --line: #eadfd2;
  --good: #2e7d4f;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--accent-dark); }

.hero { background: linear-gradient(160deg, #fff3e4, var(--paper)); padding: 56px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 12px; letter-spacing: -0.03em; }
.hero-sub { max-width: 640px; margin: 0 auto 26px; color: var(--muted); font-size: 1.08rem; }
.search-bar { display: flex; max-width: 560px; margin: 0 auto; gap: 8px; }
.search-bar input { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 1rem; background: var(--card); }
.search-bar button, .alert-form button {
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 22px; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.search-bar button:hover, .alert-form button:hover { background: var(--accent-dark); }
.hero-note { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 40px 0 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }
.sort-bar { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.sort-bar select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 0.95rem; }

.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.deal-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.deal-card .store { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.deal-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.deal-card .blurb { color: var(--muted); font-size: 0.92rem; margin: 0; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price { font-size: 1.3rem; font-weight: 800; }
.was { color: var(--muted); text-decoration: line-through; font-size: 0.95rem; }
.off { background: #e8f4ec; color: var(--good); font-weight: 700; font-size: 0.8rem; padding: 3px 8px; border-radius: 999px; }
.deal-card .verified { font-size: 0.8rem; color: var(--muted); margin: 0; }
.deal-btn {
  display: block; text-align: center; background: var(--ink); color: #fff; text-decoration: none;
  padding: 11px; border-radius: 10px; font-weight: 700;
}
.deal-btn:hover { background: var(--accent-dark); }
.sample-tag { align-self: flex-start; background: #fdf0e2; color: var(--accent-dark); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.empty-state { color: var(--muted); text-align: center; padding: 30px 0; }

.how-it-works { margin: 56px 0 8px; }
.how-it-works h2, .alerts h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
.hiw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.hiw-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.hiw-card h3 { margin-top: 0; }
.hiw-card p { color: var(--muted); margin-bottom: 0; }

.alerts { margin: 48px 0 64px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.alerts p { color: var(--muted); max-width: 560px; }
.alert-form { display: flex; gap: 8px; max-width: 480px; flex-wrap: wrap; }
.alert-form input { flex: 1; min-width: 220px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 1rem; }
.form-note { font-size: 0.9rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.footer-fine { font-size: 0.82rem; }
