:root {
  --community-orange: #e16f2a;
  --community-bright: #ff4b16;
  --community-ink: #071021;
  --community-muted: #526076;
  --community-line: #e6eaf1;
}

.community-page {
  background: #fff;
  color: var(--community-ink);
  overflow: hidden;
}

.community-container {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.community-hero {
  border-bottom: 1px solid var(--community-line);
  background: #fff;
}

.community-hero-grid {
  min-height: 440px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 28px;
  padding: 34px 0 0;
}

.community-pill,
.community-section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid #ffd4c4;
  border-radius: 999px;
  background: #fff1ea;
  color: var(--community-bright);
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 900;
}

.community-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(3rem, 4.8vw, 5rem);
  line-height: 1;
  font-weight: 900;
}

.community-copy h1 .title-intro,
.community-copy h1 .title-brand {
  display: block;
}

.community-copy h1 .title-intro {
  color: var(--community-ink);
  font-size: .68em;
  line-height: 1.02;
}

.community-copy h1 .title-brand,
.community-benefits h2 span,
.community-section-kicker,
.community-offers h3,
.community-bottom h2 {
  color: var(--community-bright);
}

.community-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  line-height: 1.35;
  font-weight: 900;
}

.community-copy p {
  max-width: 540px;
  margin: 0 0 24px;
  color: #263244;
  font-size: .98rem;
  line-height: 1.75;
}

.community-hero-art {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.community-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 12%);
}

.community-hero-art img {
  width: min(100%, 720px);
  max-height: 470px;
  display: block;
  object-fit: contain;
  object-position: right center;
  image-rendering: auto;
  transform: scale(1.06);
  transform-origin: center right;
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 540px;
  margin: 18px 0 26px;
}

.community-stats span {
  padding: 0 18px;
  border-right: 1px solid var(--community-line);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.3;
}

.community-stats span:first-child {
  padding-left: 0;
}

.community-stats span:last-child {
  border-right: 0;
}

.community-stats small,
.community-stats b {
  display: block;
}

.community-stats b {
  color: var(--community-bright);
  font-size: 1.35rem;
  font-weight: 900;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.community-btn {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 900;
}

.community-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff5618, var(--community-orange));
  box-shadow: 0 14px 26px rgba(225,111,42,.22);
}

.community-secondary,
.community-light {
  color: var(--community-ink);
  background: #fff;
  border-color: rgba(225,111,42,.7);
}

.community-tiers,
.community-benefits,
.community-offers,
.community-bottom {
  padding: 38px 0;
  text-align: center;
}

.community-tiers h2,
.community-benefits h2,
.community-offers h2,
.community-how h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 2.4vw, 2.45rem);
  line-height: 1.12;
  font-weight: 900;
}

.community-lead {
  max-width: 680px;
  margin: 0 auto 30px;
  color: var(--community-muted);
  font-size: .98rem;
  line-height: 1.65;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.tier-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 28px 28px 58px;
  border: 1px solid var(--community-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(7,16,33,.07);
}

.tier-card h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 900;
}

.tier-card p,
.tier-card li,
.benefit-grid p,
.offer-grid p,
.community-flow p,
.community-bottom p,
.community-bottom li {
  color: #344054;
  font-size: .88rem;
  line-height: 1.6;
}

.tier-card ul {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.tier-card li {
  margin: 9px 0;
}

.tier-card li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--community-orange);
  font-weight: 900;
}

.tier-card strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 14px;
  text-align: center;
  color: #111827;
  background: #ececec;
  font-size: .86rem;
  font-weight: 900;
}

