/**
 * NFC hub — conversion-first hero, proof strip, product catalog
 */
:root {
  --nfc-ink: #0b1220;
  --nfc-muted: #5c6578;
  --nfc-line: rgba(11, 18, 32, 0.08);
  --nfc-paper: #f8f9fc;
  --nfc-white: #ffffff;
  --nfc-steel: #64748b;
  --nfc-copper: #b87333;
  --nfc-copper-soft: rgba(184, 115, 51, 0.12);
  --nfc-radius: 20px;
  --nfc-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ---------- Hero ---------- */
.nfc-hub-hero {
  position: relative;
  overflow: hidden;
  color: var(--nfc-ink);
  font-family: var(--nfc-font);
  background: #f5f5f7;
}

.nfc-hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.nfc-hub-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 76rem;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 2.75rem;
}

@media (min-width: 1024px) {
  .nfc-hub-hero__inner {
    padding: 4.5rem 1.5rem 4rem;
  }
}

.nfc-hub-hero__copy {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .nfc-hub-hero__copy {
    text-align: center;
  }
}

.nfc-hub-hero__brand {
  margin: 0 0 1.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nfc-muted);
}

.nfc-hub-hero__brand strong {
  color: var(--nfc-ink);
  font-weight: 800;
}

.nfc-hub-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 8.6vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.14;
  color: #1d1d1f;
}

.nfc-hub-hero__title-line {
  font-weight: 600;
  color: #1d1d1f;
  -webkit-text-fill-color: #1d1d1f;
}

.nfc-hub-hero__title-accent {
  display: block;
  margin-top: 0.06em;
  font-weight: 600;
  letter-spacing: -0.042em;
  background-image: linear-gradient(
    105deg,
    #475569 0%,
    #1d1d1f 22%,
    #0066cc 58%,
    #7dd3fc 82%,
    #64748b 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: nfcTitleSheen 1.8s linear infinite alternate;
}

.nfc-hub-hero__br-m {
  display: block;
}

@keyframes nfcTitleSheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes nfcLogoPulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.82; }
}

@keyframes nfcHairline {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(430%, 0, 0); }
}

@keyframes nfcCardSheen {
  0%, 68% { transform: skewX(-18deg) translate3d(-120%, 0, 0); }
  100% { transform: skewX(-18deg) translate3d(420%, 0, 0); }
}

@media (min-width: 768px) {
  .nfc-hub-hero__title {
    font-size: clamp(2.6rem, 4.2vw + 1.1rem, 3.75rem);
    line-height: 1.08;
  }

  .nfc-hub-hero__title-line,
  .nfc-hub-hero__title-accent {
    display: block;
  }

  .nfc-hub-hero__br-m {
    display: none;
  }
}

@media (min-width: 1024px) {
  .nfc-hub-hero__title {
    font-size: 3.55rem;
    line-height: 1.06;
  }
}

.nfc-hub-hero__lede {
  margin: 0 auto 1.9rem;
  max-width: 39rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--nfc-muted);
}

@media (min-width: 1024px) {
  .nfc-hub-hero__lede {
    margin-inline: auto;
    margin-bottom: 2rem;
  }
}

.nfc-hub-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

@media (min-width: 480px) {
  .nfc-hub-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .nfc-hub-hero__actions {
    justify-content: center;
  }
}

.nfc-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-family: var(--nfc-font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nfc-hub-btn--primary {
  background-image: linear-gradient(115deg, #111827 0%, #1e3a5f 38%, #0066cc 62%, #111827 100%);
  background-size: 220% 100%;
  color: #fff;
  box-shadow:
    0 12px 28px -8px rgba(11, 18, 32, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: nfcTitleSheen 4s linear infinite alternate;
}

.nfc-hub-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(11, 18, 32, 0.5);
}

.nfc-hub-btn--secondary {
  background: var(--nfc-white);
  color: var(--nfc-ink);
  border: 1px solid var(--nfc-line);
}

.nfc-hub-btn--secondary:hover {
  border-color: rgba(11, 18, 32, 0.18);
}

.nfc-hub-hero__visual {
  position: relative;
  margin: 3rem auto 0;
}

.nfc-hub-hero__visual .ab-hero-promo-stage {
  max-width: 58rem;
}

@media (max-width: 767px) {
  .nfc-hub-hero__visual {
    margin-top: 2.25rem;
  }
}

/* Hero motion */
.nfc-hub-hero__brand { animation: nfcHubFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.nfc-hub-hero__title { animation: nfcHubFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
.nfc-hub-hero__lede { animation: nfcHubFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.nfc-hub-hero__actions { animation: nfcHubFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
.nfc-hub-hero__visual { animation: nfcHubFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }

@keyframes nfcHubFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Compact proof strip ---------- */
.nfc-proof-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f6fa 0%, var(--nfc-paper) 100%);
  padding: 1.25rem 1rem 1.5rem;
}

.nfc-proof-strip::after {
  content: '';
  position: absolute;
  left: -30%;
  bottom: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.55), transparent);
  animation: nfcHairline 8s linear infinite;
}

.nfc-proof-strip__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nfc-proof-strip__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }
}

