:root {
  --ink: #0f172a; --muted: #475569; --line: #e2e8f0; --bg: #f8fafc; --card: #fff;
  --brand: #0f766e; --brand-d: #115e59; --brand-l: #ccfbf1; --accent: #f59e0b;
  --r: 14px; --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 4px 16px rgb(15 23 42 / .06);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--brand-d); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img, svg { display: block; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
[hidden] { display: none !important; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.logo .mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current] { color: var(--brand-d); background: var(--brand-l); }
.hsearch { margin-inline-start: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.hsearch input { border: 0; background: transparent; padding: 9px 14px; width: 240px; font: inherit; }
.hsearch button { border: 0; background: transparent; padding: 0 12px; cursor: pointer; }
.hsearch svg, .bigsearch svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.disclose-bar { background: #0f172a; color: #cbd5e1; font-size: .82rem; padding: 6px 0; }
.disclose-bar a { color: #fff; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 10% -10%, #99f6e4 0, transparent 60%), radial-gradient(900px 400px at 100% 0, #fde68a 0, transparent 55%), #f0fdfa; padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--brand-d); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 8px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; max-width: 16ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.lead.small { font-size: 1.02rem; }
.bigsearch { display: flex; gap: 8px; max-width: 620px; margin: 24px 0; }
.bigsearch input { flex: 1; font: inherit; font-size: 1.05rem; padding: 14px 18px; border: 1px solid #94a3b8; border-radius: 12px; background: #fff; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; margin: 8px 0 0; color: var(--muted); }
.stats b { color: var(--ink); font-size: 1.4rem; margin-inline-end: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--brand-d); }

/* Blocks and grids */
.block { padding-block: 40px 8px; }
.bhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
h2 { letter-spacing: -.01em; }
.grid { display: grid; gap: 16px; }
.grid.deals { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.stores { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.cats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.deal { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.dthumb { height: 120px; display: grid; place-items: center; }
.dthumb .big { width: 54px; height: 54px; fill: none; stroke: rgb(15 23 42 / .55); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.dbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dbody h3 { font-size: 1.02rem; margin: 2px 0 0; line-height: 1.3; }
.dbody p { margin: 0; color: var(--muted); font-size: .92rem; }
.dmeta { font-size: .86rem; color: var(--muted); }
.dfoot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sample { font-size: .76rem; color: #64748b; }
.kind { align-self: flex-start; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; }
.k-coupon { background: #dcfce7; color: #166534; } .k-drop { background: #dbeafe; color: #1e40af; }
.k-bundle { background: #f3e8ff; color: #6b21a8; } .k-flash { background: #ffedd5; color: #9a3412; }

.c-electronics { background: linear-gradient(135deg, #e0f2fe, #c7d2fe); } .c-marketplace { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.c-fashion { background: linear-gradient(135deg, #fce7f3, #fbcfe8); } .c-home { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.c-beauty { background: linear-gradient(135deg, #ffe4e6, #fecdd3); } .c-health { background: linear-gradient(135deg, #ecfccb, #d9f99d); }
.c-travel { background: linear-gradient(135deg, #cffafe, #a5f3fc); } .c-software { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.c-gaming { background: linear-gradient(135deg, #ede9fe, #ddd6fe); } .c-kids { background: linear-gradient(135deg, #fef9c3, #fef08a); }
.c-grocery, .c-services, .c-insurance, .c-telecom, .c-finance { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }

.store { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.store:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.store .mono { grid-row: span 2; }
.sname { font-weight: 700; line-height: 1.2; }
.smeta { color: var(--muted); font-size: .84rem; }
.mono { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-weight: 800; font-size: .95rem; color: hsl(var(--h) 60% 25%); background: hsl(var(--h) 70% 90%); }
.shead { display: flex; gap: 16px; align-items: center; margin-block: 8px 16px; }
.shead .mono { width: 72px; height: 72px; font-size: 1.4rem; border-radius: 18px; }
.shead h1 { margin: 0; }

.cat { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r); text-decoration: none; color: var(--ink); border: 1px solid rgb(15 23 42 / .06); }
.cat .ico { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.cat span { font-weight: 700; } .cat small { color: var(--muted); }
.cat:hover { box-shadow: var(--shadow); }

.how .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: s; }
.how .steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 18px 56px; position: relative; counter-increment: s; }
.how .steps li::before { content: counter(s); position: absolute; inset-inline-start: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #0f172a; color: #e2e8f0; border-radius: 18px; padding: 28px; margin-block: 40px; }
.cta h2 { color: #fff; margin: 0 0 4px; } .cta p { margin: 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 16px 0 20px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.filters label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 700; color: var(--muted); gap: 4px; }
.filters input, .filters select { font: inherit; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; min-width: 160px; background: #fff; color: var(--ink); }
.filters .count { margin-inline-start: auto; color: var(--muted); font-size: .9rem; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.az a { min-width: 32px; text-align: center; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; font-weight: 700; }
.anchor { grid-column: 1 / -1; height: 0; scroll-margin-top: 140px; }
.empty { color: var(--muted); }

/* Store page and prose */
.crumbs { font-size: .88rem; color: var(--muted); }
.notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--r); padding: 16px 18px; }
.two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 32px; margin-top: 24px; }
.side { display: grid; gap: 10px; align-content: start; }
.side h2 { margin: 0 0 4px; font-size: 1.1rem; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 700; }
.prose { max-width: 78ch; }
section.prose { padding-block: 40px; }
.prose h2 { margin-top: 28px; }
.updated { color: var(--muted); font-size: .86rem; margin-top: 32px; }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }

/* Footer */
.foot { margin-top: 56px; background: #0f172a; color: #cbd5e1; padding: 40px 0 24px; }
.foot .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 24px; }
.foot h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin: 0 0 8px; }
.foot a { display: block; color: #cbd5e1; text-decoration: none; padding: 3px 0; }
.foot a:hover { color: #fff; }
.foot .logo { color: #fff; }
.foot .fine { border-top: 1px solid #1e293b; margin-top: 24px; padding-top: 16px; font-size: .8rem; color: #94a3b8; }

@media (max-width: 860px) {
  .two, .foot .cols { grid-template-columns: 1fr; }
  .hsearch { margin-inline-start: 0; width: 100%; } .hsearch input { width: 100%; flex: 1; }
  .bar { padding-block: 10px; gap: 10px; }
  .bigsearch { flex-wrap: wrap; } .bigsearch input { min-width: 0; width: 100%; } .bigsearch .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) { .store, .cat, .btn { transition: box-shadow .15s, background .15s, border-color .15s; } }
