/* ==========================================================================
   CouponWorth frontend stylesheet
   Tokens first, then base, layout, components, pages. Mobile-first.
   Signature element: the marigold swing tag that carries each offer's value.
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/instrument-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap;
  src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #f5f6fa;
  --card: #ffffff;
  --ink: #171c33;
  --ink-2: #3d4460;
  --muted: #5d6480;
  --line: #dce0ea;
  --line-2: #eceef4;
  --blue: #2340d6;
  --blue-deep: #1a2fa3;
  --blue-wash: #eaedfd;
  --gold: #ffc53d;
  --gold-deep: #e8a800;
  --gold-wash: #fff5d9;
  --leaf: #0b7a55;
  --leaf-wash: #e3f4ec;
  --amber-ink: #8a5a00;
  --red: #b42318;
  --red-wash: #fdecea;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(23, 28, 51, .06), 0 8px 24px -12px rgba(23, 28, 51, .18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 1.0625rem/1.6 var(--text); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 var(--s3); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 var(--s4); }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; }
button, input, textarea, select { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s3); color: #fff; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 720px) { .wrap { padding: 0 var(--s5); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 46px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: var(--r); font: 600 1rem/1.2 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; }
.btn--line { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn--quiet { background: var(--line-2); color: var(--muted); cursor: default; }
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.text-link { font-weight: 600; }

/* ---------- Header ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px); }
.masthead__bar { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . menu" "finder finder finder";
  align-items: center; gap: var(--s3) var(--s4); padding-top: var(--s3); padding-bottom: var(--s3); }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__mark { flex: none; display: block; }
.brand__tag { fill: var(--blue); }
.brand__hole { fill: #fff; }
.brand__equals { stroke: var(--gold); }
.brand__logo-image { object-fit: contain; }
.brand__word { font: 800 1.35rem/1 var(--display); letter-spacing: -.025em; }
.brand__accent { color: var(--blue); }
.brand--light { color: #fff; }
.brand--light .brand__accent { color: var(--gold); }
.brand--light .brand__hole { fill: var(--ink); }

.finder { grid-area: finder; position: relative; display: flex; align-items: center; background: var(--paper); border: 2px solid var(--line);
  border-radius: 999px; padding-left: 42px; transition: border-color .15s, background-color .15s; }
.finder:focus-within { border-color: var(--blue); background: #fff; }
.finder__icon { position: absolute; left: 15px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.finder input { flex: 1; min-width: 0; border: 0; background: transparent; height: 44px; outline: none; }
.finder input::-webkit-search-cancel-button { -webkit-appearance: none; }
.finder__go { border: 0; background: var(--blue); color: #fff; font-weight: 600; height: 36px; margin: 3px; padding: 0 16px; border-radius: 999px; cursor: pointer; }
.finder__go:hover { background: var(--blue-deep); }
.finder__list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: var(--s2); z-index: 50; }
.finder__item { display: flex; align-items: center; gap: var(--s3); padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.finder__item:hover, .finder__item.is-active { background: var(--blue-wash); color: var(--ink); text-decoration: none; }
.finder__item img, .finder__item .logo-initials { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line-2); font-size: .72rem; }
.finder__item-name { flex: 1; font-weight: 600; }
.finder__item-count { font-size: .85rem; color: var(--muted); }
.finder__all { display: block; padding: 10px; font-weight: 600; border-top: 1px solid var(--line-2); margin-top: 4px; }
.finder__empty { padding: 10px; color: var(--muted); margin: 0; }

.menu-btn { grid-area: menu; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; display: grid; place-items: center; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; } .menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { grid-column: 1 / -1; display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: var(--s2) 0; border-top: 1px solid var(--line-2); }
.site-nav a { display: block; padding: 12px 4px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--blue); }

@media (min-width: 960px) {
  .masthead__bar { grid-template-columns: auto minmax(260px, 420px) 1fr; grid-template-areas: "brand finder nav"; }
  .menu-btn { display: none; }
  .site-nav { display: block; grid-area: nav; grid-column: auto; justify-self: end; }
  .site-nav ul { display: flex; gap: var(--s1); padding: 0; border: 0; }
  .site-nav a { padding: 8px 12px; border-radius: var(--r-sm); font-size: .97rem; }
  .site-nav a:hover { background: var(--paper); }
  .site-nav a[aria-current="page"] { background: var(--blue-wash); }
}

/* ---------- Sections ---------- */
.section { padding: var(--s7) 0; }
.section--first { padding-top: var(--s6); }
.section--tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.section__head p { margin: 0; color: var(--muted); max-width: 60ch; }
.section__head h2 { margin-bottom: var(--s2); }
.section__title { margin-bottom: var(--s5); }
.split { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.6fr; } .section { padding: var(--s8) 0; } }

