/* Meet Bonat (#bonat). Plum zone: core tweens the page to plum, we only set ink and illustration hooks. */

.bn {
  --bn-pw: clamp(200px, 19vw, 288px);
  --bn-line: rgba(255, 255, 255, .14);
  --ill-ink: #FFFFFF;
  --ill-paper: #3D1A66;
  --ill-mute: #52307F;
  --ill-accent: var(--b-peach);
  color: var(--page-ink);
  padding-block: clamp(96px, 10vw, 160px) clamp(96px, 9vw, 140px);
}

/* ---------- Header ---------- */
.bn-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  grid-template-areas: "eyebrow eyebrow" "title lead";
  column-gap: clamp(32px, 5vw, 96px);
  row-gap: clamp(20px, 2vw, 28px);
  align-items: end;
}
.bn-eyebrow { grid-area: eyebrow; display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.bn-logo { width: auto; height: 34px; color: #fff; }
.bn-eyebrow__rule { width: 1px; height: 22px; background: rgba(255, 255, 255, .28); }
.bn-eyebrow .t-eyebrow { color: var(--b-lilac); }

.bn-title {
  grid-area: title;
  font-size: clamp(2.75rem, .9rem + 5.4vw, 6.5rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.012em;
  color: #fff;
  max-width: 12ch;
}
:lang(ar) .bn-title { max-width: 14ch; line-height: 1.18; font-size: clamp(2.6rem, 1rem + 4.6vw, 5.75rem); }
.bn-hl { color: var(--b-lilac); }
.bn-lead { grid-area: lead; color: var(--page-ink-2); max-width: 22rem; padding-block-end: .5em; }

/* ---------- Stage + fan ---------- */
.bn-show { margin-block-start: clamp(56px, 6vw, 88px); }
.bn-stage {
  position: relative;
  height: calc(var(--bn-pw) * 2.42);
  overflow-x: clip;
  overflow-y: visible;
  touch-action: pan-y;
  outline: none;
}
.bn-fan { position: absolute; inset: 0; z-index: 2; }
.bn-phone {
  --pw: var(--bn-pw);
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: calc(var(--bn-pw) / -2);
  transform-origin: 50% 92%;
  will-change: transform;
  box-shadow: 0 0 0 calc(var(--pw) * .0045) #6B6B72, 0 0 0 calc(var(--pw) * .0095) #232328, inset 0 0 0 calc(var(--pw) * .0035) rgba(255, 255, 255, .09), 0 40px 60px -28px rgba(8, 2, 18, .7);
  -webkit-tap-highlight-color: transparent;
}
.bn-phone.is-side { cursor: pointer; }
.bn-phone__shade {
  position: absolute; inset: 0; z-index: 4;
  background: var(--b-plum-900);
  opacity: 0;
  pointer-events: none;
}

/* Stickers: Bonat's drawings, inked white so they live on plum */
.bn-stickers { position: absolute; inset: 0; pointer-events: none; }
.bn-st { position: absolute; z-index: 1; display: block; width: var(--w, 140px); }
.bn-st > .ill { width: 100%; rotate: var(--r, 0deg); }
.bn-st--gift { --w: clamp(96px, 10vw, 150px); --r: -7deg; top: 3%; inset-inline-start: 4%; }
.bn-st--coin { --w: clamp(70px, 7.4vw, 112px); --r: 9deg; top: 9%; inset-inline-end: 8%; }
.bn-st--listener { --w: clamp(110px, 12vw, 176px); --r: -2deg; bottom: 6%; inset-inline-start: 1%; }
.bn-st--skater { --w: clamp(120px, 13vw, 190px); --r: 3deg; bottom: 13%; inset-inline-end: 0; z-index: 3; }

/* ---------- Tabs ---------- */
.bn-controls { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; margin-block-start: clamp(28px, 3vw, 44px); }
.bn-tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.bn-tabs::-webkit-scrollbar { display: none; }
.bn-tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2;
  white-space: nowrap;
  color: var(--page-ink-2);
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
[dir="rtl"] .bn-tab { padding: 10px 14px 10px 18px; }
.bn-tab:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.bn-tab[aria-selected="true"] { background: var(--b-lilac); color: var(--b-plum); }
.bn-tab__ico { width: 20px; height: 20px; opacity: .9; }
.bn-tab:focus-visible { outline-offset: 2px; border-radius: var(--r-pill); }
.bn-tab__bar {
  position: absolute; bottom: 5px; inset-inline: 22px; height: 2px;
  border-radius: 2px; background: currentColor; opacity: 0;
  transform: scaleX(0); transform-origin: left center;
}
[dir="rtl"] .bn-tab__bar { transform-origin: right center; }
.bn-tab[aria-selected="true"] .bn-tab__bar { opacity: .32; }
.bn.is-manual .bn-tab__bar { opacity: 0 !important; }

.bn-captions { display: grid; max-width: 34rem; text-align: center; }
.bn-cap {
  grid-area: 1 / 1;
  font-size: var(--fs-body); line-height: 1.55;
  color: var(--page-ink-2);
  text-wrap: balance;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}
.bn-cap.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------- Stats + download ---------- */
.bn-foot {
  display: grid;
  gap: clamp(40px, 4.5vw, 64px);
  margin-block-start: clamp(64px, 7vw, 104px);
  padding-block-start: clamp(40px, 4vw, 56px);
  border-block-start: 1px solid var(--bn-line);
}
.bn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bn-stat { display: flex; flex-direction: column; gap: 10px; padding-inline: clamp(16px, 2.4vw, 36px); border-inline-start: 1px solid var(--bn-line); }
.bn-stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
.bn-stat__fig { order: -1; display: grid; gap: 2px; }
.bn-stat__pre { font-size: .9375rem; font-weight: 500; color: var(--page-ink-3); line-height: 1.3; }
.bn-stat__num {
  display: inline-flex; align-items: baseline; gap: .04em;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.75rem, 1.4rem + 3.6vw, 5.25rem);
  line-height: .95; letter-spacing: -.02em; color: #fff;
  direction: ltr; unicode-bidi: isolate;
  justify-self: start;
}
.bn-stat__num .t-num { font-variant-numeric: normal; font-feature-settings: normal; }
.bn-stat__unit { color: var(--b-lilac); }
:lang(ar) .bn-stat__num { direction: rtl; gap: .22em; line-height: 1.15; letter-spacing: 0; }
:lang(ar) .bn-stat__unit { font-size: .58em; font-weight: 800; }
.bn-stat__label { font-size: var(--fs-body); color: var(--page-ink-2); line-height: 1.4; text-wrap: balance; }

.bn-get {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  padding: 20px 20px 20px clamp(24px, 3vw, 40px);
  border-radius: var(--r-xl);
  background: #fff;
  color: var(--b-plum);
}
[dir="rtl"] .bn-get { padding: 20px clamp(24px, 3vw, 40px) 20px 20px; }
.bn-get__head { display: grid; gap: 4px; margin-inline-end: auto; }
.bn-get__title { font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 1.3vw, 2.25rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.08; color: var(--b-plum); text-wrap: balance; }
:lang(ar) .bn-get__title { line-height: 1.25; }
.bn-get__sub { font-size: .9375rem; color: var(--g-600); line-height: 1.45; }
.bn-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bn-badge { display: block; border-radius: 9px; transition: transform var(--t-fast) var(--ease-out); }
.bn-badge:hover { transform: translateY(-2px); }
.bn-badge:active { transform: translateY(0) scale(.98); }
.bn-badge img { height: 48px; width: auto; }
.bn-badge:focus-visible { outline-color: var(--b-violet); }

.bn-qr {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: var(--r-ui);
  background: var(--b-lilac-100);
}
.bn-qr__code { padding: 8px; border-radius: 10px; background: #fff; }
.bn-qr__svg { width: 88px; height: 88px; color: var(--b-plum); shape-rendering: crispEdges; }
.bn-qr__cap { font-size: .875rem; font-weight: 600; color: var(--b-plum); line-height: 1.3; max-width: 6.5rem; text-wrap: balance; }
[dir="rtl"] .bn-qr { padding: 10px 10px 10px 18px; }

/* ---------- Tablet ---------- */
@media (max-width: 1279px) {
  .bn-tab__ico { display: none; }
  .bn-tab, [dir="rtl"] .bn-tab { padding: 10px 16px; font-size: .875rem; }
}
@media (max-width: 1023px) {
  /* The pill track becomes a swipeable chip row that bleeds to the screen edges. */
  .bn-tabs {
    width: auto; max-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
    gap: 8px;
    justify-content: safe center;
    background: none; box-shadow: none; border-radius: 0;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    justify-self: stretch;
  }
  .bn-tab { scroll-snap-align: start; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
  .bn-tab[aria-selected="true"] { box-shadow: none; }
}
@media (max-width: 900px) {
  .bn-get { flex-wrap: wrap; row-gap: 16px; }
  .bn-get__head { flex: 1 1 100%; }
  .bn-qr { margin-inline-start: auto; }
}
@media (max-width: 860px) {
  .bn-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "title" "lead"; }
  .bn-lead { max-width: 34rem; padding: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .bn { --bn-pw: clamp(176px, 52vw, 232px); }
  .bn-logo { height: 28px; }
  .bn-stage { margin-inline: calc(var(--gutter) * -1); height: calc(var(--bn-pw) * 2.36); }
  .bn-st--gift { top: 0; inset-inline-start: 3%; }
  .bn-st--coin { top: 2%; inset-inline-end: 4%; }
  .bn-st--listener { display: none; }
  .bn-st--skater { --w: 112px; bottom: -3%; inset-inline-end: 1%; }
  .bn-controls { gap: 16px; }
  .bn-captions { padding-inline: 4px; }
  .bn-foot { margin-block-start: 72px; }
  .bn-stat { padding-inline: 12px; gap: 6px; }
  .bn-stat__num { font-size: clamp(2rem, 10vw, 2.75rem); }
  .bn-stat__label { font-size: .8125rem; }
  .bn-stat__pre { font-size: .75rem; }
  .bn-get, [dir="rtl"] .bn-get { padding: 20px; }
}
@media (max-width: 599px) {
  /* A QR code on the phone you would scan it with does nothing; the badges carry it here. */
  .bn-qr { display: none; }
  .bn-badge img { height: 42px; }
  .bn-badges { gap: 8px; }
  .bn-stats { grid-template-columns: minmax(0, 1fr); }
  .bn-stat, .bn-stat:first-child {
    flex-direction: row; align-items: baseline; gap: 14px;
    padding: 14px 0; border-inline-start: 0;
    border-block-start: 1px solid var(--bn-line);
  }
  .bn-stat:first-child { border-block-start: 0; padding-block-start: 0; }
  .bn-stat__fig { display: flex; align-items: baseline; gap: 8px; }
  .bn-stat__num { font-size: 2.75rem; }
  .bn-stat__label { font-size: .9375rem; }
  .bn-foot { padding-block-start: 32px; gap: 32px; }
}
