/* ==========================================================================
   CouponSearch — "CouponSave" design system (hand-written, no Tailwind)
   Forest green + navy + gold · Hanken Grotesk + Inter · soft tonal depth
   ========================================================================== */

:root {
  /* brand */
  --primary:        #0f5238;   /* forest green — buttons, links */
  --primary-mid:    #2d6a4f;
  --primary-deep:   #0e3f2b;   /* hover */
  --primary-tint:   #e7f3ec;   /* soft green wash */
  --primary-fixed:  #b1f0ce;

  --navy:           #455f88;   /* secondary text / nav */
  --navy-ink:       #3f5882;
  --navy-tint:      #eef3fb;   /* secondary-container wash */
  --navy-chip:      #dbe6fb;

  --gold:           #f4d100;   /* verified / highlight */
  --gold-bg:        #fbe89a;
  --gold-ink:       #4f4800;
  --gold-tint:      #fbf6dd;

  /* surfaces */
  --bg:             #f7fafc;   /* page background */
  --white:          #ffffff;
  --surface-low:    #f1f4f6;
  --surface:        #ebeef0;
  --ink:            #181c1e;   /* headings */
  --muted:          #404943;   /* body secondary */
  --outline:        #707973;
  --line:           #e3e8ea;   /* hairline */
  --line-soft:      #eef2f4;
  --error:          #ba1a1a;
  --error-bg:       #fdecec;

  /* shape */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* depth (ambient navy-tinted) */
  --shadow-sm: 0 1px 2px rgba(26,54,93,.04), 0 4px 12px rgba(26,54,93,.05);
  --shadow:    0 8px 24px rgba(26,54,93,.10);
  --shadow-lg: 0 16px 40px rgba(26,54,93,.12);

  --maxw: 1280px;
  --font-head: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; font-weight: 700; }
ul { padding-left: 1.1rem; }
::selection { background: var(--primary-fixed); color: var(--primary-deep); }

