/* ---------------------------------------------------------------------------
   Bazaar Booster landing page — page-level overrides for the reused hero,
   feature, plan-cards and feature-addition sections.

   Loaded by resources/views/pages/landing/bazaar-booster.blade.php.
   Plain CSS — no Tailwind @apply here.
   Bump the ?v on that <link> whenever this file changes.
--------------------------------------------------------------------------- */

/* ---- hero + closing: the bazaar illustration is the section background
   (x-section bg_img), washed to white behind the copy on the left ---- */
section.bb-backdrop {
  isolation: isolate;
  background-color: var(--color-white);
  background-repeat: no-repeat;
}

section.bb-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--color-white) 0%, rgb(255 255 255 / 0) 15%),
    linear-gradient(90deg, var(--color-white) 0%, var(--color-white) 24%, rgb(255 255 255 / 0.94) 40%, rgb(255 255 255 / 0.38) 58%, transparent 72%);
  pointer-events: none;
}

section.bb-backdrop .kicker {
  color: var(--color-blue-dark);
}

@media (min-width: 998px) {
  section.bb-backdrop {
    display: flex;
    align-items: center;
    min-height: 620px;
    background-size: 110% auto;
    background-position: calc(-5vw + clamp(95px, 9vw, 195px)) center;
  }

  section.bb-backdrop > div {
    width: 100%;
  }
}

/* Below lg the illustration sits above the copy as a band --bb-art-h tall,
   fully washed to white just before the copy starts so the two never overlap. */
@media (max-width: 997px) {
  section.bb-backdrop {
    --bb-art-h: 440px;
    padding-top: calc(var(--bb-art-h) - 8px);
    background-size: auto var(--bb-art-h);
    background-position: 80% 0;
  }

  section.bb-backdrop::after {
    background: linear-gradient(transparent 0, transparent calc(var(--bb-art-h) - 150px), var(--color-white) calc(var(--bb-art-h) - 10px));
  }

  section.bb-backdrop > div {
    position: relative;
  }
}

@media (max-width: 767px) {
  section.bb-backdrop {
    --bb-art-h: 340px;
  }
}

/* ---- bazaar logo strip (media-logo): small grey logos in one row that
   fades out at both ends ---- */
/* Doubled class to beat .section-bg-white + .section-bg-white, which zeroes
   the top padding of a white section that follows another. */
section.bb-partners.bb-partners {
  padding: 82px 0 62px;
}

