/* Offerbite site styles (homepage + generated deal pages). No framework. */
:root {
  --red: #f0153a;
  --red-dark: #c40f2e;
  --ink: #17171c;
  --muted: #5e5e6b;
  --line: #e7e7ee;
  --bg: #ffffff;
  --soft: #f6f6f9;
  --gold: #ffb300;
  --radius: 14px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3f3f7;
    --muted: #a7a7b5;
    --line: #2a2a33;
    --bg: #111116;
    --soft: #1a1a21;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff !important; border-radius: 999px; padding: 10px 18px;
  font-weight: 700; border: 0; cursor: pointer; text-decoration: none !important;
}
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* hero */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, rgba(240, 21, 58, .07), transparent); }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 0 24px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff !important;
  border-radius: 12px; padding: 10px 16px; font-weight: 600; text-decoration: none !important;
}
.store-badge small { display: block; font-size: 11px; font-weight: 400; opacity: .8; }
.store-badge span { line-height: 1.2; }

/* sections */
section { padding: 40px 0; }
h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 24px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--soft); border-radius: var(--radius); padding: 20px; }
.step b { display: block; font-size: 18px; margin-bottom: 6px; }

/* deal cards */
.deal {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg);
  display: flex; flex-direction: column; gap: 8px;
}
.deal .top { display: flex; align-items: center; gap: 10px; }
.mono {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 14px; flex: none; background: var(--red);
}
.deal .brand-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { background: var(--red); color: #fff; border-radius: 8px; padding: 3px 8px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.deal h3 { font-size: 17px; margin: 0; line-height: 1.3; }
.deal p { margin: 0; color: var(--muted); font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.meta span { background: var(--soft); border-radius: 999px; padding: 2px 8px; color: var(--muted); }
.meta .ends { color: var(--red); background: rgba(240, 21, 58, .08); }
.expired { opacity: .6; }

/* chips list of chains */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink); font-weight: 600; font-size: 14px; }
.chips a:hover { border-color: var(--red); text-decoration: none; }

/* pricing */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.plan.plus { border: 2px solid var(--gold); }
.plan h3 { margin: 0 0 4px; }
.plan .price { font-size: 28px; font-weight: 800; }
.plan ul { padding-left: 18px; margin: 12px 0 0; }
.badge-plus { background: var(--gold); color: #000; border-radius: 6px; padding: 2px 6px; font-size: 12px; font-weight: 800; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 8px 0 0; }

/* breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.crumbs a { color: var(--muted); }

/* cta band */
.cta { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta p { margin: 0; font-size: 18px; font-weight: 700; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; margin-top: 24px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.site-footer a { color: var(--muted); }
.small { font-size: 12px; color: var(--muted); }
