/* USP — form mock, generated funnel, compare & sell-types (WP + AFH) */

/* --- WarriorPlus / JVZoo form & generated mocks --- */
.wp-flow-mock {
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
}

.wp-flow-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.82rem;
}

.wp-flow-form-head strong {
  color: #0f172a;
}

.wp-flow-form-head span {
  color: #64748b;
  font-size: 0.72rem;
}

.wp-flow-mock--form {
  padding: 1rem;
}

.wp-flow-field--label {
  height: auto;
  min-height: 0;
  margin-bottom: 0.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wp-flow-field--area {
  min-height: 3rem;
  align-items: flex-start;
  padding-top: 0.65rem;
  line-height: 1.4;
}

.wp-flow-mock--generated {
  padding: 1rem;
}

.wp-flow-generated-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wp-flow-generated-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #ddd6fe;
  background: #faf5ff;
  color: #4c1d95;
  font-size: 0.68rem;
  font-weight: 700;
}

/* Compare block */
.wp-usp-compare-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .wp-usp-compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.wp-usp-compare-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.wp-usp-compare-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.wp-usp-compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-usp-compare-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
}

.wp-usp-compare-card--bad {
  border-color: #fecaca;
  background: #fef2f2;
}

.wp-usp-compare-card--bad li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 800;
}

.wp-usp-compare-card--good {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.wp-usp-compare-card--good li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #15803d;
  font-weight: 800;
}

/* Sell types — legacy chips (unused on funnel homepages) */
.wp-usp-sell-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.wp-usp-sell-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* --- Afripay Funnels (dark theme) --- */
body.afh-premium .afh-flow-mock {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #081120;
  overflow: hidden;
}

body.afh-premium .afh-flow-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

body.afh-premium .afh-flow-form-head span {
  color: var(--afh-muted);
  font-size: 12px;
  font-weight: 500;
}

body.afh-premium .afh-flow-mock--form {
  padding: 18px;
}

body.afh-premium .afh-flow-field--label {
  height: auto;
  min-height: 0;
  margin-bottom: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.afh-premium .afh-flow-field--area {
  min-height: 52px;
  align-items: flex-start;
  padding-top: 12px;
  line-height: 1.45;
}

body.afh-premium .afh-flow-mock--generated {
  padding: 18px;
}

body.afh-premium .afh-flow-generated-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.afh-premium .afh-flow-generated-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
  font-size: 12px;
  font-weight: 700;
}

/* Sell-types — fully 3D card grid (afripayfunnels + easyfunnel + salesfunnel) */
.af-usp-sell-types {
  --af-sell-tilt: 10deg;
  position: relative;
  padding: clamp(56px, 8vw, 80px) 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(34, 197, 94, 0.12), transparent 62%),
    #050a12;
}

.af-usp-sell-types::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 15%, transparent 78%);
}

.af-usp-sell-types__inner,
body.afh-premium .afh-usp-sell-types .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.af-usp-sell-types__title,
body.afh-premium .afh-usp-sell-types .afh-section-title {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 12px;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f8fafc;
  text-align: center;
}

.af-usp-sell-types__sub,
body.afh-premium .afh-usp-sell-types .afh-section-sub {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
  color: #94a3b8;
  text-align: center;
}

.af-usp-sell-stage {
  position: absolute;
  inset: 8% 4% auto;
  height: 58%;
  pointer-events: none;
  background: radial-gradient(ellipse 72% 58% at 50% 42%, rgba(34, 197, 94, 0.18), transparent 72%);
  filter: blur(4px);
}

.af-usp-sell-grid-wrap {
  width: 100%;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  perspective: 1400px;
  perspective-origin: 50% 35%;
}

.af-usp-sell-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
  transform-style: preserve-3d;
}

.af-usp-sell-card {
  --card-tilt-y: 0deg;
  --card-lift: 0px;
  position: relative;
  min-width: 0;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--af-sell-tilt)) rotateY(var(--card-tilt-y)) translateZ(var(--card-lift));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.af-usp-sell-card:nth-child(1) { --card-tilt-y: -3deg; }
.af-usp-sell-card:nth-child(2) { --card-tilt-y: -2deg; }
.af-usp-sell-card:nth-child(3) { --card-tilt-y: -1deg; }
.af-usp-sell-card:nth-child(4) { --card-tilt-y: 0deg; }
.af-usp-sell-card:nth-child(5) { --card-tilt-y: 1deg; }
.af-usp-sell-card:nth-child(6) { --card-tilt-y: 2deg; }
.af-usp-sell-card:nth-child(7) { --card-tilt-y: 3deg; }