/* inline SVG icons (self-hosted, currentColor) */
.icon { display: inline-block; vertical-align: -0.18em; flex: 0 0 auto; }
.icon--fill { fill: currentColor; }
.icon--error   { color: var(--error); display: inline-flex; }
.icon--success { color: var(--primary); display: inline-flex; }
.icon--gold    { color: #e0a900; }
/* icons that sit inline next to text in flex rows shouldn't shrink */
.badge .icon, .store-hero__facts .icon, .link-more .icon, .btn .icon { vertical-align: middle; }

/* ----- layout ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
.section { padding-block: 56px; }
.section--soft { background: var(--surface-low); }
.section--line { border-block: 1px solid var(--line); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 28px; }
.section__head h2 { font-size: 1.7rem; letter-spacing: -.01em; }
.section__head .sub { color: var(--muted); margin-top: 6px; font-size: .98rem; }
.section__title-icon { display: inline-flex; align-items: center; gap: 10px; }
.policy-source { font-size: .85rem; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.h1-icon { display: inline-flex; vertical-align: -0.12em; color: var(--primary); }
.link-more { color: var(--primary); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 4px; }
.link-more:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--primary); }

/* ----- buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body);
  font-weight: 600; font-size: .95rem; cursor: pointer; padding: 12px 22px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; transition: background .15s, box-shadow .15s, transform .08s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-deep); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-ink); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { color: var(--primary); }
.btn--pill { border-radius: 999px; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }

/* ----- badges / chips ----- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; line-height: 1.3; }
.badge--verified { background: var(--gold-bg); color: var(--gold-ink); }
.badge--expired  { background: var(--error-bg); color: var(--error); }
.badge--code     { background: var(--primary-tint); color: var(--primary); }
.badge--deal     { background: var(--navy-tint); color: var(--navy-ink); }
.badge--soon     { background: var(--error-bg); color: var(--error); text-transform: none; letter-spacing: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; background: var(--navy-chip); color: var(--navy-ink); transition: background .15s, color .15s; }
a.chip:hover { background: var(--navy); color: #fff; text-decoration: none; }
.tag-cat { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--navy-tint); color: var(--navy-ink); font-size: .78rem; font-weight: 600; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,250,252,.9);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 14px; height: 72px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800;
  font-size: 1.4rem; color: var(--primary); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--primary);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem; }
.nav__links { display: none; align-items: center; gap: 26px; list-style: none; padding: 0; margin: 0 0 0 28px; }
.nav__links a { color: var(--navy); font-weight: 500; font-size: .98rem; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color .15s; }
.nav__links a:hover { color: var(--primary); }
.nav__links a.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.nav__spacer { flex: 1; }
.nav__right { display: flex; align-items: center; gap: 12px; }

.search--header { display: none; position: relative; }
.search--header input { background: var(--surface-low); border: 1px solid transparent; border-radius: 999px;
  padding: 11px 44px 11px 18px; width: 240px; font: inherit; font-size: .9rem; color: var(--ink); }
.search--header input:focus { outline: none; border-color: var(--primary); background: #fff; }
.search--header .search__icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--outline); pointer-events: none; padding: 0; display: inline-flex; }

.nav-toggle label { cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.nav-toggle { display: inline-flex; }
#nav-check { display: none; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--white); }
#nav-check:checked ~ .mobile-menu { display: block; }
.mobile-menu ul { list-style: none; padding: 8px 16px 18px; margin: 0; }
.mobile-menu a { display: block; padding: 12px 8px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.mobile-menu a:hover { color: var(--primary); }

/* ----- inline search (hero / pages) ----- */
.search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 720px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 8px; }
.search:focus-within { box-shadow: 0 0 0 4px rgba(15,82,56,.10); border-color: var(--primary); }
.search__icon { color: var(--outline); padding-left: 10px; }
.search input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 4px; }
.search input:focus { outline: none; }
.search .btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .search { flex-wrap: wrap; }
  .search input { flex-basis: 100%; }
  .search .btn { width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: radial-gradient(900px 360px at 50% -40%, #eaf3ee, transparent), var(--bg);
  padding-block: 64px 72px; text-align: center; }
.hero h1 { font-size: 2.3rem; letter-spacing: -.02em; max-width: 720px; margin-inline: auto; }
.hero p.lead { margin: 16px auto 32px; font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.hero__tags { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 24px; }
.hero__tags .label { font-size: .8rem; font-weight: 600; color: var(--outline); }
.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 28px; }
.hero__stats div { font-size: .85rem; color: var(--muted); }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); }

/* ==========================================================================
   Grids
   ========================================================================== */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid--stores  { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--coupons { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid--cats    { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--tips    { grid-template-columns: repeat(1, minmax(0,1fr)); gap: 28px; }
.grid--guides  { grid-template-columns: repeat(1, minmax(0,1fr)); gap: 24px; }
.grid--posts   { grid-template-columns: repeat(1, minmax(0,1fr)); gap: 24px; }
.grid--trust   { grid-template-columns: repeat(1, minmax(0,1fr)); gap: 36px; }

/* ----- store card ----- */
.store-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 24px 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .12s; }
.store-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); text-decoration: none; }
.store-card__logo { width: 76px; height: 76px; border-radius: var(--r); margin-bottom: 8px; overflow: hidden;
  display: grid; place-items: center; background: var(--surface-low); transition: transform .15s; }
.store-card:hover .store-card__logo { transform: scale(1.04); }
.store-card__logo .logo-svg { border-radius: var(--r); }

