:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --surface-soft: #eef6f1;
  --ink: #1d2528;
  --muted: #647174;
  --line: #d9e1dd;
  --green: #17845b;
  --green-dark: #0d5f41;
  --coral: #e85d46;
  --blue: #2368b4;
  --amber: #b9821f;
  --charcoal: #20292c;
  --shadow: 0 16px 44px rgba(29, 37, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 225, 221, 0.82);
  background: rgba(247, 247, 242, 0.94);
  backdrop-filter: blur(12px);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--charcoal);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.brand-word {
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 247, 242, 0.97) 0%, rgba(247, 247, 242, 0.91) 38%, rgba(247, 247, 242, 0.38) 100%),
    url("promomondo-hero.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
  padding: 74px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--charcoal);
  font-size: 3rem;
  line-height: 1.05;
}

.hero-copy > p {
  width: min(590px, 100%);
  margin-bottom: 28px;
  color: #435052;
  font-size: 1.08rem;
}

.search-wrap {
  display: flex;
  width: min(620px, 100%);
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: 0;
}

.search-wrap button,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.search-wrap button {
  width: 108px;
}

.button {
  padding: 0 16px;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .button {
  min-width: 180px;
}

.hero-stats {
  display: grid;
  width: min(620px, 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.focus-strip {
  display: flex;
  flex-wrap: wrap;
  width: min(680px, 100%);
  gap: 8px;
  margin-top: 16px;
}

.stat {
  padding: 12px 14px;
  border: 1px solid rgba(217, 225, 221, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.stat strong {
  display: block;
  color: var(--charcoal);
  font-size: 1.15rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.band {
  padding: 54px 0;
}

.band.alt {
  background: #ffffff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 6px;
  color: var(--charcoal);
  font-size: 2rem;
  line-height: 1.15;
}

.section-head p {
  max-width: 680px;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 13px;
  font-size: 0.9rem;
}

.pill.active {
  border-color: rgba(23, 132, 91, 0.32);
  background: var(--surface-soft);
  color: var(--green-dark);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.coverage-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 2px;
}

.coverage-note strong {
  color: var(--charcoal);
}

.coverage-note span {
  max-width: 620px;
  color: var(--muted);
}

.backlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.backlog-item {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 14px;
}

.backlog-item strong {
  display: block;
  margin-bottom: 4px;
}

.backlog-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.query-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.query-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.query-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.query-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.region-card,
.merchant-card,
.method-card,
.page-list,
.offer-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.region-card {
  min-height: 190px;
  padding: 22px;
}

.region-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.region-card p {
  color: var(--muted);
}

.region-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 6px;
  background: #f1f5f4;
  color: #415052;
  padding: 0 9px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag.green {
  background: #e4f4ec;
  color: var(--green-dark);
}

.tag.coral {
  background: #fff0ec;
  color: #a93f2e;
}

.tag.amber {
  background: #fff6df;
  color: #845c15;
}

.tag.blue {
  background: #eaf2fb;
  color: #1e5797;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.toolbar .muted {
  color: var(--muted);
}

.merchant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.merchant-card {
  display: grid;
  min-height: 270px;
  grid-template-rows: auto auto 1fr auto;
  padding: 16px;
}

.merchant-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.merchant-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 900;
}

.merchant-card h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.merchant-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.merchant-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf1ef;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.meta-row strong {
  color: var(--ink);
}

.card-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--charcoal);
  font-weight: 800;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  text-align: center;
}

.card-link:hover {
  border-color: rgba(35, 104, 180, 0.45);
  background: #f3f8ff;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.method-card {
  padding: 22px;
}

.method-card h3 {
  font-size: 1.1rem;
}

.method-card p {
  color: var(--muted);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 42px 0 64px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-title {
  margin-bottom: 16px;
  font-size: 2.45rem;
  line-height: 1.1;
}

.lead {
  color: #435052;
  font-size: 1.04rem;
}

.offer-panel {
  padding: 22px;
  margin-top: 22px;
}

.offer-panel h2 {
  font-size: 1.35rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  border-top: 1px solid #edf1ef;
  padding: 14px 0;
}

.offer-row:first-of-type {
  border-top: 0;
}

.offer-row strong {
  color: var(--charcoal);
}

.side-box {
  position: sticky;
  top: 94px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.side-box h2 {
  font-size: 1.15rem;
}

.side-box ul,
.page-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-box li,
.page-list li {
  border-top: 1px solid #edf1ef;
  padding: 11px 0;
}

.side-box li:first-child,
.page-list li:first-child {
  border-top: 0;
}

.page-list {
  padding: 18px;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  color: #d9e1dd;
  padding: 34px 0;
}

.footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
}

.footer p {
  color: #aebcba;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero {
    min-height: 500px;
    background:
      linear-gradient(90deg, rgba(247, 247, 242, 0.98) 0%, rgba(247, 247, 242, 0.9) 70%, rgba(247, 247, 242, 0.72) 100%),
      url("promomondo-hero.png") center right / cover no-repeat;
  }

  h1 {
    font-size: 2.35rem;
  }

  .region-grid,
  .query-grid,
  .backlog-grid,
  .method-grid {
    grid-template-columns: 1fr 1fr;
  }

  .merchant-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .side-box {
    position: static;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 470px;
  }

  .hero-copy {
    padding: 36px 0 30px;
  }

  .search-wrap {
    align-items: stretch;
    flex-direction: column;
  }

  .search-wrap input {
    min-height: 42px;
  }

  .search-wrap button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    display: none;
  }

  .region-grid,
  .query-grid,
  .backlog-grid,
  .merchant-grid,
  .method-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .toolbar,
  .coverage-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .offer-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
