:root {
  --navy: #24384a;
  --navy-deep: #1b2a38;
  --teal: #22c7b3;
  --teal-deep: #15aa98;
  --green: #26c196;
  --bg: #eef4f7;
  --panel: #ffffff;
  --line: #d7e1e8;
  --text: #223446;
  --muted: #687a8d;
  --pill: #f2f6f8;
  --shadow: 0 14px 40px rgba(23, 39, 53, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1100px) {
  body:not(.company-body) {
    zoom: 0.8;
  }
}

a {
  color: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
}

.skip-link {
  top: 12px;
  left: 12px;
  z-index: 40;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(34, 199, 179, 0.42);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #f4fbff;
  box-shadow: 0 8px 30px rgba(18, 30, 41, 0.18);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto auto minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.brand-mark {
  text-decoration: none;
}

.brand-mark-box {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--teal);
  color: white;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(244, 251, 255, 0.95);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  opacity: 0.72;
}

.header-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px 0 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(17, 28, 38, 0.35);
  color: white;
  font: inherit;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

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

.nav-button,
.hero-button,
.deal-link,
.tile-link,
.mini-link,
.ghost-link,
.merchant-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.nav-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
}

.nav-button.ghost {
  background: transparent;
}

.nav-button:not(.ghost) {
  background: rgba(255, 255, 255, 0.1);
}

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 20px 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #df6c45;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  margin: 0;
}

.section-heading,
.category-strip-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

.section-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ghost-button.accent {
  border-color: rgba(34, 199, 179, 0.45);
  color: var(--teal-deep);
}

.spotlight {
  margin-top: 12px;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

.spotlight-primary {
  display: grid;
  grid-template-columns: 1fr;
}

.spotlight-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.spotlight-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.spotlight-large {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 332px;
  padding: 22px;
}

.spotlight-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.spotlight-body {
  padding-top: 24px;
}

.spotlight-store {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.spotlight-kicker {
  margin: 0 0 12px;
  color: #df6c45;
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.spotlight-large h3 {
  font-size: 2.35rem;
  line-height: 1.02;
  max-width: 12ch;
}

.spotlight-body > p:last-of-type {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.spotlight-small {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 16px;
}

.mini-copy strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.35;
}

.mini-meta {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.deal-badge,
.offer-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(34, 199, 179, 0.12);
  color: var(--teal-deep);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.action-links,
.mini-actions,
.merchant-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tile-link,
.deal-link,
.mini-link,
.merchant-link {
  min-height: 46px;
  padding: 0 18px;
  background: var(--green);
  color: white;
  box-shadow: 0 10px 24px rgba(38, 193, 150, 0.2);
}

.mini-link {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.ghost-link,
.merchant-link-secondary,
.mini-link-secondary {
  border: 1px solid rgba(36, 56, 74, 0.12);
  background: white;
  color: var(--navy);
  box-shadow: none;
}

.ghost-link {
  min-height: 46px;
  padding: 0 18px;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.trending-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px dashed #c9d4dc;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.trending-label {
  font-weight: 700;
  color: var(--navy);
}

.trending-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trending-link,
.chip,
.store-tab {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.trending-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #637b93;
  text-decoration: underline;
  font-size: 0.95rem;
}

.merchant-section,
.listing,
.category-strip {
  margin-top: 30px;
}

.store-tabs,
.category-chips,
.alpha-index {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-tab,
.chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}

.store-tab.active,
.chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.index-search-section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(34, 199, 179, 0.06), rgba(255, 255, 255, 0.95) 42%),
    white;
  box-shadow: var(--shadow);
}

.index-search-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 16px;
}

.index-search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.index-search-input .search-icon {
  color: var(--muted);
}

.index-search-input input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px 0 44px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
}

.index-search-input input::placeholder {
  color: var(--muted);
}

.alpha-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 54px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.alpha-chip small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.alpha-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
  box-shadow: 0 12px 28px rgba(23, 39, 53, 0.14);
}

.alpha-chip.active small {
  color: rgba(255, 255, 255, 0.72);
}

.alpha-chip:disabled {
  opacity: 0.38;
  cursor: default;
}

.index-directory {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.directory-group {
  display: grid;
  gap: 14px;
}

.directory-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.directory-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--navy);
  color: white;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.directory-count {
  color: var(--muted);
  font-weight: 700;
}

.directory-group-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.directory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.directory-item-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.02rem;
}

.directory-item-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.directory-item-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.merchant-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.merchant-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.merchant-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 199, 179, 0.45);
  box-shadow: 0 18px 40px rgba(23, 39, 53, 0.12);
}

.merchant-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 14px;
}

.merchant-name {
  margin: 0;
  font-weight: 800;
  color: var(--navy);
}

.merchant-category {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.merchant-offer {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 12px 16px;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
}

.merchant-card-actions {
  padding: 14px 16px 16px;
  border-top: 1px solid #edf2f5;
}

.merchant-link {
  flex: 1 1 0;
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.brand-grid {
  display: grid;
  gap: 14px;
}

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

.listing-search-input {
  width: min(360px, 100%);
  flex: 0 1 360px;
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}

.brand-row-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.brand-row-copy {
  min-width: 0;
}

.brand-row-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.brand-row-header h3 {
  font-size: 1.35rem;
}

.brand-row-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.brand-row-action {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.logo-badge {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f8fbfc;
  border: 1px solid #dfe7ed;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-badge.large {
  width: 92px;
  height: 92px;
}

.logo-badge.medium {
  width: 64px;
  height: 64px;
}

.logo-badge.mini {
  width: 58px;
  height: 58px;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.logo-fallback {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
}

.empty-state {
  margin-top: 18px;
  padding: 28px;
  border: 1px dashed #c6d3dc;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  color: var(--muted);
}

.pagination {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pagination-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pagination-button:hover:not(:disabled) {
  border-color: rgba(34, 199, 179, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(32, 53, 76, 0.1);
}

.pagination-button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #1fc6b1, #1aa48f);
  color: white;
  box-shadow: 0 16px 28px rgba(34, 199, 179, 0.24);
}

.pagination-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.pagination-gap {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hidden {
  display: none !important;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px 28px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer-inner p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .site-header-inner {
    grid-template-columns: 1fr;
  }

  .main-nav,
  .header-actions {
    flex-wrap: wrap;
  }

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

  .merchant-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directory-group-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 22px 14px 48px;
  }

  .section-heading,
  .category-strip-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .index-search-toolbar,
  .directory-item {
    grid-template-columns: 1fr;
  }

  .spotlight-primary,
  .spotlight-secondary,
  .merchant-grid {
    grid-template-columns: 1fr;
  }

  .listing-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .listing-search-input {
    width: 100%;
    flex-basis: auto;
  }

  .spotlight-small,
  .brand-row {
    grid-template-columns: 1fr;
  }

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

  .action-links,
  .mini-actions,
  .merchant-card-actions,
  .directory-item-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-row-main {
    flex-direction: column;
  }

  .brand-row-action {
    justify-items: stretch;
    width: 100%;
  }

  .deal-link,
  .tile-link,
  .mini-link,
  .ghost-link,
  .merchant-link {
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .nav-button {
    flex: 1 1 0;
    justify-content: center;
  }
}