/* real self-hosted brand logos (app-icon tile, currentColor-agnostic) */
.logo-img { display: inline-grid; place-items: center; border-radius: inherit; overflow: hidden; background: #fff; }
.logo-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.store-card__logo .logo-img, .store-hero__logo .logo-img { border-radius: var(--r); }
.mini-store .logo-img { border-radius: 10px; flex-shrink: 0; }
.store-card__name { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem; overflow-wrap: anywhere; }
.store-card__cat { font-size: .8rem; color: var(--outline); }
.store-card__count { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }

/* ----- category card (circle) ----- */
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px; }
.cat-card:hover { text-decoration: none; }
.cat-card__icon { width: 64px; height: 64px; border-radius: 999px; background: var(--navy-tint); color: var(--primary); display: grid; place-items: center;
  margin-bottom: 8px; transition: background .2s, transform .2s, color .2s; }
.cat-card:hover .cat-card__icon { background: var(--primary); color: #fff; transform: translateY(-3px); }
.cat-card__name { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .98rem; }
.cat-card:hover .cat-card__name { color: var(--primary); }
.cat-card__meta { font-size: .8rem; color: var(--outline); }

/* ==========================================================================
   Coupon card (tear-off)
   ========================================================================== */
.coupon { display: flex; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .18s, transform .12s; }
.coupon:hover { box-shadow: var(--shadow); }
.coupon.is-expired { opacity: .72; }
.coupon__main { flex: 1; min-width: 0; padding: 20px; position: relative;
  background-image: linear-gradient(to bottom, var(--outline) 50%, transparent 0); background-position: right;
  background-size: 1px 10px; background-repeat: repeat-y; }
.coupon__store { font-size: .78rem; font-weight: 600; color: var(--outline); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.coupon__store a { color: var(--navy); }
.coupon__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.coupon__title { font-family: var(--font-head); font-size: 1.18rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.coupon:hover .coupon__title { color: var(--primary); }
.coupon__desc { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.coupon__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.coupon__meta b { color: var(--ink); font-weight: 600; }
.coupon__meta .icon { color: var(--outline); }
.coupon-terms { margin-top: 10px; font-size: .8rem; }
.coupon-terms summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.coupon-terms p { margin-top: 6px; color: var(--muted); }

.coupon__action { width: 168px; flex-shrink: 0; background: var(--primary-tint); padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.coupon__disc { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--primary); line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.coupon__disc small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--outline); margin-top: 4px; }
.code-pill { width: 100%; background: #fff; border: 1.5px dashed var(--primary); color: var(--primary); border-radius: var(--r-sm);
  padding: 9px 10px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; transition: background .15s; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.code-pill:hover { background: var(--primary-tint); }
.code-pill.copied { background: var(--primary); color: #fff; border-style: solid; }
.coupon__action .btn { width: 100%; }

/* success bar */
.bar { display: inline-block; vertical-align: middle; width: 64px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-left: 4px; }
.bar > i { display: block; height: 100%; background: var(--primary-mid); border-radius: 999px; }

/* ==========================================================================
   Saving-tip card
   ========================================================================== */
.tip { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .12s; }
.tip:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tip__icon { width: 48px; height: 48px; border-radius: 999px; background: var(--primary-tint); color: var(--primary);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }
.tip__title { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; }
.tip__body { font-size: .92rem; color: var(--muted); margin-top: 8px; }

/* ----- post card ----- */
.post-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .12s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__cover { height: 168px; background: linear-gradient(135deg, var(--primary-mid), var(--navy)); position: relative; overflow: hidden; }
.post-card__cover span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; opacity: .92; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__tags { display: flex; align-items: center; gap: 10px; }
.post-card__kicker { background: var(--primary-fixed); color: var(--primary-deep); font-size: .64rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; }
.post-card__meta { font-size: .8rem; color: var(--outline); }
.post-card h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; }
.post-card p { color: var(--muted); font-size: .9rem; flex: 1; }

/* ==========================================================================
   Top-10 guide cards (colored)
   ========================================================================== */
.guide-card { position: relative; border-radius: var(--r-xl); padding: 30px; overflow: hidden; display: block; }
.guide-card:hover { text-decoration: none; }
.guide-card__num { position: absolute; right: -8px; bottom: -22px; font-family: var(--font-head); font-weight: 800;
  font-size: 9rem; line-height: 1; opacity: .12; user-select: none; }
.guide-card__icon { width: 50px; height: 50px; border-radius: 999px; background: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); margin-bottom: 18px; position: relative; z-index: 1; }
.guide-card h3 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; position: relative; z-index: 1; }
.guide-card p { margin: 12px 0 22px; font-size: .96rem; position: relative; z-index: 1; }
.guide-card .btn { position: relative; z-index: 1; }
.guide-card--navy  { background: var(--navy-tint); }
.guide-card--navy  .guide-card__num, .guide-card--navy h3 { color: var(--navy-ink); }
.guide-card--navy  .guide-card__icon { color: var(--navy); } .guide-card--navy p { color: var(--navy-ink); }
.guide-card--green { background: #e7f3ec; }
.guide-card--green .guide-card__num, .guide-card--green h3, .guide-card--green p { color: var(--primary-deep); }
.guide-card--green .guide-card__icon { color: var(--primary); }
.guide-card--gold  { background: var(--gold-tint); }
.guide-card--gold  .guide-card__num, .guide-card--gold h3, .guide-card--gold p { color: var(--gold-ink); }
.guide-card--gold  .guide-card__icon { color: #8a7c00; }

/* ==========================================================================
   Trust section
   ========================================================================== */
.trust { text-align: center; }
.trust__icon { width: 64px; height: 64px; border-radius: 999px; background: var(--surface); color: var(--primary);
  display: grid; place-items: center; margin: 0 auto 18px; }
.trust h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.trust p { color: var(--muted); font-size: .92rem; max-width: 320px; margin-inline: auto; }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs { font-size: .85rem; color: var(--outline); padding-block: 16px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li::after { content: "›"; color: var(--outline); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--outline); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Page header band
   ========================================================================== */
.page-head { padding-block: 8px 28px; }
.page-head h1 { font-size: 2rem; letter-spacing: -.01em; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 720px; font-size: 1.02rem; }

/* ==========================================================================
   Panels / cards
   ========================================================================== */
.panel { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 14px; }
.panel--sidebar h2 { font-size: 1.15rem; }

/* store hero card */
.store-hero { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 26px; display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 28px; }
.store-hero__logo { width: 92px; height: 92px; border-radius: var(--r); background: var(--surface-low); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.store-hero__meta { flex: 1; min-width: 240px; }
.store-hero__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.store-hero h1 { font-size: 1.7rem; }
.store-hero__facts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; color: var(--muted); font-size: .9rem; }
.store-hero__facts span { display: inline-flex; align-items: center; gap: 6px; }
.store-hero__actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* tabs */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a { padding-bottom: 12px; color: var(--muted); font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; }
.tabs a.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pagination__pages { display: flex; align-items: center; gap: 6px; }
.pagination__page { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-weight: 600; }
.pagination__page:hover { border-color: var(--primary); text-decoration: none; }
.pagination__page.is-active { color: #fff; background: var(--primary); border-color: var(--primary); }
.pagination__back .icon { transform: rotate(180deg); }

/* two-column layout */
.layout-2col { display: grid; grid-template-columns: minmax(0,1fr); gap: 28px; }
.layout-2col > * { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }

/* numbered steps */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 12px; font-size: .92rem; color: var(--muted); }
.steps .n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; background: var(--primary-tint); color: var(--primary);
  font-weight: 700; font-size: .82rem; display: grid; place-items: center; font-family: var(--font-head); }

/* similar store list */
.mini-store { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mini-store:last-child { border-bottom: none; }
.mini-store .logo-svg { border-radius: 10px; flex-shrink: 0; }
.mini-store__name { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .96rem; }
.mini-store__count { display: block; font-size: .8rem; color: var(--outline); }
.mini-store .icon { margin-left: auto; color: var(--outline); }

/* newsletter card */
.newsletter { background: var(--primary); color: #fff; border-radius: var(--r-lg); padding: 28px; text-align: center; }
.newsletter .icon { color: #cde8d9; }
.newsletter h3 { color: var(--primary-fixed); font-size: 1.2rem; margin: 10px 0 6px; }
.newsletter p { color: #cde8d9; font-size: .88rem; margin-bottom: 16px; }
.newsletter input { width: 100%; border: none; border-radius: var(--r-sm); padding: 12px 14px; font: inherit; margin-bottom: 10px; }
.newsletter .btn { width: 100%; background: var(--primary-fixed); color: var(--primary-deep); }
.newsletter .btn:hover { background: #fff; }
.newsletter small { display: block; color: #a9d3bd; font-size: .72rem; margin-top: 12px; }

/* disclosure */
.disclosure { background: var(--gold-tint); border: 1px solid #f1e08a; color: var(--gold-ink); border-radius: var(--r-sm);
  padding: 12px 16px; font-size: .85rem; }

/* verified info table */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.verified-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .9rem; }
.verified-table th, .verified-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line-soft); }
.verified-table th { color: var(--outline); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }

/* prose */
.prose { color: #25302b; }
.prose h2 { font-size: 1.3rem; margin-top: 28px; margin-bottom: 12px; }
.prose h3 { font-size: 1.08rem; margin-top: 20px; margin-bottom: 8px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin-bottom: 14px; }
.prose li { margin-bottom: 5px; }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 16px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 14px; color: var(--muted); }

/* rank item (top10 detail) */
.rank-item { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 24px; margin-bottom: 20px; }
.rank-item__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.rank-badge { width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--primary); }
.rank-item:nth-child(1) .rank-badge { background: #c9a227; }
.rank-item:nth-child(2) .rank-badge { background: #8a97ab; }
.rank-item:nth-child(3) .rank-badge { background: #b07b3e; }
.rank-item__title { font-size: 1.25rem; }
.rank-item__rating { color: #8a7c00; font-weight: 700; font-size: .9rem; }
.proscons { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.proscons__box { border-radius: var(--r-sm); padding: 14px 16px; }
.proscons__box--pros { background: #e7f3ec; }
.proscons__box--cons { background: var(--error-bg); }
.proscons__box h4 { font-size: .9rem; margin-bottom: 6px; }
.proscons__box ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.proscons__box--pros li { color: var(--primary-deep); }
.proscons__box--cons li { color: #8a1010; }
.best-for { font-size: .94rem; } .best-for b { color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--surface-low); border-top: 1px solid var(--line); margin-top: 40px; padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .88rem; max-width: 360px; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-col h4 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: .82rem; color: var(--outline);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* ==========================================================================
   Misc
   ========================================================================== */
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 24px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; box-shadow: var(--shadow); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .container { padding-inline: 24px; }
  .grid--stores  { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--cats    { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .grid--coupons { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--tips    { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--guides  { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--posts   { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--trust   { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero h1 { font-size: 3rem; }
  .proscons { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .container { padding-inline: 32px; }
  .nav__links { display: flex; }
  .nav-toggle { display: none; }
  .search--header { display: block; }
  .grid--stores  { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .grid--cats    { grid-template-columns: repeat(8, minmax(0,1fr)); }
  .grid--coupons { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--posts   { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--tips    { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .section { padding-block: 72px; }
  .hero { padding-block: 80px 88px; }
  .layout-2col { grid-template-columns: minmax(0,1fr) 340px; }
}

/* Sidebar category list (store detail) */
.cat-list { display: flex; flex-direction: column; }
.cat-list__item { display: flex; align-items: center; gap: 10px; padding: 11px 4px;
  border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; transition: color .15s; }
.cat-list__item:last-child { border-bottom: 0; }
.cat-list__item:hover { color: var(--primary); }
.cat-list__icon { color: var(--primary); display: inline-flex; }
.cat-list__name { flex: 1 1 auto; font-weight: 500; }
