:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #1a1f2e;
  --muted: #5c6578;
  --line: #e4e0d8;
  --brand: #0f6b4c;
  --brand-dark: #0a4d37;
  --accent: #c45c26;
  --good: #0f6b4c;
  --chip: #eef6f2;
  --shadow: 0 1px 2px rgba(26,31,46,.06), 0 8px 24px rgba(26,31,46,.06);
  --radius: 14px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: .95rem;
}
.logo span { color: var(--muted); font-weight: 500; font-size: .85rem; }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }

.hero {
  padding: 2.4rem 0 1.4rem;
}
.hero h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -.03em;
  line-height: 1.15;
}
.hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--chip);
  color: var(--brand-dark);
  border: 1px solid #d5ebe1;
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .82rem;
  font-weight: 600;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
}
label.field {
  display: grid;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
input[type="search"], select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .65rem .75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
input[type="search"]:focus, select:focus {
  outline: 2px solid #9fd4bf;
  border-color: var(--brand);
}
.filters-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .9rem;
}
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: .55rem .9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { border-color: #c9c3b8; }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding-bottom: 2.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.1rem 1.15rem;
  display: grid;
  gap: .65rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(26,31,46,.06), 0 14px 28px rgba(26,31,46,.08);
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: start;
}
.type-pill {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: #f1eee8;
  border-radius: 999px;
  padding: .2rem .55rem;
  white-space: nowrap;
}
.net {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--good);
  letter-spacing: -.02em;
  line-height: 1;
}
.net small {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: .2rem;
  letter-spacing: 0;
}
.card h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { color: var(--brand); }
.issuer { color: var(--muted); font-size: .9rem; margin: 0; }
.bonus {
  margin: 0;
  font-size: .92rem;
  color: var(--ink);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .7rem;
  margin: 0;
  padding: 0;
}
.stats div {
  background: #faf8f4;
  border-radius: 10px;
  padding: .45rem .55rem;
}
.stats dt {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 700;
}
.stats dd {
  margin: .1rem 0 0;
  font-weight: 700;
  font-size: .92rem;
}
.card-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .2rem;
}
.card-actions a { text-decoration: none; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.newsletter {
  background: linear-gradient(135deg, #0f6b4c, #147a58 55%, #1a8a45);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0 0 2.5rem;
  box-shadow: var(--shadow);
}
.newsletter h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.newsletter p { margin: 0 0 1rem; opacity: .92; max-width: 36rem; }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.newsletter-form input {
  flex: 1 1 220px;
  border: 0;
  border-radius: 10px;
  padding: .75rem .9rem;
  font: inherit;
}
.newsletter-form button {
  border: 0;
  border-radius: 10px;
  padding: .75rem 1.1rem;
  font: inherit;
  font-weight: 700;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
}
.newsletter-note {
  margin: .75rem 0 0;
  font-size: .8rem;
  opacity: .85;
}

.page {
  padding: 2rem 0 3rem;
}
.page h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: -.03em;
}
.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  max-width: 48rem;
}
.prose h2 { margin-top: 1.6rem; font-size: 1.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #333a4a; }
.prose ul { padding-left: 1.2rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: .5rem .35rem;
  vertical-align: top;
}

.offer-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.offer-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.offer-net {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--good);
  letter-spacing: -.03em;
}
.offer-net span {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.detail-grid div {
  background: #faf8f4;
  border-radius: 12px;
  padding: .7rem .8rem;
}
.detail-grid dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 700;
}
.detail-grid dd { margin: .15rem 0 0; font-weight: 700; }
.flag {
  display: inline-block;
  background: #fff4e8;
  color: #8a4b16;
  border: 1px solid #f0d4b5;
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: .78rem;
  font-weight: 700;
  margin: .15rem .25rem .15rem 0;
}
.breadcrumb {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .75rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: .88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.disclaimer {
  margin-top: 1rem;
  max-width: 50rem;
  font-size: .8rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .nav { gap: .75rem; font-size: .9rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .offer-net { font-size: 2rem; }
}

.max-note {
  margin: -.25rem 0 0;
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
}
.flag-row { display: flex; flex-wrap: wrap; gap: .25rem; }
.newsletter[hidden] { display: none !important; }

/* ===== Visual redesign: logos, stylized cards, hero ===== */
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, #d9f0e4 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f3e6d8 0%, transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0 1.2rem;
}
.hero-copy h1 {
  margin: 0 0 .6rem;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  letter-spacing: -.035em;
  line-height: 1.12;
}
.hero-copy p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.35rem;
}
.stat {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .75rem .9rem;
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: var(--brand-dark);
}
.stat span {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hero-fan {
  position: relative;
  height: 230px;
  margin-inline: auto;
  width: min(100%, 360px);
}
.hero-fan .mini-card {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 190px;
  transform-origin: 50% 120%;
  box-shadow: 0 12px 30px rgba(26,31,46,.18);
}
.hero-fan .mini-card:nth-child(1) { transform: translateX(-58%) rotate(-14deg); z-index: 1; }
.hero-fan .mini-card:nth-child(2) { transform: translateX(-50%) rotate(-4deg); z-index: 2; }
.hero-fan .mini-card:nth-child(3) { transform: translateX(-42%) rotate(6deg); z-index: 3; }
.hero-fan .mini-card:nth-child(4) { transform: translateX(-34%) rotate(14deg); z-index: 4; }

/* Stylized plastic card tile */
.plastic {
  position: relative;
  aspect-ratio: 1.586 / 1;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background: linear-gradient(135deg, var(--c1, #0f6b4c), var(--c2, #0a4d37));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.plastic::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px 80px at 85% 20%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(120deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
  pointer-events: none;
}
.plastic-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 10% 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plastic-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.plastic-logo-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  flex-shrink: 0;
}
.plastic-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.plastic-logo-fallback {
  background: #fff;
  color: #1a1f2e;
  font-size: .7rem;
  font-weight: 800;
}
.plastic-motifs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.plastic.logo-only .plastic-name,
.plastic.logo-only .plastic-foot {
  display: none;
}
.plastic.logo-only .plastic-inner {
  justify-content: flex-start;
}
.plastic.logo-only .plastic-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.plastic.logo-only .plastic-logo {
  width: 30px;
  height: 30px;
}
.plastic-chip {
  width: 28px;
  height: 22px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, #e8d39b, #c4a35a 40%, #f0e0a8 60%, #b8934a);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  position: relative;
}
.plastic-chip::after {
  content: "";
  position: absolute;
  inset: 4px 3px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 2px;
  background:
    linear-gradient(#0000 45%, rgba(0,0,0,.15) 46% 54%, #0000 55%),
    linear-gradient(90deg, #0000 45%, rgba(0,0,0,.15) 46% 54%, #0000 55%);
}
.plastic-contactless {
  width: 18px;
  height: 18px;
  opacity: .85;
}
.plastic-name {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plastic-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .9;
}
.plastic.bank-style {
  background: linear-gradient(145deg, var(--c1, #1a4d7c), var(--c2, #0d2a45));
}
.plastic.bank-style .plastic-chip { display: none; }
.plastic.crypto-style {
  background: linear-gradient(135deg, var(--c1, #5b2be0), var(--c2, #111827));
}

.offer-card-visual {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: .85rem;
  align-items: start;
}
.offer-card-visual .plastic {
  width: 118px;
}

.issuer-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.issuer-row img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}
.card {
  border-left: 4px solid var(--accent-type, var(--brand));
}
.card[data-type="credit_card"] { --accent-type: #117ACA; }
.card[data-type="business"] { --accent-type: #7c3aed; }
.card[data-type="checking"] { --accent-type: #0f6b4c; }
.card[data-type="savings"] { --accent-type: #c45c26; }
.card[data-type="crypto_fintech"] { --accent-type: #0052FF; }

.card:hover .plastic {
  transform: translateY(-2px) scale(1.02);
  transition: transform .18s ease;
}
.plastic { transition: transform .18s ease; }

.offer-detail-visual {
  width: min(100%, 320px);
  margin-bottom: 1rem;
}
.offer-detail-visual .plastic {
  width: 100%;
  max-width: 320px;
}

.illus-note {
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hero-fan {
    height: 130px;
    order: -1;
  }
  .hero-fan .mini-card { width: 120px; top: 6px; }
}
@media (max-width: 520px) {
  .offer-card-visual {
    grid-template-columns: 96px 1fr;
    gap: .65rem;
  }
  .offer-card-visual .plastic { width: 96px; }
  .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .stat { padding: .45rem .4rem; text-align: center; }
  .stat strong { font-size: 1.05rem; }
  .stat span { font-size: .62rem; letter-spacing: .02em; }
  .hero-fan { width: 100%; max-width: 220px; height: 110px; margin-bottom: .25rem; }
  .hero-fan .mini-card { width: 105px; top: 4px; }
  .hero-fan .mini-card:nth-child(1) { display: none; }
}

/* Mobile polish: keep header one line, no fan overflow */
@media (max-width: 520px) {
  .logo span { display: none; }
  .nav { flex-wrap: nowrap; gap: .65rem; font-size: .85rem; }
  .header-inner { gap: .5rem; }
  .hero-fan { overflow: visible; margin-inline: auto; }
  body { overflow-x: hidden; }
  .plastic-name { font-size: .72rem; }
}
.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,31,46,.1);
}
.offer-card { transition: transform .15s ease, box-shadow .15s ease; }
.illus-note {
  margin: .5rem 0 0;
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
}

.hero-fan .mini-card:not(.logo-only) .plastic-name {
  font-size: .78rem;
  -webkit-line-clamp: 2;
}
.hero-fan .mini-card:not(.logo-only) .plastic-foot { font-size: .58rem; }
.offer-card-visual .plastic-logo-badge { width: 30px; height: 30px; }
.offer-card-visual .plastic-logo { width: 22px; height: 22px; }

.plastic.plastic-light {
  color: #1a1200;
  text-shadow: none;
}
.plastic.plastic-light .plastic-name {
  text-shadow: none;
}
.plastic.plastic-light .plastic-contactless {
  color: #1a1200;
}