.nfc-proof-strip__label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nfc-muted);
  white-space: nowrap;
}

.nfc-proof-strip__logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .nfc-proof-strip__logos {
    grid-template-columns: repeat(6, 1fr);
    max-width: none;
    flex: 1;
  }
}

.nfc-proof-strip__logos img {
  max-height: 2rem;
  width: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease;
  animation: nfcLogoPulse 5.5s ease-in-out infinite;
}

.nfc-proof-strip__logos img:nth-child(2) { animation-delay: 0.7s; }
.nfc-proof-strip__logos img:nth-child(3) { animation-delay: 1.4s; }
.nfc-proof-strip__logos img:nth-child(4) { animation-delay: 2.1s; }
.nfc-proof-strip__logos img:nth-child(5) { animation-delay: 2.8s; }
.nfc-proof-strip__logos img:nth-child(6) { animation-delay: 3.5s; }

@media (min-width: 768px) {
  .nfc-proof-strip__logos img {
    max-height: 2.25rem;
  }
}

.nfc-proof-strip__logos img:hover {
  animation: none;
  opacity: 1;
  filter: grayscale(0%);
}

/* ---------- Catalog section ---------- */
.nfc-catalog {
  position: relative;
  padding: 3rem 1.25rem 3rem;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(226, 232, 240, 0.4), transparent),
    var(--nfc-paper);
}

.nfc-catalog__head {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.nfc-catalog__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nfc-muted);
}

.nfc-catalog__title {
  margin: 0 0 0.65rem;
  font-family: var(--nfc-font);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--nfc-ink);
}

.nfc-catalog__sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--nfc-muted);
}

.nfc-catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .nfc-catalog__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Product card */
.nfc-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--nfc-white);
  border: 1px solid var(--nfc-line);
  border-radius: var(--nfc-radius);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.nfc-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(11, 18, 32, 0.14);
}

.nfc-cat-card--waitlist {
  opacity: 0.92;
}

.nfc-cat-card--waitlist:hover {
  transform: translateY(-2px);
}

.nfc-cat-card__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  padding: 1.5rem 1rem 1rem;
  background:
    radial-gradient(80% 70% at 50% 30%, rgba(255, 255, 255, 0.9), transparent),
    linear-gradient(165deg, #eef1f6 0%, #e2e8f0 100%);
  overflow: hidden;
}

.nfc-cat-card--copper .nfc-cat-card__stage {
  background:
    radial-gradient(80% 70% at 50% 30%, rgba(255, 248, 240, 0.95), transparent),
    linear-gradient(165deg, #f5ebe0 0%, #e8d5c4 100%);
}

.nfc-cat-card--silver .nfc-cat-card__stage {
  background:
    radial-gradient(80% 70% at 50% 30%, rgba(255, 255, 255, 0.95), transparent),
    linear-gradient(165deg, #f1f5f9 0%, #cbd5e1 100%);
}

.nfc-cat-card__stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg) translate3d(-120%, 0, 0);
  animation: nfcCardSheen 7.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.nfc-cat-card--copper .nfc-cat-card__stage::before {
  animation-delay: 2.4s;
}

.nfc-cat-card--silver .nfc-cat-card__stage::before {
  animation-delay: 4.8s;
}

.nfc-cat-card__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nfc-cat-card:hover .nfc-cat-card__stage::after {
  opacity: 1;
}

.nfc-cat-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--nfc-ink);
  color: #fff;
}

.nfc-cat-card__badge--soon {
  background: var(--nfc-muted);
}

.nfc-cat-card__img-link,
.nfc-cat-card__img-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  outline: none;
}

.nfc-cat-card__img-link:focus-visible,
.nfc-cat-card__img-btn:focus-visible {
  outline: 2px solid var(--nfc-ink);
  outline-offset: 4px;
  border-radius: 8px;
}

.nfc-cat-card__img {
  display: block;
  width: auto;
  max-width: min(100%, 16rem);
  max-height: 9.5rem;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 16px 24px rgba(11, 18, 32, 0.12));
}

.nfc-cat-card:hover .nfc-cat-card__img {
  transform: translateY(-6px) scale(1.02);
}

.nfc-cat-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.35rem;
  text-align: left;
}

.nfc-cat-card__title {
  margin: 0 0 0.35rem;
  font-family: var(--nfc-font);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nfc-ink);
}

.nfc-cat-card__title a,
.nfc-cat-card__title button {
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.nfc-cat-card__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: var(--nfc-muted);
}

.nfc-cat-card__stars {
  color: #d97706;
  letter-spacing: 0.02em;
}

.nfc-cat-card__desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--nfc-muted);
  flex: 1;
}

.nfc-cat-card__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.nfc-cat-card__price {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--nfc-ink);
}

