/* ---------------------------------------------------------------------------
   Bazaar Booster landing page — page-level overrides for the reused hero,
   media-logo, marquee-text-cta, feature (trial offer and closing) 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;
}

/* On top of hero-kicker-eyebrow: the draft's eyebrow is small tracked caps. */
section.section-hero.bb-backdrop .kicker {
  color: rgb(29 74 163);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1.3;
  text-transform: uppercase;
}

@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;
  }

  section.bb-backdrop .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-right: 0;
  }

  /* The arrow icon carries a small upward nudge for inline text; in this
     centred row it would sit above the label. */
  section.bb-backdrop .btn .icon-text {
    margin: 0 0 0 0.25em;
  }
}

/* ---- 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;
  }
}

/* ---- "Try 14 days free" band (marquee-text-cta) ---- */
section.bb-marquee.bb-marquee {
  padding: 0;
  background: rgb(29 64 136);
  color: var(--color-white);
}

section.bb-marquee .marquee-wrapper {
  color: inherit;
}

section.bb-marquee .header-font-family {
  font-weight: 750;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

section.bb-marquee .rounded-full {
  background: var(--color-yellow);
  color: rgb(21 32 58);
}

/* ---- free-trial offer (feature + trial-media partial): one outlined panel,
   artwork flush to its left edge, copy on the right ---- */
section.bb-trial {
  --bb-trial-ink: rgb(23 35 60);
  --bb-trial-line: rgb(10 94 209);
  padding: 72px 0 80px;
}

section.bb-trial > div {
  overflow: hidden;
  border: 2px solid var(--bb-trial-line);
  border-radius: 24px;
  color: var(--bb-trial-ink);
}

section.bb-trial > div > div:first-child {
  align-self: center;
  padding: 56px 40px;
}

section.bb-trial > div > div:last-child {
  align-self: stretch;
  padding: 0;
}

section.bb-trial h2 {
  margin-bottom: 0;
  color: inherit;
}

section.bb-trial h3 {
  max-width: 520px;
  margin: 24px 0;
  color: inherit;
  font-size: 18px;
  line-height: 1.5;
}

section.bb-trial .bb-trial-highlight {
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}

section.bb-trial ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  color: inherit;
  font-size: 16px;
  list-style: none;
}

section.bb-trial ul li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

section.bb-trial ul li::before {
  content: "✓";
  flex: none;
  color: var(--color-primary);
  font-weight: 800;
}

section.bb-trial .btn {
  min-width: min(100%, 248px);
  justify-content: center;
}

section.bb-trial .bb-trial-media {
  position: relative;
  width: 100%;
}

/* The source art is a wide scene; the counter is cropped out of it and kept
   anchored to the box's bottom-left corner at any size. The box needs a
   definite size (aspect-ratio, not a stretched height) or the cq units in the
   image position resolve to 0. */
section.bb-trial .bb-trial-art {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 762 / 761;
  container-type: size;
}

section.bb-trial .bb-trial-art img {
  position: absolute;
  bottom: -10.5%;
  left: -8.1%;
  display: block;
  width: 220.6%;
  max-width: none;
  height: auto;
  clip-path: inset(14.53% 50.98% 8.55% 3.69%);
  pointer-events: none;
  user-select: none;
}

@supports (width: 1cqw) {
  section.bb-trial .bb-trial-art img {
    bottom: max(-10.5cqw, -10.51cqh);
    left: calc(50% - min(58.14cqw, 58.21cqh));
    width: min(220.6cqw, 220.89cqh);
  }
}

section.bb-trial .bb-trial-profile {
  position: absolute;
  top: 20%;
  left: min(61%, calc(100% - 232px));
  z-index: 2;
  width: 228px;
  padding: 14px;
  border: 1px solid rgb(220 228 239);
  border-radius: 13px;
  background: var(--color-white);
  box-shadow: 0 7px 18px rgb(15 23 42 / 0.1);
  color: var(--bb-trial-ink);
  pointer-events: none;
}

section.bb-trial .bb-trial-profile-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

section.bb-trial .bb-trial-profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

section.bb-trial .bb-trial-profile-identity strong,
section.bb-trial .bb-trial-history-row strong {
  display: block;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

section.bb-trial .bb-trial-history-row strong {
  font-size: 10px;
}

section.bb-trial .bb-trial-profile-identity span,
section.bb-trial .bb-trial-history-row small {
  display: block;
  margin-top: 2px;
  color: rgb(100 116 139);
  font-size: 9px;
  line-height: 1.2;
}

section.bb-trial .bb-trial-history-row small {
  font-size: 8px;
}

section.bb-trial .bb-trial-history {
  margin-top: 16px;
}

section.bb-trial .bb-trial-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 38px;
  padding: 4px 0;
}

section.bb-trial .bb-trial-history-row + .bb-trial-history-row {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgb(226 232 240);
}

section.bb-trial .bb-trial-history-row img {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Below lg the copy sits above the artwork. */
@media (max-width: 997px) {
  section.bb-trial > div > div:first-child {
    max-width: none;
    padding: 40px;
  }

  section.bb-trial .bb-trial-art {
    max-height: 552px;
  }

  section.bb-trial .bb-trial-profile {
    top: 21%;
    right: 12%;
    left: auto;
  }
}

@media (max-width: 767px) {
  section.bb-trial {
    padding: 24px 0;
  }

  section.bb-trial > div {
    margin-inline: 16px;
  }

  section.bb-trial > div > div:first-child {
    padding: 20px 22px 8px;
  }

  section.bb-trial h3 {
    margin: 14px 0;
    font-size: 16px;
    line-height: 1.45;
  }

  section.bb-trial ul {
    gap: 4px;
    margin-bottom: 14px;
    font-size: 15px;
  }

  section.bb-trial .btn {
    width: 100%;
    max-width: 320px;
  }

  section.bb-trial .bb-trial-art {
    height: clamp(300px, 84vw, 350px);
    aspect-ratio: auto;
  }

  section.bb-trial .bb-trial-art img {
    top: calc(-15vw - 28px);
    bottom: auto;
    left: -35.3%;
    width: 280%;
  }

  section.bb-trial .bb-trial-profile {
    top: calc(14% - 28px);
    right: 3%;
    width: min(48%, 168px);
    padding: 8px;
    border-radius: 10px;
  }

  section.bb-trial .bb-trial-profile-head {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
  }

  section.bb-trial .bb-trial-profile-avatar {
    width: 24px;
    height: 24px;
  }

  section.bb-trial .bb-trial-history {
    margin-top: 12px;
  }

  section.bb-trial .bb-trial-history-row {
    min-height: 32px;
    padding: 3px 0;
  }

  section.bb-trial .bb-trial-history-row img {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
}

/* ---- 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-offer,
#section-proof {
  scroll-margin-top: 80px;
}