section.bb-partners > p {
  margin-bottom: 34px;
  color: rgb(52 64 84);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

section.bb-partners > div {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

section.bb-partners .sliding-text {
  grid-template-rows: none;
  gap: 34px;
}

section.bb-partners li {
  display: grid;
  place-items: center;
  width: 142px;
  min-height: 72px;
}

section.bb-partners li img {
  width: 100%;
  max-width: 112px;
  height: 52px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
}

/* These two files carry extra canvas around the mark. */
section.bb-partners li img[src$="kedai.webp"] {
  transform: scale(2.05);
}

section.bb-partners li img[src$="riuh.webp"] {
  transform: scale(0.82);
}

@media (max-width: 767px) {
  section.bb-partners.bb-partners {
    padding: 38px 0 44px;
  }

  section.bb-partners > p {
    max-width: 310px;
    margin-bottom: 22px;
    font-size: 16px;
  }

  section.bb-partners .sliding-text {
    gap: 32px;
  }

  section.bb-partners li {
    width: 116px;
    min-height: 58px;
  }

  section.bb-partners li img {
    max-width: 95px;
    height: 43px;
  }
}

/* ---- plans (plan-cards): the 3-month card is the solid blue one, the
   12-month card is white inside a hand-drawn ink outline ---- */
section.bb-plans {
  --bb-plan-blue: rgb(29 74 163);
  --bb-plan-ink: rgb(22 33 61);
  --bb-plan-line: rgb(181 202 242);
  --bb-plan-label-bg: rgb(238 244 255);
  --bb-plan-label-line: rgb(215 228 251);
  --bb-plan-muted: rgb(100 116 143);
  --bb-plan-note: rgb(73 101 140);
  --bb-plan-divider: rgb(220 228 239);
}

section.bb-plans h2.text-blue {
  color: var(--bb-plan-ink);
}

section.bb-plans .pc-grid {
  max-width: 960px;
}

@media screen and (min-width: 768px) {
  section.bb-plans .pc-grid {
    gap: 24px;
  }
}

section.bb-plans .pc-card {
  position: relative;
  border: 1.5px solid var(--bb-plan-line);
  border-radius: 20px;
  background: var(--color-white);
  color: var(--bb-plan-ink);
  box-shadow: none;
}

section.bb-plans .pc-card--highlight {
  border-color: var(--bb-plan-blue);
  background: var(--bb-plan-blue);
  color: var(--color-white);
}

/* The outline art is drawn past the card edge, so the card stops clipping. */
section.bb-plans .pc-card:not(.pc-card--highlight) {
  overflow: visible;
  border-color: transparent;
}

section.bb-plans .pc-card:not(.pc-card--highlight)::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 2;
  border: 28px solid transparent;
  border-image: url("/assets/images/landing/bazaar-booster/plan-outline.webp") 96 / 28px / 0 stretch;
  pointer-events: none;
}

section.bb-plans .pc-ribbon {
  align-self: flex-start;
  margin: 28px 28px 0;
  padding: 5px 12px;
  border: 1px solid var(--bb-plan-label-line);
  border-radius: 999px;
  background: var(--bb-plan-label-bg);
  color: var(--bb-plan-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

section.bb-plans .pc-card--highlight .pc-ribbon {
  border-color: rgb(255 255 255 / 0.4);
  background: rgb(255 255 255 / 0.08);
  color: var(--color-white);
}

section.bb-plans .pc-body {
  padding: 16px 28px 32px;
}

section.bb-plans .pc-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

section.bb-plans .pc-badge {
  margin: 0;
  padding: 5px 11px;
  border: 1px solid var(--bb-plan-line);
  background: rgb(245 248 255);
  color: var(--bb-plan-blue);
  font-size: 12px;
  letter-spacing: normal;
}

section.bb-plans .pc-card--highlight .pc-badge {
  border-color: var(--color-yellow);
  background: var(--color-yellow);
  color: var(--bb-plan-ink);
}

section.bb-plans .pc-price {
  gap: 10px;
  margin-bottom: 20px;
  color: var(--bb-plan-blue);
  line-height: 1.05;
}

section.bb-plans .pc-card--highlight .pc-price {
  color: var(--color-white);
}

section.bb-plans .pc-price__currency {
  margin-right: -7px;
  font-size: 20px;
}

section.bb-plans .pc-price__amount {
  font-size: 44px;
  letter-spacing: -0.045em;
}

section.bb-plans .pc-price__was {
  color: var(--bb-plan-muted);
  font-size: 17px;
  font-weight: 500;
  text-decoration-thickness: 2px;
  opacity: 1;
}

section.bb-plans .pc-card--highlight .pc-price__was {
  color: rgb(213 227 255);
}

section.bb-plans .pc-cta .btn,
section.bb-plans .pc-card:not(.pc-card--highlight) .pc-cta .btn.btn-primary {
  min-height: 48px;
  border: 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
}

section.bb-plans .pc-card:not(.pc-card--highlight) .pc-cta .btn.btn-primary:hover {
  background: var(--color-primary-dark);
}

section.bb-plans .pc-card--highlight .pc-cta .btn {
  background: var(--color-yellow);
  color: var(--bb-plan-ink);
}

section.bb-plans .pc-note {
  margin: 8px 0 28px;
  color: var(--bb-plan-note);
  font-size: 13px;
  font-weight: 500;
}

section.bb-plans .pc-card--highlight .pc-note {
  color: rgb(232 239 255);
}

/* "Best for" reads as a plain heading here, not the outlined pill. */
section.bb-plans .pc-pill,
section.bb-plans .pc-card--highlight .pc-pill {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

section.bb-plans .pc-list li,
section.bb-plans .pc-list--features li {
  margin-bottom: 10px;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.5;
}

section.bb-plans .pc-list li::before {
  top: 0.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23155ce4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.2 5.2L20 6.5'/%3E%3C/svg%3E");
}

section.bb-plans .pc-card--highlight .pc-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.2 5.2L20 6.5'/%3E%3C/svg%3E");
}

section.bb-plans .pc-list--intro {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom-color: var(--bb-plan-divider);
}

section.bb-plans .pc-card--highlight .pc-list--intro {
  border-bottom-color: rgb(255 255 255 / 0.25);
}

/* On phones the cards sit in a scroller, which would clip the outline art
   where it runs above the card. */
@media (max-width: 767px) {
  section.bb-plans .pc-grid {
    padding-top: 14px;
  }
}

@media (max-width: 400px) {
  section.bb-plans .pc-name {
    gap: 8px;
    font-size: clamp(24px, 7vw, 26px);
  }

  section.bb-plans .pc-badge {
    padding: 4px 8px;
    font-size: 10px;
  }
}

/* ---- bonus cards (feature-addition), same treatment as Made in Malaysia ---- */
section.bonus-cards .section-title {
  margin-inline: auto;
  text-align: center;
}

section.bonus-cards .slider-item .rounded-xl {
  border-radius: 1.75rem;
}

section.bonus-cards .slider-item h5 {
  font-weight: 700;
}

section.bonus-cards .slider-item p {
  color: inherit;
}

/* The wide AI artwork spans the row and keeps its own proportions;
   `margin-right: 0` undoes the gap slider.css puts after the last item. */
section.bonus-cards .slider-item:last-child {
  grid-column: 1 / -1;
  max-width: none;
  margin-right: 0;
}

section.bonus-cards .slider-item:last-child .aspect-square {
  aspect-ratio: auto;
}

section.bonus-cards .slider-item:last-child img {
  height: auto;
}

/* x-section prefixes ids with "section-"; the CTAs scroll to these. */
#section-plans,
#section-proof {
  scroll-margin-top: 80px;
}
