/* Toolbandit — minimal, fast, mobile-first. One small stylesheet, no frameworks. */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --accent: #f97316;
  --accent-dark: #c2410c;
  --accent-soft: #fff7ed;
  --radius: 12px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--accent-dark); }
img, svg { display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .7rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-name em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; gap: 1rem; font-size: .9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.hero { padding: 2.2rem 0 1.2rem; }
.hero h1 { margin: 0 0 .4rem; font-size: 2rem; letter-spacing: -.02em; line-height: 1.15; }
.hero h1 .hl { color: var(--accent); }
.hero p { margin: 0; color: var(--muted); max-width: 34rem; }
.pill {
  display: inline-block; margin-top: .8rem; padding: .3rem .7rem;
  background: var(--accent-soft); border: 1px dashed var(--accent);
  color: var(--accent-dark); border-radius: 999px; font-size: .8rem; font-weight: 600;
}

/* Controls */
.controls { padding: .6rem 0 1.4rem; }
.search-row { display: flex; gap: .6rem; margin-bottom: .8rem; }
.search-row input[type="search"] {
  flex: 1; padding: .65rem .9rem; font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.search-row input[type="search"]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.btn-clear {
  padding: .65rem 1rem; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius); font-size: .9rem; cursor: pointer; color: var(--muted);
}
.btn-clear:hover { color: var(--ink); border-color: var(--muted); }
.filter-group { margin-bottom: .7rem; }
.filter-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .35rem; }
.pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill-btn {
  padding: .42rem .85rem; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; font-size: .88rem; cursor: pointer; color: var(--ink);
}
.pill-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-btn:hover { border-color: var(--ink); }
.results-meta { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }

/* Deal grid */
.deal-grid {
  display: grid; gap: 1rem; padding-bottom: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .deal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .deal-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover, .card:focus-visible { box-shadow: 0 6px 22px rgba(28,25,23,.10); transform: translateY(-2px); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-media {
  position: relative; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; padding: 1.6rem 1rem;
  color: var(--accent-dark);
}
.card-media svg { width: 56px; height: 56px; }
.badge {
  position: absolute; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .22rem .55rem; border-radius: 999px; text-transform: uppercase;
}
.badge-sample { top: .6rem; left: .6rem; background: #1c1917; color: #fff; }
.badge-off { top: .6rem; right: .6rem; background: var(--accent); color: #fff; }
.card-body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-brand { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-title { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.35; }
.price-row { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; padding-top: .3rem; }
.price { font-size: 1.3rem; font-weight: 800; }
.was { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.card-retailer { font-size: .82rem; color: var(--muted); }
.card-retailer strong { color: var(--ink); font-weight: 600; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .2rem; }
.aff-tag { font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: .1rem .4rem; }
.btn-deal {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .9rem; padding: .55rem 1.1rem; border-radius: 8px;
}
.btn-deal:hover { background: var(--accent-dark); }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }

/* Email section */
.alerts {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 2rem 1.4rem; margin-bottom: 2.5rem; text-align: center;
}
.alerts h2 { margin: 0 0 .4rem; font-size: 1.4rem; letter-spacing: -.01em; }
.alerts h2 .hl { color: var(--accent); }
.alerts p { margin: 0 auto 1.1rem; color: #d6d3d1; max-width: 30rem; font-size: .95rem; }
.alert-form { display: flex; gap: .5rem; max-width: 26rem; margin: 0 auto; }
.alert-form input[type="email"] {
  flex: 1; padding: .65rem .9rem; border: 0; border-radius: 8px; font-size: 1rem; min-width: 0;
}
.alert-form button {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: .65rem 1.2rem; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.alert-form button:hover { background: var(--accent-dark); }
.alert-ok { color: #86efac; font-weight: 600; }
.alert-fine { font-size: .75rem; color: #a8a29e; margin-top: .7rem; }
@media (max-width: 480px) { .alert-form { flex-direction: column; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 1.6rem 1rem 2rem; }
.disclaimer {
  font-size: .82rem; color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1.1rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .88rem; margin-bottom: .8rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--ink); }
.copy { font-size: .8rem; color: var(--muted); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(28,25,23,.55);
  display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 50;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius); max-width: 30rem; width: 100%;
  max-height: 90vh; overflow: auto; padding: 1.4rem; position: relative;
}
.modal-close {
  position: absolute; top: .7rem; right: .7rem; width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--line); background: var(--surface); border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; line-height: 1; color: var(--muted);
}
.modal-close:hover { color: var(--ink); border-color: var(--ink); }
.modal h2 { margin: 0 0 .3rem; font-size: 1.25rem; padding-right: 2rem; }
.modal .card-brand { margin-bottom: .2rem; }
.modal-price { display: flex; align-items: baseline; gap: .6rem; margin: .8rem 0; }
.modal-price .price { font-size: 1.8rem; }
.modal-note {
  font-size: .85rem; background: var(--accent-soft); border: 1px dashed var(--accent);
  border-radius: 8px; padding: .7rem .9rem; color: var(--accent-dark); margin: 1rem 0;
}
.modal .btn-deal { display: block; text-align: center; margin-top: .6rem; }
.modal-meta { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

/* Prose pages */
.prose { max-width: 44rem; padding: 2rem 1rem 3rem; }
.prose h1 { font-size: 1.8rem; letter-spacing: -.02em; }
.prose h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose p, .prose li { color: #44403c; }
.prose time { color: var(--muted); font-size: .85rem; }
