/* NEXCLUB background refinement layer */
:root {
  --nex-cream: #fffaf0;
  --nex-ivory: #fffdf8;
  --nex-paper: #f7f1e3;
  --nex-gold-wash: rgba(253, 209, 32, 0.24);
  --nex-ink-rgb: 17, 17, 15;
  --nex-warm-shadow: rgba(92, 74, 18, 0.12);
}

body {
  background:
    linear-gradient(180deg, #fff7d0 0%, var(--nex-cream) 18%, var(--nex-ivory) 38%, #fbf4e1 72%, var(--nex-paper) 100%);
}

main {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 249, 218, 0) 0%, var(--nex-cream) 13%, var(--nex-ivory) 30%, #fbf4e2 58%, #fff8df 82%, var(--nex-paper) 100%);
}

.section,
.section-tight,
.value-section,
.app-proof-section,
.club-benefits-section,
.plans-section,
.partner-section,
.faq-section,
.final-cta-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section::before,
.section-tight::before,
.value-section::before,
.app-proof-section::before,
.club-benefits-section::before,
.plans-section::before,
.partner-section::before,
.faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section::before,
.section-tight::before {
  background:
    linear-gradient(90deg, rgba(var(--nex-ink-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(var(--nex-ink-rgb), 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent 0%, #000000 24%, #000000 74%, transparent 100%);
}

.hero-section {
  background-color: #fdd120;
  background-image:
    linear-gradient(90deg, rgba(253, 209, 32, 0.9) 0%, rgba(253, 209, 32, 0.82) 34%, rgba(253, 209, 32, 0.66) 58%, rgba(253, 209, 32, 0.36) 78%, rgba(253, 209, 32, 0.18) 100%),
    url("assets/hero-background-nexclub.png");
  background-size: cover;
  background-position: center right;
}

.section-tight {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.62) 0%, rgba(255, 250, 238, 0.54) 42%, rgba(255, 244, 199, 0.24) 72%, rgba(255, 253, 248, 0.46) 100%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.34) 0%, rgba(255, 247, 220, 0.2) 54%, rgba(255, 253, 248, 0.46) 100%),
    url("assets/backgrounds/sobre-nexclub-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.section-tight::after,
.club-benefits-section::after,
.plans-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.section-tight::after {
  display: none;
}

.value-section {
  min-height: clamp(760px, 54vw, 920px);
  background-color: #fff6d4;
  background-image: url("assets/backgrounds/vantagens-background-nexclub.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.value-section::before {
  display: none;
}

.value-section::after {
  display: none;
}

.value-section .split-layout {
  min-height: clamp(560px, 42vw, 700px);
  grid-template-columns: minmax(0, 640px) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 84px);
}

.value-section .section-heading {
  position: relative;
  top: auto;
  max-width: 600px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 253, 247, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(84, 70, 25, 0.12);
  backdrop-filter: blur(12px) saturate(1.08);
}

.value-section .benefit-grid {
  grid-column: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
}

.value-section .benefit-card {
  min-height: 190px;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 18px 46px rgba(84, 70, 25, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.08);
}

.value-section .benefit-card:nth-child(1) {
  grid-row: auto;
  grid-column: auto;
}

.app-proof-section {
  color: var(--ink);
  min-height: clamp(620px, 48vw, 760px);
  background-color: #fff8df;
  background-image: url("assets/backgrounds/no-app-background-nexclub.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.app-proof-section::before {
  display: none;
}

.app-proof-grid {
  min-height: clamp(480px, 38vw, 620px);
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.82fr);
  justify-content: end;
  align-items: center;
}

.app-proof-copy {
  grid-column: 2;
  max-width: 620px;
  padding: clamp(24px, 3vw, 38px);
  background: rgba(255, 253, 247, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(84, 70, 25, 0.12);
  backdrop-filter: blur(12px) saturate(1.08);
}

.app-proof-copy .eyebrow,
.app-proof-copy h2 {
  color: var(--ink);
}

.app-proof-copy p {
  color: rgba(17, 17, 15, 0.72);
}

.club-benefits-section {
  background:
    linear-gradient(180deg, #f8f1de 0%, var(--nex-cream) 24%, var(--nex-ivory) 100%);
}

.club-benefits-section::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 202, 0.34)),
    repeating-linear-gradient(135deg, rgba(var(--nex-ink-rgb), 0.035) 0 1px, transparent 1px 24px);
  mask-image: linear-gradient(180deg, transparent 0%, #000000 16%, #000000 82%, transparent 100%);
}

.club-benefits-section::after {
  left: max(-120px, -8vw);
  bottom: 80px;
  width: min(42vw, 520px);
  height: 310px;
  background:
    linear-gradient(90deg, rgba(253, 209, 32, 0.42), rgba(255, 255, 255, 0.02)),
    url("assets/web/telemedicine-unsplash.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  opacity: 0.3;
  transform: rotate(3deg);
  filter: saturate(0.9);
  mask-image: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.72) 48%, transparent 100%);
}

.club-benefit-showcase {
  background:
    linear-gradient(104deg, rgba(17, 17, 15, 0.94) 0%, rgba(17, 17, 15, 0.9) 57%, rgba(253, 209, 32, 0.96) 57.2%, rgba(253, 209, 32, 0.82) 100%);
}

.plans-section {
  background-color: #fff7dc;
  background-image: url("assets/backgrounds/planos-background-nexclub-v2.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.plans-section::before {
  display: none;
}

.plans-section::after {
  display: none;
}

.partner-section {
  background-color: #fdd120;
  background-image: url("assets/backgrounds/lojista-background-nexclub.png");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.partner-section::before {
  display: none;
}

@media (min-width: 1041px) {
  .partner-section {
    background-size: auto 100%;
    background-position: -420px center;
  }

  .partner-grid {
    width: min(1320px, calc(100% - 64px));
    grid-template-columns: minmax(0, 0.94fr) minmax(430px, 0.76fr);
    gap: clamp(28px, 4vw, 64px);
    justify-content: end;
  }

  .partner-grid .section-heading {
    grid-column: 2;
    max-width: 560px;
    padding: 24px;
    background: rgba(255, 253, 245, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: var(--radius);
    box-shadow: 0 20px 58px rgba(92, 74, 18, 0.12);
    backdrop-filter: blur(12px) saturate(1.1);
  }

  .partner-form {
    grid-column: 2;
  }
}

.faq-section {
  background-color: #fff8df;
  background-image: url("assets/backgrounds/faq-background-nexclub.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.faq-section::before {
  display: none;
}

.final-cta-section {
  color: var(--ink);
  background-color: var(--yellow);
  background-image: url("assets/backgrounds/final-cta-background-nexclub.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.final-cta-section::before {
  display: none;
}

.final-cta-inner {
  grid-template-columns: minmax(0, 680px);
  grid-template-areas:
    "eyebrow"
    "title"
    "actions";
  justify-content: start;
  align-items: start;
  row-gap: 0;
}

.final-cta-actions {
  justify-content: flex-start;
  margin-top: 24px;
}

.site-footer {
  background: #11110f;
}

.plan-card,
.step-card,
.benefit-card,
.metric-card,
.feature-list div,
.plan-proof-row div,
.partner-form,
.faq-list details {
  box-shadow:
    0 20px 58px var(--nex-warm-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-width: 1040px) {
  .hero-section {
    background-image:
      linear-gradient(180deg, rgba(253, 209, 32, 0.9) 0%, rgba(253, 209, 32, 0.82) 50%, rgba(253, 209, 32, 0.62) 100%),
      url("assets/hero-background-nexclub.png");
    background-position: center top;
  }

  .value-section::before,
  .club-benefits-section::after,
  .plans-section::after {
    opacity: 0.2;
  }

  .app-proof-section {
    min-height: auto;
    background-size: cover;
    background-position: 36% center;
  }

  .app-proof-grid {
    min-height: 620px;
    grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.86fr);
    gap: clamp(22px, 4vw, 48px);
  }

  .app-proof-copy {
    grid-column: 2;
  }

  .final-cta-section {
    background-color: var(--yellow);
    background-image: url("assets/backgrounds/final-cta-background-nexclub.png");
    background-size: cover;
    background-position: 52% center;
    background-repeat: no-repeat;
  }

  .partner-section {
    background-position: 78% top;
  }
}

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(180deg, #fff6c8 0%, var(--nex-cream) 24%, var(--nex-ivory) 52%, #faf0d5 100%);
  }

  .hero-section {
    background-image:
      linear-gradient(180deg, rgba(253, 209, 32, 0.94) 0%, rgba(253, 209, 32, 0.84) 46%, rgba(253, 209, 32, 0.68) 100%),
      url("assets/hero-background-nexclub.png");
    background-position: 58% top;
  }

  .section-tight::after,
  .value-section::after,
  .club-benefits-section::after,
  .plans-section::after {
    display: none;
  }

  .value-section::before {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(255, 246, 209, 0.58)),
      url("assets/web/shopping-benefits-unsplash.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    mask-image: linear-gradient(180deg, transparent 0%, #000000 18%, #000000 82%, transparent 100%);
  }

  .app-proof-section,
  .plans-section,
  .partner-section,
  .faq-section {
    background:
      linear-gradient(180deg, var(--nex-ivory) 0%, #fff7de 54%, #f9f0d8 100%);
  }

  .plans-section {
    background-color: #fff7dc;
    background-image: url("assets/backgrounds/planos-background-nexclub-v2.png");
    background-size: cover;
    background-position: 68% top;
    background-repeat: no-repeat;
  }

  .app-proof-section {
    background-color: #fff8df;
    background-image: url("assets/backgrounds/no-app-background-nexclub.png");
    background-size: auto 100%;
    background-position: 26% top;
    background-repeat: no-repeat;
  }

  .app-proof-grid {
    min-height: 760px;
    grid-template-columns: 1fr;
    align-items: end;
    width: min(100% - 28px, 560px);
  }

  .app-proof-copy {
    grid-column: 1;
    align-self: end;
    padding: 22px;
    background: rgba(255, 253, 247, 0.76);
    backdrop-filter: blur(14px) saturate(1.08);
  }

  .partner-section {
    background-color: #fdd120;
    background-image: url("assets/backgrounds/lojista-background-nexclub.png");
    background-size: cover;
    background-position: 82% top;
    background-repeat: no-repeat;
  }

  .faq-section {
    background-color: #fff8df;
    background-image: url("assets/backgrounds/faq-background-nexclub.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
}

@media (max-width: 720px) {
  .value-section {
    min-height: auto;
    background-size: auto 100%;
    background-position: 58% top;
  }

  .value-section .split-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
  }

  .value-section .section-heading {
    grid-column: 1;
    width: 100%;
    max-width: none;
    padding: 22px;
    background: rgba(255, 253, 247, 0.76);
    backdrop-filter: blur(14px) saturate(1.08);
  }

  .value-section .benefit-grid {
    grid-column: 1;
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
  }

  .value-section .benefit-card,
  .value-section .benefit-card:nth-child(1) {
    grid-column: auto;
    grid-row: auto;
    min-height: 172px;
  }

  .club-benefits-section {
    padding-top: 92px;
    scroll-margin-top: 104px;
  }

  .club-tabs-shell {
    margin-top: 0;
    margin-bottom: 28px;
  }

  .plans-section .plan-card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(17, 17, 15, 0.16);
    box-shadow:
      0 20px 54px rgba(44, 39, 16, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px) saturate(1.08);
  }

  .plans-section .plan-audience,
  .plans-section .plan-price span,
  .plans-section .plan-card p {
    color: rgba(17, 17, 15, 0.78);
  }
}

@media (max-width: 560px) {
  .club-benefit-phone,
  .club-benefit-showcase.is-discounts .club-benefit-phone,
  .club-benefit-showcase.is-cashback .club-benefit-phone,
  .club-benefit-showcase.is-app .club-benefit-phone,
  .club-benefit-showcase.is-nearby .club-benefit-phone,
  .club-benefit-showcase.is-telemedicine .club-benefit-phone,
  .club-benefit-showcase.is-health .club-benefit-phone,
  .club-benefit-showcase.is-favorites .club-benefit-phone,
  .club-benefit-showcase.is-merchant .club-benefit-phone {
    max-width: min(94vw, 430px);
  }
}
