/* Easy Bundle homepage — bundlex.io-inspired layout (not protection two-column) */

body.home,
body.front-page {
  --bx-space-section: 72px;
  --bx-space-block: 32px;
  --bx-space-stack: 24px;
  background: #fafaf8;
}

/* —— Hero (left copy / right widget) —— */
.bx-hero {
  position: relative;
  padding: calc(var(--pt-header-h) + 40px) 0 40px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(45, 255, 140, 0.22), transparent 58%),
    radial-gradient(780px 480px at 92% 8%, rgba(23, 106, 218, 0.12), transparent 55%),
    radial-gradient(640px 420px at 70% 100%, rgba(45, 255, 140, 0.1), transparent 60%),
    linear-gradient(180deg, #f4fbf7 0%, #fafaf8 70%);
  text-align: left;
}
.bx-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px 48px;
  align-items: center;
  max-width: var(--pt-max);
  margin-inline: auto;
}
.bx-hero__copy {
  min-width: 0;
}
.bx-hero__badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.bx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.bx-badge--shopify {
  background: rgba(149, 191, 255, 0.28);
  color: #1d4f91;
}
.bx-badge--rating {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--pt-line);
  color: var(--pt-ink);
}
.bx-hero__title {
  font-size: clamp(2.35rem, 4.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 12ch;
  margin: 0 0 16px;
  font-style: normal;
  font-weight: 800;
}
.bx-hero__lead {
  font-size: 1.08rem;
  color: var(--pt-ink-soft);
  max-width: 36rem;
  margin: 0 0 var(--bx-space-stack);
  line-height: 1.55;
}
.bx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 0;
}

.btn--ink {
  background: #111;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.btn--ink:hover { background: #000; color: #fff; }
.btn--soft {
  background: #fff;
  color: var(--pt-ink);
  border: 1px solid rgba(16, 32, 22, 0.12);
  border-radius: 999px;
}
.btn--soft:hover {
  border-color: rgba(16, 32, 22, 0.28);
  transform: translateY(-1px);
}

/* Hero widget — same quantity UI as /demo/ */
.bx-hero-widget {
  --fill: #0e8450;
  --badge: #db3918;
  --badge-ink: #fff;
  width: 100%;
  max-width: 440px;
  margin: 0 0 0 auto;
  text-align: left;
  justify-self: end;
}
.bx-hero-widget .bxd-colors {
  margin-bottom: 12px;
  justify-content: flex-start;
}
.bx-hero-widget .bxd-widget {
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(16, 40, 24, 0.1),
    0 2px 8px rgba(16, 40, 24, 0.04);
}
.bx-hero-widget__hint {
  margin: 12px 0 0;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
}
.bx-hero-widget__hint a {
  color: var(--pt-ink-soft);
  text-decoration: none;
}
.bx-hero-widget__hint a:hover {
  color: var(--pt-ink);
}

.bx-home-qv {
  box-shadow: 0 12px 32px rgba(16, 40, 24, 0.06);
}
.bx-setup__preview .bxd-widget {
  margin: 0;
}

/* —— Logo strip —— */
.bx-logos {
  padding: 36px 0 28px;
  text-align: center;
  border-bottom: 1px solid var(--pt-line);
  background: #fff;
}
.bx-logos__label {
  margin: 0 0 18px;
  color: var(--pt-muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.bx-logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bx-logos__row li {
  font-family: var(--pt-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: rgba(16, 32, 22, 0.38);
}

/* —— Sections —— */
.bx-section {
  padding: var(--bx-space-section) 0;
  background: #fff;
}
.bx-section--muted { background: #f6f8f6; }
.bx-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--bx-space-block);
}
.bx-section__head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.bx-section__head p {
  margin: 0;
  color: var(--pt-ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}
.bx-section__action {
  text-align: center;
  margin-top: var(--bx-space-block);
}

.bx-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.bx-feature {
  display: block;
  padding: 20px;
  border-radius: 20px;
  background: #fafaf8;
  border: 1px solid transparent;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
  color: inherit;
  text-decoration: none;
}
.bx-feature:hover {
  background: #fff;
  border-color: rgba(16, 32, 22, 0.1);
  box-shadow: var(--pt-shadow-sm);
  transform: translateY(-2px);
}
.bx-feature__icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(45, 255, 140, 0.18);
  color: #0f7f43;
  margin-bottom: 14px;
}
.bx-feature__icon svg {
  display: block;
  flex-shrink: 0;
}
.bx-feature h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.bx-feature p {
  margin: 0;
  color: var(--pt-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* —— Setup —— */
.bx-setup {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}
.bx-setup--reverse {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.bx-setup__copy h3 {
  font-size: 1.45rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.bx-setup__copy p {
  color: var(--pt-ink-soft);
  line-height: 1.6;
}
.bx-text-link {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 700;
  color: var(--pt-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bx-setup__panel {
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--pt-shadow-sm);
}
.bx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.bx-tab {
  border: 1px solid var(--pt-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--pt-ink-soft);
}
.bx-tab.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}
.bx-mini-widget {
  border-radius: 16px;
  background: #f7faf7;
  padding: 16px;
}
.bx-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--pt-line);
  font-weight: 600;
  font-size: 0.9rem;
}
.bx-mini-row.is-on {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}
.bx-mini-row em { font-style: normal; font-weight: 800; }
.bx-mini-gift {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  margin-bottom: 10px;
}
.bx-mini-gift img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.bx-progress {
  height: 8px;
  border-radius: 999px;
  background: #e5ebe6;
  overflow: hidden;
}
.bx-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2dff8c, #1ad46e);
}
.bx-setup__panel .bx-swatches {
  margin: 0 0 14px;
}
.bx-swatches {
  display: flex;
  gap: 10px;
  margin: 0;
}
.bx-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--sw);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
}
.bx-swatch.is-active {
  box-shadow: 0 0 0 2px #111;
}

/* —— Analytics —— */
.bx-analytics {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.bx-analytics__copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.bx-analytics__copy p {
  color: var(--pt-ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}
.bx-dash {
  background: #0b1210;
  color: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--pt-shadow);
}
.bx-dash__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.bx-dash__stats strong {
  display: block;
  font-size: 1.35rem;
  color: #2dff8c;
}
.bx-dash__stats span {
  font-size: 0.78rem;
  opacity: 0.72;
}
.bx-dash__funnel {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.bx-dash__funnel p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  opacity: 0.9;
}
.bx-dash__funnel em {
  font-style: normal;
  font-weight: 800;
  color: #2dff8c;
  margin-left: 6px;
}
.bx-funnel-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
  overflow: hidden;
}
.bx-funnel-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dff8c, #1ad46e);
}
.bx-dash__funnel ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  opacity: 0.8;
}
.bx-dash__funnel strong { display: block; font-size: 0.95rem; opacity: 1; color: #fff; }
.bx-dash__top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}
.bx-dash__top img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.bx-dash__top small {
  display: block;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 2px;
}

