/* Buyer Ads LPs — same one-viewport split as /signin (no page scroll). */

:root {
  --buy-accent: #ff1a14;
  --buy-deep: #1B3139;
  --buy-canvas: #EEF1F3;
  --buy-text: #122026;
  --buy-muted: #5a6b72;
  --buy-border: rgba(27, 49, 57, 0.12);
  --buy-font: "Poppins", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--buy-font);
  color: var(--buy-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Lock scroll only on LP show — not the stacked gallery. */
.bz-buy-body:has(.bz-buy-page) {
  height: 100dvh;
  overflow: hidden;
}

.bz-buy-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  height: 100dvh;
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.bz-buy-hero {
  position: relative;
  overflow: hidden;
  background: var(--buy-deep);
  min-height: 100%;
}

.bz-buy-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.bz-buy-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, transparent 40%);
  pointer-events: none;
}

.bz-buy-hero__logo {
  position: absolute;
  top: 36px;
  left: 40px;
  z-index: 2;
  display: block;
  width: min(220px, 36%);
}

.bz-buy-hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.bz-buy-hero__caption {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 22ch;
  white-space: pre-line;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.bz-buy-sheet {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}

.bz-buy-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: none;
  padding: 20px 32px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--buy-muted);
}

.bz-buy-nav a {
  text-decoration: none;
}

.bz-buy-nav a:hover { color: var(--buy-accent); }

.bz-buy-sheet__inner {
  flex: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px 48px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bz-buy-auth {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.bz-buy-auth__loading {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--buy-muted);
}

/* Sell points — sit between subcopy and CTAs after JS reorder */
.bz-buy-sell {
  list-style: none;
  margin: 0 0 22px;
  padding: 16px 0;
  border-top: 1px solid var(--buy-border);
  border-bottom: 1px solid var(--buy-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bz-buy-sell li {
  position: relative;
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--buy-text);
  letter-spacing: -0.01em;
}

.bz-buy-sell li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--buy-accent);
}

.bz-buy-h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0a0a0a;
  text-align: center;
}

.bz-buy-sub {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: #3c4043;
  text-align: center;
}

.bz-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

.bz-buy-btn--primary {
  background: var(--buy-accent);
  color: #fff;
  width: 100%;
  margin-bottom: 12px;
}

.bz-buy-btn--secondary {
  background: #fff;
  color: var(--buy-deep);
  border: 1.5px solid var(--buy-border);
  width: 100%;
}

.bz-buy-btn--secondary:hover { border-color: var(--buy-deep); }

.bz-buy-auth .bz-buy-btn--primary { margin-top: 0; }

/* —— Auth panel (same controls as /signin sheet) —— */
.bz-hide { display: none !important; }

.bz-buy-sheet .bz-auth-heading--sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0 16px;
  width: 100%;
}

.bz-buy-sheet .bz-auth-brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 0 14px;
  object-fit: contain;
  border-radius: 12px;
  align-self: center;
}

.bz-buy-sheet .bz-auth-heading--sheet .bz-auth-heading__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-align: center;
  color: #0a0a0a;
}

.bz-buy-sheet .bz-auth-heading--sheet .bz-signin-sub {
  width: 100%;
  margin: 10px auto 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: #3c4043;
  max-width: 38ch;
  text-align: center;
}

.bz-buy-sheet .bz-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.bz-buy-sheet .bz-auth-btn svg,
.bz-buy-sheet .bz-auth-btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bz-buy-sheet .bz-auth-btn-filled {
  background: var(--buy-accent);
  color: #fff;
  box-shadow: 0 2px 2px rgba(15, 23, 42, 0.25);
}

.bz-buy-sheet .bz-auth-btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: #747775;
  font-weight: 500;
}

.bz-buy-sheet .bz-auth-btn-apple {
  background: #000;
  color: #fff;
  border-color: #000;
  font-weight: 500;
}

.bz-buy-sheet .bz-auth-btn-apple {
  margin-bottom: 4px;
}

.bz-buy-sheet .bz-auth-forgot,
.bz-buy-sheet .bz-auth-back {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--buy-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.bz-buy-sheet .bz-auth-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--buy-muted);
}

.bz-buy-sheet .bz-auth-legal a {
  color: inherit;
  text-decoration: none;
}

.bz-buy-sheet .bz-field {
  margin-bottom: 12px;
  text-align: left;
}

.bz-buy-sheet .bz-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--buy-deep);
}

.bz-buy-sheet .bz-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--buy-border);
  border-radius: 10px;
  background: #fff;
  color: var(--buy-text);
  font: inherit;
  font-size: 15px;
}

.bz-buy-sheet .bz-input:focus {
  outline: none;
  border-color: var(--buy-accent);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10);
}

.bz-buy-sheet .bz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.bz-buy-sheet .bz-btn-primary {
  background: var(--buy-accent);
  color: #fff;
}

.bz-buy-sheet .bz-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bz-buy-sheet .bz-form-error {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1B3139;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.bz-toast-root {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.bz-toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--buy-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

/* Gallery (dev only — allowed to scroll) */
.bz-buy-gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  height: auto;
  overflow: auto;
}

.bz-buy-gallery__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--buy-muted);
}

.bz-buy-gallery h1 {
  margin: 6px 0 8px;
  font-size: 28px;
  color: var(--buy-deep);
}

.bz-buy-gallery__block {
  margin: 40px 0;
}

.bz-buy-gallery__label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--buy-muted);
}

.bz-buy-gallery__label code {
  color: var(--buy-accent);
  font-size: 13px;
}

.bz-buy-gallery iframe {
  width: 100%;
  height: 100dvh;
  border: 1px solid var(--buy-border);
  border-radius: 16px;
  background: #fff;
}

/* Mobile: stacked hero + sheet, still one viewport */
@media (max-width: 899px) {
  .bz-buy-page {
    display: flex;
    flex-direction: column;
    height: 100dvh;
  }

  .bz-buy-hero {
    flex: 0 0 38%;
    min-height: 0;
  }

  .bz-buy-hero__logo {
    top: 20px;
    left: 20px;
    width: min(160px, 42%);
  }

  .bz-buy-hero__caption {
    left: 20px;
    right: 20px;
    bottom: 20px;
    font-size: 22px;
  }

  .bz-buy-nav {
    display: none;
  }

  .bz-buy-sheet {
    flex: 1;
    min-height: 0;
    border-radius: 20px 20px 0 0;
    margin-top: -18px;
    position: relative;
    z-index: 1;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
  }

  .bz-buy-sheet__inner {
    padding: 22px 22px 18px;
    max-width: none;
    justify-content: flex-start;
  }

  .bz-buy-sheet .bz-auth-heading--sheet .bz-auth-heading__title {
    font-size: 24px;
  }

  .bz-buy-sheet .bz-auth-heading--sheet .bz-signin-sub {
    font-size: 13.5px;
  }

  .bz-buy-sell {
    margin-bottom: 18px;
    padding: 12px 0;
    gap: 10px;
  }

  .bz-buy-sell li {
    font-size: 13px;
  }
}
