:root {
  --navy: #16233f;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --green: #15803d;
  --green-bg: #dcfce7;
  --red: #b91c1c;
  --red-bg: #fee2e2;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --gray-bg: #f1f5f9;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 720px; }

/* header */
.site-header { background: var(--navy); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.25rem; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.logo-mark {
  display: inline-block; background: #22c55e; color: #06270f;
  border-radius: 8px; padding: 0 0.45rem; margin-right: 0.35rem; font-weight: 900;
}
.site-header nav a { color: #cbd5e1; text-decoration: none; margin-left: 1.25rem; font-size: 0.95rem; }
.site-header nav a:hover, .site-header nav a.active { color: #fff; }

/* hero + search */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.4rem; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto 1.5rem; }
.search-box { position: relative; max-width: 620px; margin: 0 auto; }
#store-search {
  width: 100%; padding: 1.05rem 1.25rem; font-size: 1.15rem;
  border: 2px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
}
#store-search:focus { outline: none; border-color: var(--navy); }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem;
  margin: 1.1rem 0 0; font-size: 0.9rem; color: var(--muted); font-weight: 600;
}
.search-results {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 10; text-align: left;
  max-height: 320px; overflow-y: auto;
}
.search-results a { display: block; padding: 0.7rem 1.1rem; text-decoration: none; color: var(--ink); }
.search-results a:hover { background: var(--gray-bg); }
.search-results .fine { display: block; font-size: 0.8rem; color: var(--muted); }

/* sections */
main section { margin: 2.5rem 0; }
h1 { font-size: 1.9rem; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 1.25rem 0 0.25rem; }
.crumbs a { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 1rem; text-decoration: none; color: var(--ink); font-size: 0.92rem;
}
.chip:hover { border-color: var(--navy); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.9rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.1rem; text-decoration: none; color: var(--ink);
}
.card:hover { border-color: var(--navy); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.card strong { display: block; }
.card .fine { display: block; margin-top: 0.15rem; }
.card-more { display: block; margin-top: 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.more-link { margin-top: 1rem; font-weight: 700; }
.example { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.5rem; }
.example h2 { margin-top: 0; }
.fine { color: var(--muted); font-size: 0.85rem; }

.how ol { padding-left: 1.4rem; }
.how li { margin-bottom: 0.6rem; }

/* accepted-at summary */
.accepted-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.4rem; margin: 1.5rem 0; }
.accepted-box h2 { margin: 0 0 0.7rem; font-size: 1.15rem; }
.accepted-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0.45rem 1.4rem; }
.acc-check { color: var(--green); font-weight: 800; margin-right: 0.3rem; }
.acc-qual { color: var(--muted); font-size: 0.88rem; }
.acc-cond { display: block; margin: 0.15rem 0 0.4rem 1.5rem; color: var(--muted); font-size: 0.88rem; }

/* matrix table */
.table-wrap { overflow-x: auto; margin: 1rem 0 0.4rem; }
table.matrix { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; }
table.matrix th, table.matrix td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; }
table.matrix thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.matrix tbody th { background: #fff; font-weight: 600; }
table.matrix tbody th a { color: var(--ink); }
.note-cell { color: var(--muted); font-size: 0.88rem; max-width: 420px; }
.legend { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }

.pill {
  display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.pill.yes { background: var(--green-bg); color: var(--green); }
.pill.no { background: var(--red-bg); color: var(--red); }
.pill.cond { background: var(--amber-bg); color: var(--amber); }
.pill.unconf { background: #f1f5f9; color: #475569; border: 1px dashed #94a3b8; }
.pill.na { background: var(--gray-bg); color: var(--muted); }

.verified {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
  padding: 0.8rem 1.1rem; font-size: 0.95rem;
}
/* method details */
.method-detail { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin: 0.9rem 0; }
.method-detail h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.method-detail .answer { margin: 0.3rem 0; }
.method-detail .src { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 0; }

.sources { padding-left: 1.3rem; }
.sources li { margin-bottom: 0.35rem; }

/* faq */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1.1rem; margin: 0.6rem 0; }
details.faq summary { font-weight: 600; cursor: pointer; }

/* report box */
.report-box { background: #fff; border: 2px dashed var(--line); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 2.5rem 0; }
.report-box h2 { margin-top: 0; }
#report-btn {
  background: var(--navy); color: #fff; border: none; border-radius: 8px;
  padding: 0.7rem 1.3rem; font-size: 0.95rem; cursor: pointer; font-weight: 600;
}
#report-btn:hover { opacity: 0.9; }

/* footer */
.site-footer { background: var(--navy); color: #cbd5e1; margin-top: 3rem; padding: 2rem 0; font-size: 0.9rem; }
.site-footer a { color: #fff; }
.site-footer .fine { color: #94a3b8; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  h1 { font-size: 1.5rem; }
}

/* short answer (GEO quotable summary) */
.short-answer { background: #f0f9ff; border-left: 4px solid var(--navy); border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: 1.02rem; line-height: 1.55; }
.short-answer strong { display: block; margin-bottom: 0.25rem; }

/* ---- visual polish pass: spacing, hierarchy, restrained interaction ---- */
main section { margin: 3rem 0; }
main h2 { margin-top: 2.5rem; letter-spacing: -0.01em; }

/* search: stronger emphasis */
#store-search { transition: border-color .15s, box-shadow .15s; }
#store-search:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(22,35,63,.14), 0 6px 24px rgba(0,0,0,.07); }
#store-search::placeholder { color: #94a3b8; }

/* cards & chips: cleaner hierarchy, restrained hover */
.card, .chip, details.faq, .method-detail { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card strong { font-size: 1.02rem; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.chip:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.method-detail:hover { border-color: #cbd5e1; }
details.faq:hover { border-color: #cbd5e1; }

/* accepted-box: status icons match the matrix pills */
.acc-cond-icon { color: var(--amber); font-weight: 800; margin-right: 0.3rem; }

/* source-confidence badges */
.conf-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 0.18rem 0.6rem; border-radius: 999px; vertical-align: middle; margin-left: 0.45rem; white-space: nowrap;
}
.conf-official { background: var(--green-bg); color: var(--green); }
.conf-provider { background: #e0f2fe; color: #0369a1; }
.conf-secondary { background: var(--amber-bg); color: var(--amber); }
.conf-unconf { background: var(--gray-bg); color: var(--muted); border: 1px dashed #94a3b8; }

/* compact payment-method link list (homepage) */
.method-links { font-size: 1.02rem; line-height: 2; }
.method-links a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.method-links a:hover { border-bottom-color: var(--navy); }