.af-usp-sell-card__shadow {
  position: absolute;
  inset: 18px 6px -14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.85));
  filter: blur(14px);
  opacity: 0.8;
  pointer-events: none;
  transform: translateZ(-18px) rotateX(90deg) scaleY(0.55);
  transform-origin: center top;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.af-usp-sell-card__face--back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #0a1628 0%, #020617 100%);
  transform: translateZ(-8px);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
  pointer-events: none;
}

.af-usp-sell-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 136px;
  padding: 18px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 28%, rgba(8, 17, 32, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -16px 24px rgba(2, 6, 23, 0.35),
    0 18px 34px rgba(2, 6, 23, 0.48),
    0 0 0 1px rgba(34, 197, 94, 0.1);
  transform: translateZ(14px);
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.af-usp-sell-card__body::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.14) 50%, transparent 58%);
  transform: translateX(-120%) skewX(-12deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.af-usp-sell-card__icon-glow {
  position: absolute;
  top: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.45) 0%, transparent 70%);
  filter: blur(8px);
  transform: translateZ(8px);
  pointer-events: none;
}

.af-usp-sell-card__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  font-size: 1.45rem;
  line-height: 1;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.32), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(34, 197, 94, 0.42);
  box-shadow:
    0 10px 22px rgba(34, 197, 94, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -6px 12px rgba(2, 6, 23, 0.35);
  transform: translateZ(28px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.af-usp-sell-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-align: center;
  overflow-wrap: break-word;
  word-break: normal;
  transform: translateZ(20px);
}

.af-usp-sell-card:hover,
.af-usp-sell-card:focus-within {
  --af-sell-tilt: 4deg;
  --card-lift: 10px;
}

.af-usp-sell-card:hover .af-usp-sell-card__body,
.af-usp-sell-card:focus-within .af-usp-sell-card__body {
  transform: translateZ(26px);
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -12px 20px rgba(2, 6, 23, 0.25),
    0 28px 48px rgba(2, 6, 23, 0.55),
    0 0 36px rgba(34, 197, 94, 0.2);
}

.af-usp-sell-card:hover .af-usp-sell-card__body::after,
.af-usp-sell-card:focus-within .af-usp-sell-card__body::after {
  transform: translateX(120%) skewX(-12deg);
}

.af-usp-sell-card:hover .af-usp-sell-card__icon,
.af-usp-sell-card:focus-within .af-usp-sell-card__icon {
  transform: translateZ(38px) scale(1.06);
  box-shadow:
    0 14px 28px rgba(34, 197, 94, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.af-usp-sell-card:hover .af-usp-sell-card__shadow,
.af-usp-sell-card:focus-within .af-usp-sell-card__shadow {
  opacity: 0.95;
  transform: translateZ(-24px) rotateX(90deg) scaleY(0.7);
}

body.wp-home .wp-band--sell-types {
  background: transparent;
  border: none;
}

body.wp-home .af-usp-sell-types .wp-section__title,
body.wp-home .af-usp-sell-types .af-usp-sell-types__title {
  color: #f8fafc !important;
}

body.wp-home .af-usp-sell-types .wp-section__lead,
body.wp-home .af-usp-sell-types .af-usp-sell-types__sub {
  color: #cbd5e1 !important;
}

/* Tablet: 4 columns */
@media (max-width: 1100px) and (min-width: 769px) {
  .af-usp-sell-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .af-usp-sell-card__title {
    font-size: 0.8rem;
  }
}

/* Mobile: 2-column grid */
@media (max-width: 768px) {
  .af-usp-sell-types {
    --af-sell-tilt: 6deg;
    padding: 48px 0;
  }

  .af-usp-sell-types__sub,
  body.afh-premium .afh-usp-sell-types .afh-section-sub {
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .af-usp-sell-grid-wrap {
    perspective: 900px;
  }

  .af-usp-sell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .af-usp-sell-card {
    --card-tilt-y: 0deg !important;
  }

  .af-usp-sell-card__body {
    min-height: 116px;
    padding: 16px 12px;
    gap: 10px;
  }

  .af-usp-sell-card__icon {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }

  .af-usp-sell-card__title {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .af-usp-sell-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 280px);
  }
}

@media (max-width: 400px) {
  .af-usp-sell-grid {
    gap: 10px;
  }

  .af-usp-sell-card__body {
    min-height: 108px;
    padding: 14px 10px;
  }

  .af-usp-sell-card__title {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-usp-sell-card,
  .af-usp-sell-card__body,
  .af-usp-sell-card__icon,
  .af-usp-sell-card__body::after {
    transition: none;
  }
}