.tier-card.gold strong {
  background: linear-gradient(90deg, #ffc45b, #f4a623);
}

.tier-card.vip strong {
  color: #fff;
  background: #151a23;
}

.medal {
  float: left;
  width: 88px;
  height: 88px;
  margin: 0 20px 20px 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #cfd3d8, #8c939d);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 9px rgba(255,255,255,.26);
}

.gold .medal {
  background: linear-gradient(135deg, #ffd96d, #d89016);
}

.vip .medal {
  background: linear-gradient(135deg, #535a64, #141922);
}

.popular {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 5px 12px;
  border: 1px solid var(--community-bright);
  border-radius: 999px;
  color: var(--community-bright);
  background: #fff;
  font-size: .72rem;
  font-weight: 900;
}

.benefit-grid,
.offer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.benefit-grid article {
  padding: 18px 22px;
  border-right: 1px solid var(--community-line);
}

.benefit-grid article:last-child {
  border-right: 0;
}

.benefit-grid h3 {
  min-height: 42px;
  margin: 12px 0 10px;
  font-size: .95rem;
  line-height: 1.25;
  font-weight: 900;
}

.community-page .agi-icon.crown { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 5 4 4-7 4 7 5-4-2 10H5z'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E"); }
.community-page .agi-icon.clipboard { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='5' width='12' height='16' rx='2'/%3E%3Cpath d='M9 5a3 3 0 0 1 6 0M9 10h6M9 14h6M9 18h3'/%3E%3C/svg%3E"); }

.community-offers {
  border-top: 1px solid var(--community-line);
}

.offer-grid {
  gap: 14px;
  text-align: left;
}

.offer-grid article {
  overflow: hidden;
  border: 1px solid var(--community-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(7,16,33,.06);
}

.offer-grid img {
  width: 100%;
  height: 88px;
  display: block;
  object-fit: cover;
}

.offer-grid h3 {
  min-height: 46px;
  margin: 14px 16px 8px;
  font-size: .98rem;
  line-height: 1.2;
  font-weight: 900;
}

.offer-grid p {
  margin: 0 16px 18px;
}

.community-how {
  padding: 36px 0;
  border-top: 1px solid var(--community-line);
  border-bottom: 1px solid var(--community-line);
}

.community-section-kicker.left {
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
}

.how-grid {
  display: grid;
  grid-template-columns: 1.35fr .75fr;
  gap: 38px;
  align-items: center;
}

.community-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.community-flow article {
  position: relative;
  text-align: center;
}

.community-flow article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 35px;
  right: -17px;
  width: 18px;
  height: 10px;
  border-top: 2px dashed #aeb6c2;
}

.community-flow b {
  width: 24px;
  height: 24px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--community-bright);
  font-size: .75rem;
}

.community-flow h3 {
  margin: 0 0 6px;
  font-size: .9rem;
}

.how-grid > img {
  width: 100%;
  border-radius: 12px;
  object-fit: contain;
}

.community-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 34px;
  text-align: left;
}

.community-bottom article {
  padding-right: 28px;
  border-right: 1px solid var(--community-line);
}

.community-bottom article:last-child {
  border-right: 0;
  padding-right: 0;
}

.community-bottom h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.testimonials div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--community-line);
}

.testimonials img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonials strong,
.testimonials small {
  display: block;
  color: var(--community-ink);
}

.community-bottom ul {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.community-bottom li {
  margin: 14px 0;
}

.community-bottom li b {
  display: block;
  color: var(--community-ink);
}

.community-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.community-logos span {
  min-height: 64px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--community-line);
  color: #18325c;
  font-size: 1.45rem;
  font-weight: 900;
}

.community-final {
  padding: 28px 0;
  color: #fff;
  background: linear-gradient(135deg, #ff4b16, var(--community-orange));
}

.final-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.community-final h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 900;
}

.community-final p {
  margin: 0;
  max-width: 700px;
}

@media (max-width: 1120px) {
  .community-hero-grid,
  .how-grid,
  .community-bottom,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .tier-grid,
  .benefit-grid,
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-hero-art {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .community-container {
    width: min(100% - 32px, 1280px);
  }

  .community-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .community-stats,
  .tier-grid,
  .benefit-grid,
  .offer-grid,
  .community-flow,
  .community-logos {
    grid-template-columns: 1fr;
  }

  .community-stats span,
  .benefit-grid article,
  .community-bottom article {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--community-line);
  }

  .community-flow article:not(:last-child)::after {
    display: none;
  }

  .community-actions,
  .community-btn {
    width: 100%;
  }
}
