/* Check Local Coupons - the whole design. Colors are tokens on :root (dark mode below),
   coupons stay "paper" in both modes so they look like the real thing. */

:root {
  --bg: #f4f8f3;
  --bg-2: #e6efe4;
  --surface: #ffffff;
  --paper: #fffefa;
  --ink: #14201a;
  --ink-2: #37463e;
  --muted: #5f6f66;
  --line: #d6e3d6;
  --line-2: #bfd2c0;
  --brand: #15924f;
  --brand-2: #0e7340;
  --brand-soft: #dcf2e3;
  --sun: #ffbd2e;
  --good: #0f8a62;
  --good-soft: #dcf3ea;
  --warn: #a35f00;
  --warn-soft: #fff0d4;
  --bad: #b42318;
  --bad-soft: #fde4e1;
  --info-soft: #e4eefb;
  --shadow: 0 1px 2px rgba(20, 50, 30, .06), 0 8px 24px -12px rgba(20, 50, 30, .18);
  --shadow-lg: 0 2px 4px rgba(20, 50, 30, .06), 0 24px 48px -20px rgba(20, 50, 30, .3);
  --radius: 16px;
  --radius-sm: 10px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1612;
    --bg-2: #16201a;
    --surface: #1a251f;
    --paper: #fffaf1;
    --ink: #e9f3ec;
    --ink-2: #c8d8cd;
    --muted: #97ab9e;
    --line: #2a3a30;
    --line-2: #3a4d41;
    --brand: #3fca7f;
    --brand-2: #6adb9c;
    --brand-soft: #143322;
    --good: #46c99a;
    --good-soft: #15342a;
    --warn: #f0b14a;
    --warn-soft: #3a2c12;
    --bad: #ff8a7c;
    --bad-soft: #3d1b17;
    --info-soft: #1c2a3d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* coupon color themes: --c fills the stub, --c-ink is the text on it, --c-soft tints */
.theme-tomato { --c: #e4402a; --c-ink: #ffffff; --c-soft: #fde5dd; --c-deep: #a92a17; }
.theme-sun    { --c: #ffb81f; --c-ink: #2a1c00; --c-soft: #fff1cc; --c-deep: #8a5a00; }
.theme-mint   { --c: #0e9a72; --c-ink: #ffffff; --c-soft: #d8f2e8; --c-deep: #08694d; }
.theme-sky    { --c: #2b70d6; --c-ink: #ffffff; --c-soft: #dce8fb; --c-deep: #1b4e9b; }
.theme-grape  { --c: #7144cc; --c-ink: #ffffff; --c-soft: #ebe2fa; --c-deep: #4f2b97; }
.theme-ink    { --c: #22303f; --c-ink: #ffffff; --c-soft: #e2e7ed; --c-deep: #22303f; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.svg-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 40em; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: .6em; display: inline-flex; gap: .5em; align-items: center; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 var(--body); padding: .8em 1.2em; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: var(--bg); opacity: .9; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--bg-2); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: var(--line-2); }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); }
.btn-sm { font-size: .85rem; padding: .6em .95em; }
.btn-lg { font-size: 1.05rem; padding: 1em 1.5em; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--brand-2); font: inherit; cursor: pointer; text-decoration: underline; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; margin: 0; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.15rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand b { color: var(--brand); font-weight: 800; }
.brand small { display: block; font: 600 .68rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tray-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border-radius: 999px; border: 2px dashed var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.tray-btn:hover { border-color: var(--brand); color: var(--ink); }
.tray-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .78rem; display: inline-grid; place-items: center; }
.tray-count[data-count="0"] { background: var(--line-2); color: var(--ink-2); }
.tray-btn.bump .tray-count { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }
.icon-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; }

/* ------------------------------------------------------------------ alerts and forms */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin: 0 0 18px; font-weight: 500; border: 1px solid transparent; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-success { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.alert-error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.alert-info { background: var(--info-soft); color: var(--ink); }
.flash-wrap { padding-top: 20px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .83rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 70px; }
.reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--bg-2); color: var(--ink-2); border-radius: 8px; padding: 5px 9px; font: 600 .78rem var(--body); cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; font-size: .93rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.counter { font-size: .78rem; color: var(--muted); text-align: right; margin-top: -2px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.3rem; }
.panel + .panel { margin-top: 20px; }

.auth-shell { padding: 56px 0 72px; }
.auth-card { max-width: 480px; }
.auth-card h1 { font-size: 2rem; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); }
.page { padding: 48px 0 72px; }
.page h1 { margin-bottom: .3em; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 20%, var(--brand-soft), transparent 70%), radial-gradient(40% 50% at 10% 100%, color-mix(in srgb, var(--sun) 22%, transparent), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .35em; }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; border-bottom: 4px dashed var(--brand); opacity: .55; }
.hero .lead { font-size: 1.2rem; margin-bottom: 28px; }
.search-card { background: var(--surface); border: 2px dashed var(--line-2); border-radius: 20px; padding: 10px; display: grid; grid-template-columns: 1fr 160px auto; gap: 8px; box-shadow: var(--shadow-lg); max-width: 640px; }
.search-card label { position: relative; display: block; }
.search-card .svg-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-card input { border: 0; background: var(--bg); padding: 15px 14px 15px 42px; border-radius: 12px; }
.search-card input:focus { box-shadow: 0 0 0 3px var(--brand-soft); }
.search-card .btn { border-radius: 12px; padding: 0 22px; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; color: var(--ink-2); font-size: .95rem; }
.hero-stats strong { display: block; font: 800 1.6rem/1 var(--display); color: var(--ink); margin-bottom: 4px; }

.hero-stack { position: relative; height: 540px; }
.hero-stack .coupon { position: absolute; width: min(330px, 92%); box-shadow: var(--shadow-lg); }
.hero-stack .coupon:nth-child(1) { top: 0; left: 2%; transform: rotate(-5deg); }
.hero-stack .coupon:nth-child(2) { top: 140px; right: 0; transform: rotate(4deg); }
.hero-stack .coupon:nth-child(3) { top: 280px; left: 10%; transform: rotate(-2deg); }
.hero-stack .coupon:hover { z-index: 3; transform: rotate(0) translateY(-6px); transition: transform .25s ease; }
.hero-stack .example-tag { position: absolute; bottom: 0; right: 4%; font-size: .78rem; color: var(--muted); }

/* ------------------------------------------------------------------ categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.cat .emoji { font-size: 1.6rem; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg-2); border-radius: 12px; flex: none; }
.cat span { display: block; font-weight: 700; font-size: .93rem; line-height: 1.2; }
.cat small { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; margin-top: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-scroll { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; scrollbar-width: thin; }

/* ------------------------------------------------------------------ the coupon */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.coupon {
  --notch: 13px;
  position: relative; display: flex; flex-direction: column; background: var(--paper); color: #201a14;
  border-radius: 18px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  isolation: isolate;
}
.coupon:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.coupon a { color: inherit; }
.coupon-stub {
  position: relative; background: var(--c); color: var(--c-ink); border-radius: 18px 18px 0 0; padding: 18px 20px 20px; overflow: hidden;
  background-image: radial-gradient(color-mix(in srgb, var(--c-ink) 14%, transparent) 1.2px, transparent 1.3px);
  background-size: 14px 14px; background-position: 0 0;
}
.coupon-stub::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: color-mix(in srgb, var(--c-ink) 10%, transparent); }
.coupon-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .92; position: relative; z-index: 1; }
.coupon-headline { display: block; font: 800 clamp(2rem, 4vw, 2.6rem)/0.95 var(--display); letter-spacing: -0.03em; margin: 12px 0 0; position: relative; z-index: 1; overflow-wrap: anywhere; }
.coupon-headline a { text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.coupon-stub .badge { background: color-mix(in srgb, var(--c-ink) 18%, transparent); color: var(--c-ink); }
.badge-hot { background: #201a14 !important; color: #ffd46b !important; }
.perf { position: relative; height: 0; border-top: 2.5px dashed color-mix(in srgb, var(--c) 45%, #d9c8b1); margin: 0 calc(var(--notch) + 4px); z-index: 2; }
.perf::before, .perf::after { content: ""; position: absolute; top: calc(var(--notch) * -1 - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: var(--notch-bg, var(--bg)); }
.perf::before { left: calc((var(--notch) * -3) - 4px); }
.perf::after { right: calc((var(--notch) * -3) - 4px); }
.perf .snip { position: absolute; left: -6px; top: -13px; width: 24px; height: 24px; color: var(--c-deep); opacity: 0; transform: rotate(90deg); }
.coupon.snipping .perf .snip { animation: snip .7s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes snip { 0% { opacity: 1; left: -6px; } 90% { opacity: 1; } 100% { opacity: 0; left: calc(100% - 18px); } }
.coupon-body { padding: 18px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.coupon-biz { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; }
.logo-dot { width: 36px; height: 36px; border-radius: 10px; flex: none; background: var(--c-soft); color: var(--c-deep); display: grid; place-items: center; font: 800 .85rem/1 var(--display); overflow: hidden; border: 1px solid #eee2d1; }
.logo-dot img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.coupon-biz-name { font-weight: 700; font-size: .92rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coupon-biz-name a { text-decoration: none; }
.coupon-biz-name a:hover { text-decoration: underline; }
.coupon-place { font-size: .8rem; color: #766a5d; display: block; font-weight: 500; }
.coupon-title { font: 700 1.12rem/1.25 var(--body); letter-spacing: -0.01em; margin: 0 0 6px; color: #201a14; }
.coupon-title a { text-decoration: none; }
.coupon-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 18px; }
.coupon-details { font-size: .9rem; color: #4a4137; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coupon-photo { margin: -4px 0 12px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-soft); }
.coupon-photo img { width: 100%; height: 100%; object-fit: cover; }
.coupon-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.coupon-meta { font-size: .8rem; color: #766a5d; display: flex; align-items: center; gap: 6px; }
.coupon-meta.soon { color: #b42318; font-weight: 700; }
.coupon-btns { display: flex; gap: 6px; }
.clip-btn, .print-btn {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 13px; font: 700 .84rem/1 var(--body);
  cursor: pointer; text-decoration: none; border: 2px solid #201a14; background: #fff; color: #201a14; transition: background .15s, color .15s, transform .1s;
}
.clip-btn:hover, .print-btn:hover { background: #201a14; color: #fff; }
.print-btn { border-color: #e7dac8; padding: 8px 10px; }
.clip-btn[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--c-ink); }
.clip-btn[aria-pressed="true"] .when-off, .clip-btn[aria-pressed="false"] .when-on { display: none; }
.coupon.is-clipped { box-shadow: 0 0 0 3px var(--c), var(--shadow); }
.coupon.is-dim { opacity: .6; }
.coupon-code { font: 700 .82rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .06em; padding: 5px 8px; border: 1.5px dashed var(--c); color: var(--c-deep); border-radius: 6px; background: var(--c-soft); }
.coupon-status { position: absolute; top: 12px; right: 12px; z-index: 3; }

/* the big coupon on its own page */
.coupon-xl .coupon-stub { padding: 28px 32px 32px; }
.coupon-xl .coupon-headline { font-size: clamp(3rem, 9vw, 5rem); }
.coupon-xl .coupon-body { padding: 26px 32px 28px; }
.coupon-xl .coupon-title { font-size: 1.6rem; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
.coupon-xl .coupon-details { -webkit-line-clamp: unset; font-size: 1.02rem; display: block; }
.coupon-xl .coupon-title a::after { display: none; }
.coupon-xl:hover { transform: none; }
.fine-print { font-size: .82rem; color: #766a5d; border-top: 1px solid #eee2d1; padding-top: 12px; margin-top: 4px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; }
.detail-actions .clip-btn, .detail-actions .print-btn { font-size: 1rem; padding: 13px 20px; }
.detail-actions .print-btn { border-color: #201a14; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.info-list .svg-icon { color: var(--brand); margin-top: 3px; }
.biz-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.biz-logo { width: 72px; height: 72px; border-radius: 18px; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; font: 800 1.4rem var(--display); overflow: hidden; flex: none; border: 1px solid var(--line); }
.biz-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.biz-logo-lg { width: 108px; height: 108px; border-radius: 24px; font-size: 2rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* ------------------------------------------------------------------ browse */
.browse-head { padding: 40px 0 8px; }
.filters { display: grid; grid-template-columns: 1fr 130px 140px 160px auto; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; margin: 18px 0 16px; box-shadow: var(--shadow); }
.filters input, .filters select { border-color: transparent; background: var(--bg); }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; color: var(--muted); font-size: .93rem; }
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 2px dashed var(--line-2); border-radius: var(--radius); }
.empty .big { font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager span[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ------------------------------------------------------------------ steps and bands */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.step-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); margin-bottom: 16px; }
.step-icon .svg-icon { width: 26px; height: 26px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; right: 22px; font: 800 2.6rem/1 var(--display); color: var(--line); }
.step p { color: var(--ink-2); margin: 0; }
.band { background: var(--ink); color: var(--bg); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.band h2 { color: var(--bg); }
.band p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.band::after { content: ""; position: absolute; inset: 14px; border: 2px dashed color-mix(in srgb, var(--bg) 22%, transparent); border-radius: 18px; pointer-events: none; }
.band .btn-primary { box-shadow: none; }
.band-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.band-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.band-list .svg-icon { color: var(--sun); }
.places { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .step-icon { width: 46px; height: 46px; border-radius: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* ------------------------------------------------------------------ account */
.account-head { padding: 36px 0 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.account-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 4px; }
.sub-nav { display: flex; gap: 6px; margin: 18px 0 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sub-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.sub-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.sub-nav a:hover:not([aria-current]) { background: var(--bg-2); color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.tile .num { font: 800 2.1rem/1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.tile .lbl { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .86rem; font-weight: 600; margin-top: 8px; }
.my-coupons { display: grid; gap: 14px; }
.my-coupon { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.my-coupon.is-new { box-shadow: 0 0 0 3px var(--good); }
.mini { background: var(--c); color: var(--c-ink); border-radius: 12px; padding: 14px; font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em; text-align: center; overflow-wrap: anywhere; background-image: radial-gradient(color-mix(in srgb, var(--c-ink) 14%, transparent) 1.2px, transparent 1.3px); background-size: 12px 12px; }
.my-coupon h3 { margin: 0 0 4px; font: 700 1.05rem/1.3 var(--body); letter-spacing: 0; }
.my-coupon .stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-top: 6px; }
.my-coupon .stats span { display: inline-flex; gap: 5px; align-items: center; }
.my-coupon .actions { justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; vertical-align: 2px; }
.pill-live { background: var(--good-soft); color: var(--good); }
.pill-paused { background: var(--bg-2); color: var(--ink-2); }
.pill-off { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.setup-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--surface); border: 2px dashed var(--brand); border-radius: var(--radius); padding: 24px; }
.setup-card .big { font-size: 2.4rem; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.editor-preview { position: sticky; top: 92px; }
.editor-preview .coupon:hover { transform: none; }
.preview-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { display: block; width: 44px; height: 44px; border-radius: 12px; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line-2); cursor: pointer; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 3px; }
.idea-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.idea-chips button { border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 4px 10px; font: 600 .78rem var(--body); cursor: pointer; }
.idea-chips button:hover { border-color: var(--brand); color: var(--brand-2); }
.file-drop { display: flex; gap: 14px; align-items: center; padding: 14px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--bg); }
.file-drop img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #fff; }
.file-drop input { font-size: .88rem; max-width: 100%; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card { flex: 1; min-width: 180px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; background: var(--surface); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input { accent-color: var(--brand); margin-top: 4px; }
.radio-card small { display: block; color: var(--muted); }

/* admin tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-2); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 28px; color: var(--ink-2); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font: 700 .82rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }

/* toast for clip feedback */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--sun); font-weight: 700; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .main-nav, .hide-mobile { display: none !important; }
  .icon-btn { display: inline-flex; }
  .mobile-nav { display: none; border-top: 1px solid var(--line); padding: 12px 20px 18px; background: var(--bg); }
  .mobile-nav.open { display: grid; gap: 4px; }
  .mobile-nav a, .mobile-nav .link { padding: 11px 6px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); text-align: left; }
  .mobile-nav form { margin: 0; }
  .hero-grid, .detail-grid, .band, .editor { grid-template-columns: 1fr; }
  .hero-stack { height: 520px; max-width: 460px; }
  .editor-preview { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .grow { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .hero { padding: 32px 0 20px; }
  .search-card { grid-template-columns: 1fr; }
  .search-card .btn { padding: 15px; }
  .hero-stack { display: none; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .band { padding: 32px 22px; border-radius: 22px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .my-coupon { grid-template-columns: 96px 1fr; }
  .my-coupon .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .mini { font-size: 1rem; padding: 12px 8px; }
  .setup-card { grid-template-columns: 1fr; text-align: center; }
  .panel { padding: 20px; }
  .brand-text small { display: none; }
  .tray-btn .tray-label { display: none; }
  .filters { grid-template-columns: 1fr; }
  .coupon-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.feature-icon { width: 64px; height: 64px; border-radius: 20px; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); margin-bottom: 14px; }
.feature-icon .svg-icon { width: 30px; height: 30px; }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
[hidden] { display: none !important; }