/* —— Quotes —— */
.bx-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.bx-quote {
  margin: 0;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--pt-line);
  box-shadow: var(--pt-shadow-sm);
}
.bx-quote p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--pt-ink);
}
.bx-quote footer {
  font-size: 0.88rem;
  color: var(--pt-muted);
}
.bx-quote strong { color: var(--pt-ink); }

.bx-faq { max-width: 760px; }

/* —— Bottom CTA —— */
.bx-cta {
  padding: 64px 0 80px;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(45, 255, 140, 0.18), transparent 65%),
    #0b1210;
  color: #fff;
  text-align: center;
}
.bx-cta__inner { max-width: 640px; margin-inline: auto; }
.bx-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.bx-cta p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 var(--bx-space-stack);
  font-size: 1.05rem;
}
.bx-cta .btn--soft {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.bx-cta .btn--soft:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.bx-cta .bx-hero__actions { margin-bottom: 0; }

/* FOUC */
.bx-hero .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  body.home,
  body.front-page {
    --bx-space-section: 56px;
    --bx-space-block: 28px;
  }
  .bx-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .bx-hero-widget {
    margin: 0 auto;
    justify-self: center;
  }
  .bx-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-setup,
  .bx-setup--reverse,
  .bx-analytics { grid-template-columns: 1fr; }
  .bx-quotes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.home,
  body.front-page {
    --bx-space-section: 48px;
    --bx-space-block: 24px;
    --bx-space-stack: 20px;
  }
  .bx-hero { padding: calc(var(--pt-header-h) + 24px) 0 24px; }
  .bx-hero__title { max-width: none; }
  .bx-hero__actions .btn { flex: 1 1 100%; }
  .bx-hero-widget__hint { text-align: center; }
  .bx-feature-grid { grid-template-columns: 1fr; }
  .bx-cta { padding: 48px 0 64px; }
  .bx-dash__stats,
  .bx-dash__funnel ul { grid-template-columns: 1fr; }
  .bx-logos__row { gap: 16px 24px; }
}