/* ---------- Hero ---------- */
.hero { padding: var(--s7) 0 var(--s7); background:
  radial-gradient(900px 380px at 100% 0, var(--blue-wash), transparent 70%), var(--paper); }
.hero__grid { display: grid; gap: var(--s6); align-items: center; }
.hero__title { max-width: 18ch; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); letter-spacing: -.035em; line-height: 1.02; margin-bottom: var(--s4); }
.hero__lead { font-size: 1.15rem; max-width: 54ch; margin-bottom: var(--s5); }
.hero__search { display: flex; flex-wrap: wrap; gap: var(--s2); max-width: 580px; background: #fff; padding: 6px; border: 2px solid var(--ink);
  border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--ink); }
.hero__search input { flex: 1 1 200px; min-width: 0; border: 0; outline: none; padding: 0 12px; height: 52px; font-size: 1.05rem; background: transparent; }
.hero__search .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .hero__search .btn { flex: 1 1 100%; } }
.hero__search:focus-within { box-shadow: 6px 6px 0 var(--blue); border-color: var(--blue); }
.hero__search--page { margin-top: var(--s4); box-shadow: 4px 4px 0 var(--ink); }
.hero__search--page input { height: 46px; }
.hero__quick { margin: var(--s5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; font-size: .95rem; }
.hero__quick span { color: var(--muted); }
.hero__quick a { padding: 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.hero__quick a:hover { border-color: var(--blue); color: var(--blue); }
@media (min-width: 960px) { .hero { padding: var(--s8) 0; } .hero__grid { grid-template-columns: 1.25fr 1fr; gap: var(--s7); } }

/* Offer board on the homepage */
.board { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--s5); }
.board__title { font-size: 1.15rem; margin-bottom: var(--s3); }
.board__list { list-style: none; margin: 0; padding: 0; }
.board__row { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s3); align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2);
  text-decoration: none; color: var(--ink-2); }
.board__list li:first-child .board__row { border-top: 0; }
.board__row:hover { text-decoration: none; color: var(--ink-2); }
.board__row:hover .board__store { color: var(--blue); }
.board__logo img, .board__logo .logo-initials { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: contain; border: 1px solid var(--line-2); background: #fff; }
.board__text { min-width: 0; display: grid; }
.board__store { font-weight: 600; color: var(--ink); }
.board__offer { font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board__foot { margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line-2); font-size: .88rem; color: var(--muted); }

/* ---------- The swing tag (value) ---------- */
.board__worth, .store-card__worth, .offer__tag { position: relative; background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 800;
  letter-spacing: -.02em; border-radius: 4px 8px 8px 4px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.board__worth, .store-card__worth { padding: 5px 10px 5px 18px; font-size: .92rem; white-space: nowrap; }
.board__worth::before, .store-card__worth::before, .offer__tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px;
  margin-top: -3px; border-radius: 50%; background: #fff; }

/* ---------- Logos ---------- */
.logo-initials { display: grid; place-items: center; width: 100%; height: 100%; background: var(--blue-wash); color: var(--blue);
  font: 800 1rem/1 var(--display); letter-spacing: -.02em; }

/* ---------- Store cards ---------- */
.store-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 620px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .store-grid { grid-template-columns: repeat(3, 1fr); } }
.store-card__link { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: center; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink-2); height: 100%; transition: border-color .15s; }
.store-card__link:hover { border-color: var(--ink); text-decoration: none; color: var(--ink-2); }
.store-card__logo { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.store-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.store-card__body { min-width: 0; display: grid; gap: 2px; }
.store-card__name { font: 600 1.05rem/1.25 var(--text); color: var(--ink); }
.store-card__link:hover .store-card__name { color: var(--blue); }
.store-card__meta { font-size: .87rem; color: var(--muted); }
.store-card__ok { color: var(--leaf); font-weight: 600; }
.more { margin-top: var(--s5); text-align: center; }
.more__note { color: var(--muted); margin: var(--s3) 0 0; }

/* ---------- Status labels ---------- */
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: .88rem; color: var(--muted); }
.status__label { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; font-weight: 600; font-size: .82rem;
  background: var(--line-2); color: var(--ink-2); }