.nfc-price-was {
  font-weight: 650;
  color: #94a3b8;
  text-decoration: line-through;
}

.nfc-price-now {
  font-weight: 800;
  color: var(--nfc-ink);
}

.nfc-price-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 102, 255, 0.08);
  color: #0066ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nfc-hub-btn .nfc-price-was,
.nfc-cat-card__btn .nfc-price-was {
  font-size: 0.85em;
  font-weight: 650;
}

.nfc-hub-btn .nfc-price-now,
.nfc-cat-card__btn .nfc-price-now {
  font-weight: 800;
}

.nfc-cat-card__ship {
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
}

.nfc-cat-card__cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nfc-cat-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-family: var(--nfc-font);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nfc-cat-card__btn--primary {
  background: var(--nfc-ink);
  color: #fff;
}

.nfc-cat-card__btn--primary:hover {
  background: #1a2332;
}

.nfc-cat-card--copper .nfc-cat-card__btn--primary {
  background: linear-gradient(135deg, #9a5a28 0%, var(--nfc-copper) 100%);
}

.nfc-cat-card__btn--outline {
  background: transparent;
  color: var(--nfc-ink);
  border: 2px solid var(--nfc-ink);
}

.nfc-cat-card__btn--outline:hover {
  background: var(--nfc-ink);
  color: #fff;
}

.nfc-cat-card__details {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nfc-muted);
  text-decoration: none;
}

.nfc-cat-card__details:hover {
  color: var(--nfc-ink);
}

/* Catalog scroll reveal stagger */
.nfc-catalog__grid .nfc-cat-card:nth-child(1) { transition-delay: 0ms; }
.nfc-catalog__grid .nfc-cat-card:nth-child(2) { transition-delay: 60ms; }
.nfc-catalog__grid .nfc-cat-card:nth-child(3) { transition-delay: 120ms; }

/* ---------- Tap demo (moved below catalog) ---------- */
.nfc-tap-proof {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}

.nfc-tap-proof__frame {
  max-width: 44rem;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
}

.nfc-tap-proof__img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgba(0, 0, 0, 0.45) 88%, rgba(0, 0, 0, 0) 99%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgba(0, 0, 0, 0.45) 88%, rgba(0, 0, 0, 0) 99%);
}

.nfc-tap-proof__caption {
  margin: 1.75rem auto 0;
  max-width: 32rem;
  text-align: center;
  font-family: var(--nfc-font);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--nfc-ink);
}

.nfc-tap-proof__caption span {
  color: var(--nfc-steel);
}

/* Page flow */
.nfc-products-page-flow {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 1024px) {
  .nfc-products-page-flow #nfc-checkout-trust {
    order: 2;
  }
}

#all-products {
  display: block !important;
  width: 100%;
}

/* Scroll anchor */
#the-collection {
  scroll-margin-top: 6rem;
}

.section-divider {
  max-width: 1100px;
  height: 1px;
  margin: 16px auto 28px;
  background: linear-gradient(to right, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0));
}

@media (max-width: 768px) {
  .section-divider {
    margin: 8px auto 20px;
  }
}

/* Override legacy main grid rules elsewhere on this page */
body.ab-dot-nfc main.nfc-catalog {
  display: block !important;
  grid-template-columns: none !important;
  padding: 3rem 1.25rem 3rem !important;
}

body.ab-dot-nfc .ab-free-plus__card--plus .ab-free-plus__cta:not(.ab-free-plus__cta--ghost) {
  background-image: linear-gradient(115deg, #0f172a 0%, #1e3a5f 40%, #0066cc 62%, #0f172a 100%);
  background-size: 220% 100%;
  animation: nfcTitleSheen 4.5s linear infinite alternate;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nfc-hub-hero__brand,
  .nfc-hub-hero__title,
  .nfc-hub-hero__title-accent,
  .nfc-hub-hero__lede,
  .nfc-hub-hero__actions,
  .nfc-hub-hero__visual,
  .nfc-hub-btn,
  .nfc-hub-btn--primary,
  .nfc-proof-strip::after,
  .nfc-proof-strip__logos img,
  .nfc-cat-card,
  .nfc-cat-card__img,
  .nfc-cat-card__stage::before,
  .nfc-cat-card__stage::after,
  body.ab-dot-nfc .ab-free-plus__card--plus .ab-free-plus__cta {
    animation: none !important;
    transition: none !important;
  }

  .nfc-hub-hero__title-accent {
    background: none;
    color: #64748b;
    -webkit-text-fill-color: #64748b;
  }

  .nfc-hub-btn:hover,
  .nfc-hub-btn--primary:hover {
    transform: none;
  }

  .nfc-cat-card:hover,
  .nfc-cat-card--waitlist:hover {
    transform: none;
  }

  .nfc-cat-card:hover .nfc-cat-card__img,
  .nfc-cat-card:hover .nfc-cat-card__stage::after {
    transform: none;
    opacity: 0;
  }
}
