/* DealBoss, design option C: clean list + verdicts, big email thumbnails. */
:root {
  --ink: #111111;
  --text: #444444;
  --muted: #555555;
  --faint: #8A8A8A;
  --line: #ECECEC;
  --line-soft: #F0F0F0;
  --soft: #FAFAF8;
  --chip: #F1F1EF;
  --accent: #0A7A4F;
  --accent-ink: #FFFFFF;
  --danger: #B42318;
  --hot: #D4380D;
  --warm-bg: #FFE7B3;
  --warm-ink: #7A4A00;
  --warm-line: #F2C063;
  --cold-bg: #EAF3FB;
  --cold-ink: #2B5F8A;
  --cold-line: #BCD6EC;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
img { max-width: 100%; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* ---------- Pager ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.pager__nums { display: flex; gap: 6px; flex-wrap: wrap; }
.pager__num, .pager__step { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid #DADADA; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
.pager__num[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.pager__gap { min-width: 24px; display: inline-flex; align-items: center; justify-content: center; color: var(--faint); }

/* ---------- Header / footer ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: 18px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--accent); }
.nav__links { display: flex; gap: 22px; font-size: 14px; font-weight: 500; flex: 1 1 auto; flex-wrap: wrap; }
.nav__links a { color: var(--muted); text-decoration: none; }
.nav__links a[aria-current="page"], .nav__links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); background: #FFFFFF; color: var(--ink); cursor: pointer; }
.btn:hover { color: var(--ink); background: var(--soft); }
.btn--dark { background: var(--ink); color: #FFFFFF; }
.btn--dark:hover { background: #2A2A2A; color: #FFFFFF; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #086943; color: var(--accent-ink); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: #6B6B6B; margin-top: 72px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #6B6B6B; }

/* ---------- Page heading ---------- */
.page { padding-block: 56px 24px; }
.h1 { margin: 0; font-size: 40px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; max-width: 780px; }
.h2 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 800; }
.h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 800; }
.lede { margin: 14px 0 0; font-size: 17px; color: var(--muted); max-width: 660px; }
.crumbs { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- Verdicts and scores ---------- */
.chip { display: inline-flex; align-items: center; border-radius: 6px; padding: 4px 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; line-height: 1.3; }
.chip--hot { background: var(--hot); color: #FFFFFF; }
.chip--warm { background: var(--warm-bg); color: var(--warm-ink); }
.chip--cold { background: var(--cold-bg); color: var(--cold-ink); border: 1px solid var(--cold-line); padding: 3px 8px; }
/* Verdict icons: flame, sun, snowflake, drawn in the chip's text colour. */
.chip--hot { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.4 1c.9 3.6-.6 6-2.6 8.2C7.6 11.5 5 13.6 5 17.2A7 7 0 0 0 12 23.5a7 7 0 0 0 7-6.8c0-3.4-1.8-6-3.8-7.8.3 2-.5 3.8-2 4.6.6-4.1-.4-8.5-.8-12.5z'/%3E%3C/svg%3E"); }
.chip--warm { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2.2' stroke-linecap='round' fill='none'%3E%3Ccircle cx='12' cy='12' r='4.2' fill='black'/%3E%3Cpath d='M12 1.8v2.6M12 19.6v2.6M1.8 12h2.6M19.6 12h2.6M4.8 4.8l1.8 1.8M17.4 17.4l1.8 1.8M4.8 19.2l1.8-1.8M17.4 6.6l1.8-1.8'/%3E%3C/g%3E%3C/svg%3E"); }
.chip--cold { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10'/%3E%3Cpath d='M9 3.5l3 2.5 3-2.5M9 20.5l3-2.5 3 2.5M3.6 10.6l3.7-1.3-.7-3.9M20.4 13.4l-3.7 1.3.7 3.9M3.6 13.4l3.7 1.3-.7 3.9M20.4 10.6l-3.7-1.3.7-3.9'/%3E%3C/g%3E%3C/svg%3E"); }
.chip--hot::before, .chip--warm::before, .chip--cold::before { content: ""; flex: none; width: 1.15em; height: 1.15em; margin: 0 4px 0 -2px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.chip--plain { background: #FFFFFF; color: var(--muted); border: 1px solid #CFCFCF; padding: 3px 8px; }
.chip--lg { font-size: 14px; padding: 6px 12px; }
.score { width: 56px; height: 56px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 800; background: #FFFFFF; border: 2px solid #E2E2E2; color: var(--ink); flex: none; }
.score--hot { border-color: var(--hot); color: var(--hot); }
.score--warm { border-color: var(--warm-line); color: var(--warm-ink); }
.score--cold { border-color: var(--cold-line); color: var(--cold-ink); }
.score--lg { width: 88px; height: 88px; font-size: 38px; border-radius: 16px; border-width: 3px; }
.legend { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.tag { display: inline-flex; align-items: center; border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; background: var(--chip); color: var(--ink); }
.tag--members { background: #EEF2FF; color: #2B3A8C; }
.tag--still { background: #E7F4EE; color: #0A5C3C; }

/* ---------- Tabs and filters ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 40px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 28px; }
.tabs a { padding: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--faint); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.filter { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding-bottom: 10px; }
.select { font-size: 14px; border: 1px solid #DADADA; border-radius: 8px; padding: 7px 10px; background: #FFFFFF; color: var(--ink); min-height: 38px; }

/* ---------- Deal list ---------- */
.deals { list-style: none; margin: 0; padding: 0; }
.deal { display: flex; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.deal__rank { width: 22px; flex: none; font-size: 15px; font-weight: 700; color: #9A9A9A; text-align: right; }
.thumb { flex: none; display: block; width: 136px; height: 172px; border-radius: 10px; overflow: hidden; border: 1px solid #E6E6E6; background: linear-gradient(135deg, #F4F4F1, #ECECE8); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.thumb--sm { width: 84px; height: 106px; border-radius: 8px; }
.thumb { text-decoration: none; position: relative; }
.thumb--lg { width: 220px; height: 278px; border-radius: 14px; }
.thumb--lg img { width: 100%; height: 100%; }
/* Offer value stamped on the email image. */
.sticker { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; align-items: center; padding: 6px 6px 7px; border-radius: 8px; text-align: center; line-height: 1.05; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22); transform: rotate(-3deg); pointer-events: none; }
.sticker__top { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.sticker__main { font-size: 17px; font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase; }
.sticker--hot { background: var(--hot); color: #FFFFFF; }
.sticker--warm { background: #FFC94D; color: #3D2600; }
.sticker--cold { background: #FFFFFF; color: var(--cold-ink); border: 1.5px solid var(--cold-line); }
.thumb--sm .sticker { left: 4px; right: 4px; bottom: 5px; padding: 3px 3px 4px; border-radius: 6px; }
.thumb--sm .sticker__top { font-size: 8px; }
.thumb--sm .sticker__main { font-size: 12px; }
.thumb--lg .sticker { left: 14px; right: 14px; bottom: 14px; padding: 10px 8px 11px; border-radius: 10px; }
.thumb--lg .sticker__top { font-size: 13px; }
.thumb--lg .sticker__main { font-size: 28px; }
.thumb__none { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 8px; text-align: center; font-size: 12px; line-height: 1.3; color: var(--faint); font-weight: 600; }
.deal__body { flex: 1 1 auto; min-width: 0; }
.deal__brand { font-size: 13px; font-weight: 600; color: var(--muted); }
.deal__brand a { color: var(--muted); text-decoration: none; }
.deal__brand a:hover { color: var(--ink); text-decoration: underline; }
.deal__brand span { color: var(--faint); font-weight: 500; }
.deal__title { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin-top: 4px; text-decoration: none; }
.deal__note { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.deal__meta { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.deal__meta a { color: var(--muted); }
.deal__meta strong { color: var(--ink); letter-spacing: 0.03em; }
.deal__side { flex: none; width: 120px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.empty { padding: 32px 0; color: var(--muted); }

/* ---------- Search ---------- */
.search { display: flex; gap: 8px; align-items: center; }
.search--nav { flex: 0 1 220px; min-width: 0; }
.search--nav .input { width: 100%; min-height: 38px; padding: 8px 12px; font-size: 14px; border-radius: 8px; }
.search--page { margin-top: 20px; max-width: 640px; flex-wrap: wrap; }
.search-brands { margin-top: 28px; }
.filter--wrap { flex-wrap: wrap; }
.more { display: inline-block; margin-top: 28px; font-size: 15px; font-weight: 600; }
.deals--compact .deal { padding: 18px 0; gap: 18px; }
.deals--compact .deal__title { font-size: 18px; }


/* ---------- Boxes, forms ---------- */
.box { border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.box--soft { background: var(--soft); }
.signup { margin-top: 72px; display: flex; gap: 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.signup__copy { flex: 1 1 360px; }
.signup form { display: flex; gap: 8px; flex: 1 1 380px; flex-wrap: wrap; }
.input { flex: 1 1 220px; min-width: 0; font-size: 15px; border: 1px solid #DADADA; border-radius: 10px; padding: 12px 14px; min-height: 44px; background: #FFFFFF; color: var(--ink); }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.error-text { color: var(--danger); font-weight: 600; font-size: 14px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; }
.step { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 14px; }
.picks { display: flex; gap: 8px; flex-wrap: wrap; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick > span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid #DADADA; background: #FFFFFF; font-size: 14px; font-weight: 600; }
.pick input:checked + span { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pick--card > span { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; min-width: 200px; font-weight: 500; }
.pick--card strong { font-size: 16px; font-weight: 700; }
.pick__chips { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 36px; max-width: 820px; }

/* ---------- Deal page ---------- */
.deal-head { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.deal-head__copy { flex: 1 1 520px; min-width: 0; }
.deal-head__verdict { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.deal-head__note { margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: var(--text); max-width: 680px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.cols { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 48px; }
.cols__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.cols__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bars { display: flex; flex-direction: column; gap: 18px; }
.bar__head { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.bar__track { height: 8px; background: var(--chip); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.bar__fill { height: 8px; background: var(--ink); border-radius: 999px; }
.bar p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.email-frame { display: block; width: 100%; height: 1300px; max-height: 85vh; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.offers { list-style: none; padding: 0; margin: 0; }
.offers li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.offers__big { font-size: 22px; font-weight: 800; width: 100px; flex: none; }
.offers__text { flex: 1 1 240px; color: var(--text); }
.offers li.is-perk { color: var(--faint); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 180px; border-bottom: 1px solid var(--ink); }
.chart a, .chart__col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.chart__bar { width: 100%; max-width: 44px; border-radius: 6px 6px 0 0; background: #C9C9C4; }
.chart__bar--members { background: #DCDCD7; }
.chart__bar--this { background: var(--accent); }
.chart__dates { display: flex; gap: 8px; padding-top: 6px; }
.chart__dates span { flex: 1 1 0; text-align: center; font-size: 11px; color: var(--faint); white-space: nowrap; }
.legend-key { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }

/* ---------- Brand pages ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat dd { margin: 4px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat span { display: block; font-size: 12px; color: var(--faint); }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; }
.letters a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #DADADA; border-radius: 8px; font-weight: 600; text-decoration: none; }
.brand-group h2 { font-size: 20px; font-weight: 800; margin: 32px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.brand-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; }
.brand-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.brand-list a { font-weight: 600; text-decoration: none; }

/* ---------- Live feed ---------- */
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.live i { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(10, 122, 79, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(10, 122, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 122, 79, 0); } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.day { font-size: 15px; font-weight: 700; margin: 36px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.deal__time { width: 72px; flex: none; font-size: 13px; color: var(--faint); font-weight: 600; }

/* ---------- Messages ---------- */
.message { padding-block: 96px 40px; max-width: 640px; }

@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .page { padding-block: 28px 24px; }
  .message { padding-block: 48px 32px; }
  .h1 { font-size: 28px; }
  .lede { font-size: 16px; }
  .legend { gap: 8px 16px; margin-top: 18px; font-size: 13px; }
  .legend li { gap: 6px; }
  .toolbar { margin-top: 28px; gap: 12px; }
  /* Deal rows: thumbnail on the left; the rating sits on a small line above the title so the text gets the width. */
  .deal { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "thumb side" "thumb body" "thumb time"; column-gap: 14px; row-gap: 6px; align-items: start; }
  .deal > .thumb { grid-area: thumb; }
  .deal > .deal__body { grid-area: body; }
  .deal > .deal__side { grid-area: side; width: auto; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; }
  .deal > .deal__time { grid-area: time; width: auto; }
  .deals--compact .deal { column-gap: 14px; row-gap: 6px; }
  .deal .deal__side .score { width: auto; height: auto; border: 0; border-radius: 0; background: none; font-size: 15px; padding: 0; }
  .nav { gap: 14px; }
  .nav__links { order: 3; width: 100%; gap: 16px; overflow-x: auto; flex-wrap: nowrap; }
  .nav__links a { white-space: nowrap; }
  .search--nav { flex: 1 1 120px; }
  .deal__rank { display: none; }
  .thumb { width: 96px; height: 122px; }
  .thumb .sticker { left: 5px; right: 5px; bottom: 6px; padding: 4px 3px 5px; }
  .thumb .sticker__top { font-size: 8px; }
  .thumb .sticker__main { font-size: 13px; }
  .thumb--lg { width: 160px; height: 202px; }
  .thumb--lg .sticker__main { font-size: 20px; }
  .deal__title { font-size: 17px; }
  .deal__note { font-size: 13px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .email-frame { max-height: 75vh; }
  .box { padding: 20px; }
}

/* "What the email says": the email's text, readable and indexable */
.email-text { color: var(--muted, #555); font-size: 15px; line-height: 1.55; }
.email-text p { margin: 0 0 8px; }