.status__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .75; }
.status--verified .status__label { background: var(--leaf-wash); color: var(--leaf); }
.status--stale .status__label, .status--undated .status__label { background: var(--gold-wash); color: var(--amber-ink); }
.status--reviewed .status__label { background: var(--blue-wash); color: var(--blue-deep); }
.status--expired .status__label { background: var(--red-wash); color: var(--red); }
.status__detail + .status__detail::before { content: "/"; margin-right: 10px; color: var(--line); }

/* Legend (homepage + how we check) */
.read { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .read { grid-template-columns: 1fr 1.6fr; } }
.legend { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.legend__row { display: grid; gap: var(--s2); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { .legend__row { grid-template-columns: 190px 1fr; gap: var(--s4); } }
.legend dt .status__label { font-size: .88rem; }
.legend dd { margin: 0; }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: var(--s3); border-radius: 50%;
  background: var(--ink); color: #fff; font: 800 1rem/1 var(--display); }
.steps p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { margin: 0; font: inherit; }
.faq__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 18px 0; border: 0; background: none;
  text-align: left; cursor: pointer; font: 600 1.05rem/1.4 var(--text); color: var(--ink); }
.faq__btn:hover { color: var(--blue); }
.faq__sign { flex: none; position: relative; width: 14px; height: 14px; }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform .2s; }
.faq__sign::after { transform: rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__sign::after { transform: rotate(0); }
.faq__a { padding: 0 0 var(--s4); max-width: 70ch; }

/* ---------- Page tops, breadcrumbs ---------- */
.page-top, .store-top { padding: var(--s5) 0 var(--s6); background: #fff; border-bottom: 1px solid var(--line); }
.page-top h1 { max-width: 22ch; }
.page-top__lead { font-size: 1.12rem; max-width: 62ch; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.crumbs ol { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9rem; color: var(--muted); }
.crumbs li { display: flex; align-items: center; gap: 4px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line); margin-right: 4px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- Store page ---------- */
.store-top__grid { display: grid; grid-template-columns: 72px 1fr; gap: var(--s4); align-items: start; }
.store-top__logo { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.store-top__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.store-top__logo .logo-initials { font-size: 1.5rem; }
.store-top h1 { margin-bottom: var(--s2); }
.store-top__lead { max-width: 68ch; margin-bottom: var(--s2); }
.store-top__updated { margin: 0; font-size: .9rem; color: var(--muted); }
@media (min-width: 720px) { .store-top__grid { grid-template-columns: 104px 1fr; gap: var(--s5); } .store-top__logo { width: 104px; height: 104px; } }

.store-layout { display: grid; gap: var(--s6); padding-top: var(--s6); padding-bottom: var(--s7); }
.store-main { min-width: 0; }
.store-side { display: grid; gap: var(--s4); align-content: start; }
@media (min-width: 1000px) {
  .store-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); }
  .store-side { position: sticky; top: 96px; }
}
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }
.panel--plain { background: transparent; }
.panel__title { font-size: 1.05rem; margin-bottom: var(--s3); }
.panel p:last-child { margin-bottom: 0; }
.glance { margin: 0 0 var(--s4); }
.glance div { display: flex; justify-content: space-between; gap: var(--s3); padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); font-size: .95rem; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border: solid var(--leaf); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.offers-bar { display: grid; gap: var(--s3); margin-bottom: var(--s2); }
.offers-bar h2 { margin: 0; }
.offers-bar__tools { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.offers-bar__filter { flex: 1 1 180px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.offers-bar__filter:focus { outline: none; border-color: var(--blue); }
.offers-note { font-size: .88rem; color: var(--muted); margin-bottom: var(--s4); }
.offers-count { font-size: .9rem; color: var(--muted); margin: var(--s2) 0 0; }

/* ---------- Offer card ---------- */
.offer-list { display: grid; gap: var(--s3); }
.offer { display: grid; grid-template-columns: 84px 1fr; grid-template-areas: "tag body" "action action"; gap: var(--s3) var(--s4); padding: var(--s4);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); scroll-margin-top: 100px; }
.offer:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.offer--featured { border-color: var(--ink); box-shadow: 4px 4px 0 var(--gold); }
.offer__tag { grid-area: tag; align-self: start; display: grid; align-content: center; justify-items: center; min-height: 76px; padding: 8px 6px 8px 16px; text-align: center; }
.offer__worth { font-size: 1.35rem; line-height: 1; word-break: break-word; }
.offer__worth-sub { font: 600 .78rem/1.2 var(--text); margin-top: 3px; }
.offer__body { grid-area: body; min-width: 0; }
.offer__kind { margin: 0 0 4px; font-size: .84rem; font-weight: 600; color: var(--muted); display: flex; gap: var(--s2); align-items: center; }
.offer__pick { background: var(--ink); color: #fff; padding: 1px 8px; border-radius: 999px; font-size: .75rem; }
.offer__title { font: 600 1.08rem/1.35 var(--text); margin: 0 0 6px; letter-spacing: 0; }
.offer__desc { margin: 0 0 var(--s2); font-size: .95rem; }
.offer__terms { margin-top: var(--s2); font-size: .92rem; }
.offer__terms summary { cursor: pointer; color: var(--blue); font-weight: 600; width: fit-content; }
.offer__terms p { margin: var(--s2) 0 0; padding: var(--s3); background: var(--paper); border-radius: var(--r-sm); }
.offer__action { grid-area: action; display: grid; gap: var(--s2); }
.offer--expired { background: var(--paper); }
.offer--expired .offer__tag { background: var(--line); }
@media (min-width: 720px) {
  .offer { grid-template-columns: 104px 1fr 210px; grid-template-areas: "tag body action"; padding: var(--s5); }
  .offer__tag { min-height: 92px; }
  .offer__worth { font-size: 1.6rem; }
  .offer__action { align-self: center; }
}

.btn--code { position: relative; width: 100%; min-height: 50px; padding: 0 56px 0 18px; background: var(--blue); color: #fff; justify-content: flex-start; overflow: hidden; }
.btn--code:hover { background: var(--blue-deep); color: #fff; }
.btn--code__peek { position: absolute; right: 0; top: 0; bottom: 0; width: 48px; display: grid; place-items: center; background: #fff; color: var(--ink);
  border: 2px dashed var(--blue); border-left-style: solid; border-radius: 0 var(--r) var(--r) 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; font-size: .85rem; }
.btn--code[aria-expanded="true"] { display: none; }
.offer__code { display: grid; gap: var(--s2); }
.offer__code-text { display: block; padding: 12px; border: 2px dashed var(--blue); border-radius: var(--r); background: var(--blue-wash); color: var(--ink);
  font-size: 1.1rem; font-weight: 600; text-align: center; letter-spacing: .04em; word-break: break-all; user-select: all; }
.btn--copy { background: var(--ink); color: #fff; min-height: 44px; }
.btn--copy:hover { background: #000; color: #fff; }
.btn--copy.is-done { background: var(--leaf); }
.offer__go { text-align: center; font-weight: 600; font-size: .95rem; padding: 4px; }

.ended { margin-top: var(--s5); }
.ended summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: var(--s3) 0; }
.ended .offer-list { margin-top: var(--s3); }

/* Guide */
.guide { margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
.toc { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r-sm); padding: var(--s4) var(--s5); margin-bottom: var(--s6); }
.toc__title { font-size: 1rem; margin-bottom: var(--s2); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 1; font-size: .95rem; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: var(--s6); } }
.toc li { margin: 3px 0; break-inside: avoid; }
.store-faq { margin-top: var(--s7); }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin: var(--s6) 0 var(--s3); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); scroll-margin-top: 100px; }
.prose h3 { margin: var(--s5) 0 var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--s4); }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: var(--s5) 0; padding: var(--s3) var(--s5); border-left: 4px solid var(--blue); background: #fff; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s4) 0; font-size: .95rem; background: #fff; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
.prose strong { color: var(--ink); }
.table-wrap, .prose .table-wrap { overflow-x: auto; }
@media (max-width: 719px) { .prose table { display: block; overflow-x: auto; } }

.doc-layout { display: grid; gap: var(--s6); }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s8); } .doc-nav { position: sticky; top: 96px; align-self: start; } }
.doc-date { color: var(--muted); font-size: .92rem; }
.doc-nav { border-top: 1px solid var(--line); padding-top: var(--s4); }
.doc-nav__title { font-size: 1rem; }
.doc-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc-nav a { display: block; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; }
.doc-nav a:hover { background: #fff; color: var(--blue); }
.doc-nav a[aria-current="page"] { background: var(--blue-wash); color: var(--blue-deep); font-weight: 600; }
.legend--doc { margin: var(--s4) 0 var(--s6); }

/* ---------- A to Z ---------- */
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--s5); }
.letters a, .letters span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.letters a { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.letters a:hover { background: var(--ink); color: #fff; }
.letters span { color: var(--line); }
.az { display: grid; gap: var(--s3); padding: var(--s5) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
@media (min-width: 720px) { .az { grid-template-columns: 80px 1fr; } }
.az__letter { font-size: 2.2rem; color: var(--blue); margin: 0; }
.az__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .az__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .az__list { grid-template-columns: repeat(3, 1fr); } }
.az__list a { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--s3); align-items: center; padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line-2); }
.az__list a:hover { border-color: var(--ink); }
.az__logo { width: 32px; height: 32px; border-radius: 6px; overflow: hidden; }
.az__logo img { width: 100%; height: 100%; object-fit: contain; }
.az__logo .logo-initials { font-size: .75rem; }
.az__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az__count { min-width: 28px; padding: 1px 8px; border-radius: 999px; background: var(--gold-wash); color: var(--ink); font-size: .85rem; font-weight: 600; text-align: center; }

