:root {
  --text: #1d1d1f;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --radius: 16px;
}

/* reset */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  padding: 20px 14px 24px;
}

a {
  color: inherit;
}

/* layout */
.friends__container {
  max-width: 1100px;
  margin: 0 auto;
}

/* header */
.friends__header {
  margin-bottom: 22px;
}

.friends__title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.friends__subtitle {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}

/* tiers */
.tier {
  margin-top: 24px;
}

.tier__label {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
}

/* grid */
.tier__grid {
  display: grid;
  gap: 14px;
}

.tier__grid--one {
  grid-template-columns: minmax(260px, 380px);
  justify-content: center;
}

.tier__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tier__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* cards */
.friend {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 130px;
  padding: 16px 14px;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid #f0f0f0;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.friend:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  border-color: #e5e7eb;
}

/* featured (platinum) */
.friend--featured {
  min-height: 150px;
}

/* small (bronze) */
.friend--small {
  min-height: 110px;
  padding: 14px 12px;
}

/* logos */
.friend__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-bottom: 10px;
}

.friend__logo img {
  display: block;
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.friend--featured .friend__logo img {
  max-height: 52px;
}

.friend--small .friend__logo img {
  max-height: 40px;
}

/* text */
.friend__tagline,
.friend__name {
  text-align: center;
}

.friend__tagline {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.friend__name {
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA */
.friends__cta {
  margin-top: 24px;
  text-align: center;
}

.friends__button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.friends__button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* responsive */
@media (max-width: 900px) {
  .tier__grid--two,
  .tier__grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    padding: 16px 10px 20px;
  }

  .friends__title {
    font-size: 1.5rem;
  }

  .tier__grid--two,
  .tier__grid--four,
  .tier__grid--one {
    grid-template-columns: 1fr;
  }

  .friend,
  .friend--featured,
  .friend--small {
    min-height: auto;
  }
}