.pager { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; margin: var(--s6) 0 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Empty states, alerts, forms ---------- */
.empty { padding: var(--s6); background: #fff; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }
.empty__title { font-size: 1.3rem; }
.empty__body { max-width: 52ch; margin: 0 auto var(--s4); }
.empty__body:last-child { margin-bottom: 0; }
.alert { padding: var(--s4) var(--s5); border-radius: var(--r); margin-bottom: var(--s5); border: 1px solid; }
.alert--ok { background: var(--leaf-wash); border-color: #9bd3bd; color: #064d36; }
.alert--error { background: var(--red-wash); border-color: #f2b8b2; color: #7a1b12; }
.form { display: grid; gap: var(--s4); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.form__row { display: grid; gap: var(--s4); }
@media (min-width: 720px) { .form__row { grid-template-columns: 1fr 1fr; } .form { padding: var(--s6); } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #c3c9d9; border-radius: var(--r-sm); background: #fff; min-height: 48px; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.field__hint { font-size: .88rem; color: var(--muted); }
.field__error { font-size: .9rem; color: var(--red); font-weight: 600; }
.field__error:empty { display: none; }
.has-error input, .has-error textarea { border-color: var(--red); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c5c9da; padding: var(--s7) 0 var(--s5); font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--gold); text-decoration: underline; }
.footer__top { display: grid; gap: var(--s6); }
@media (min-width: 720px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__top { grid-template-columns: 1.3fr 2fr 1fr 1fr; } }
.footer__about p { margin-top: var(--s4); max-width: 42ch; }
.footer__title { color: #fff; font-size: 1rem; margin-bottom: var(--s3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__stores ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
.footer__more { display: inline-block; margin-top: var(--s3); font-weight: 600; color: var(--gold) !important; }
.footer__disclosure { margin: var(--s6) 0 0; padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; max-width: 90ch; }
.footer__legal { margin: var(--s3) 0 0; font-size: .85rem; color: #9398ad; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: var(--r); box-shadow: var(--shadow); font-weight: 600; max-width: calc(100vw - 32px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .masthead, .footer, .store-side, .offers-bar__tools, .toast { display: none !important; }
  .offer__code[hidden] { display: grid !important; }
}
