/*
 * ============================================================
 * Browns Digital — Proprietary Software
 * ============================================================
 * Copyright (c) 2026 Robert Brown / Browns Digital. All rights reserved.
 * CONFIDENTIAL — NOT FOR DISTRIBUTION
 * ============================================================
 */

/* Apple.com design system — Browns Digital v3 */
/* @bd-origin:BD-IOS-A1C2-E8F0 */

:root {
  --bd-a-bg: #fff;
  --bd-a-bg-soft: #f8faff;
  --bd-a-bg-alt: #f0f4ff;
  --bd-a-blue: #355cff;
  --bd-a-blue-mid: #5b8cff;
  --bd-a-blue-light: #a8c4ff;
  --bd-a-blue-hover: #1e40af;
  --bd-a-text: #1d1d1f;
  --bd-a-muted: #424245;
  --bd-a-subtle: #6e6e73;
  --bd-a-border: #d2d2d7;
  --bd-a-max: 980px;
  --bd-a-wide: 1200px;
  --bd-a-nav-h: 48px;
  --bd-a-gutter: clamp(24px, 5vw, 48px);
  --bd-a-section: clamp(80px, 12vw, 140px);
  --bd-a-pill: 980px;
  --bd-a-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --bd-a-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bd-brand-mesh:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(168, 196, 255, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(91, 140, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 75%, rgba(53, 92, 255, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 45%, #fafbff 100%);
}

/* ── Kill legacy agency styling ── */
body.bd-v2 {
  font-family: var(--bd-a-font) !important;
  background: var(--bd-brand-mesh) !important;
  background-attachment: fixed !important;
  color: var(--bd-a-muted);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: text;
  user-select: text;
}

body.bd-v2 ::selection {
  background: rgba(53, 92, 255, 0.32);
  color: #0d0d0d;
}

body.bd-v2 ::-moz-selection {
  background: rgba(53, 92, 255, 0.32);
  color: #0d0d0d;
}

body.bd-v2 .bd-promo,
body.bd-v2 .bd-prod-hero,
body.bd-v2 .bd-help-hero {
  -webkit-user-select: text;
  user-select: text;
}

body.bd-v2 .nav-btn,
body.bd-v2 .bd-btn,
body.bd-v2 .bd-topic-card,
body.bd-v2 .panel-close {
  -webkit-user-select: none;
  user-select: none;
}

body.bd-v2 .hero-glow { display: none; }

body.bd-v2 .liquid:not(.nav-container)::before,
body.bd-v2 .liquid:not(.nav-container)::after { display: none !important; }

body.bd-v2 .liquid:not(.nav-container),
body.bd-v2 .card {
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  transform: none !important;
  --rx: 0 !important;
  --ry: 0 !important;
  --lift: 0 !important;
  border-radius: 0;
  padding: 0;
}

body.bd-v2 .card::before,
body.bd-v2 .card::after { display: none !important; }

body.bd-v2 .page {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: clip;
}

body.bd-v2 p {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: none;
  color: var(--bd-a-muted);
}

body.bd-v2 h2 {
  font-size: inherit;
  max-width: none;
  color: var(--bd-a-text);
}

/* ── Navigation — Apple bar → liquid pill on scroll ── */
body.bd-v2 .nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: auto;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  pointer-events: none;
  display: flex;
  justify-content: center;
  transition: top 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

body.bd-v2 .nav-container {
  width: 100%;
  max-width: 1024px;
  margin: 0;
  padding: 0 22px;
  gap: 8px;
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: 0;
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  pointer-events: auto;
  grid-template-columns: unset;
  transition:
    max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    min-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.45s ease,
    box-shadow 0.45s ease,
    border 0.45s ease;
}

/* Scrolled — floating liquid glass pill (original Browns Digital nav) */
body.bd-v2 .nav-fixed.nav-is-compact {
  top: 14px;
  padding: 0 14px;
}

body.bd-v2 .nav-fixed.nav-is-compact .nav-container {
  width: auto;
  max-width: min(calc(100% - 28px), 680px);
  min-height: 44px;
  padding: 5px 10px 5px 12px;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 8px rgba(0, 0, 0, 0.04);
}

body.bd-v2 .page:not(.active) {
  display: none !important;
}

body.bd-v2 .page.active {
  display: block;
}

body.bd-v2 .nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  padding: 0 12px 0 4px;
  margin-right: 4px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: var(--bd-a-text);
  flex-shrink: 0;
}

body.bd-v2 .nav-fixed.nav-is-compact .nav-brand {
  border-right-color: rgba(255, 255, 255, 0.45);
}

body.bd-v2 .nav-tabs {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 2px;
  min-height: 32px;
}

body.bd-v2 .nav-fixed.nav-is-compact .nav-tabs {
  flex: 0 1 auto;
  justify-content: center;
}

body.bd-v2 #pill {
  display: block;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 999px;
  z-index: 0;
  opacity: 0;
  transition:
    left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

body.bd-v2 .nav-fixed.nav-is-compact #pill {
  opacity: 1;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.bd-v2 .nav-btn {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bd-a-muted);
  padding: 6px 14px;
  height: auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: none;
  margin: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.2s;
}

body.bd-v2 .nav-fixed:not(.nav-is-compact) .nav-btn.active {
  color: var(--bd-a-text);
  font-weight: 600;
}

body.bd-v2 .nav-btn:hover,
body.bd-v2 .nav-fixed.nav-is-compact .nav-btn.active {
  color: var(--bd-a-text);
  background: transparent;
}

body.bd-v2 .nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 4px;
  flex-shrink: 0;
}

body.bd-v2 .nav-fixed.nav-is-compact .nav-divider {
  background: rgba(255, 255, 255, 0.45);
}

body.bd-v2 .nav-tools {
  font-weight: 600;
  color: var(--bd-a-blue);
}

body.bd-v2 .nav-tools:hover {
  color: var(--bd-a-blue-hover);
}

@media (max-width: 900px) {
  body.bd-v2 .nav-fixed.nav-is-compact {
    top: 10px;
    padding: 0 10px;
  }

  body.bd-v2 .nav-fixed.nav-is-compact .nav-container {
    max-width: 100%;
  }

  body.bd-v2 .nav-container {
    padding: 0 14px;
  }

  body.bd-v2 .nav-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
  }

  body.bd-v2 .nav-tabs::-webkit-scrollbar { display: none; }

  body.bd-v2 .nav-btn {
    padding: 6px 10px;
    flex-shrink: 0;
    font-size: 12px;
  }

  body.bd-v2 .nav-brand__text { display: none; }
}

/* ── Buttons ── */
body.bd-v2 .bd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 22px;
  font-family: var(--bd-a-font);
  font-size: 17px;
  line-height: 1.17648;
  font-weight: 400;
  letter-spacing: -0.022em;
  border-radius: var(--bd-a-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--bd-a-ease), color 0.2s;
  white-space: nowrap;
}

body.bd-v2 .bd-btn--primary {
  background: var(--bd-a-blue);
  color: #fff;
}

body.bd-v2 .bd-btn--primary:hover { background: var(--bd-a-blue-hover); }

body.bd-v2 .bd-btn--secondary {
  background: transparent;
  color: var(--bd-a-blue);
  box-shadow: inset 0 0 0 1px var(--bd-a-blue);
  padding: 11px 21px;
}

body.bd-v2 .bd-btn--secondary:hover {
  background: var(--bd-a-blue);
  color: #fff;
}

body.bd-v2 .bd-btn--link {
  background: transparent;
  color: var(--bd-a-blue);
  padding: 12px 10px;
}

body.bd-v2 .bd-btn--link:hover { text-decoration: underline; }

body.bd-v2 .bd-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
  margin-top: 24px;
}

body.bd-v2 .bd-chevron {
  font-size: 1.15em;
  line-height: 1;
}

/* ── Typography blocks ── */
body.bd-v2 .bd-eyebrow {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bd-a-blue-mid);
  margin: 0 0 8px;
}

body.bd-v2 .bd-headline {
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--bd-a-text);
  margin: 0;
}

body.bd-v2 .bd-headline--lg {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

body.bd-v2 .bd-subhead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--bd-a-muted);
  margin: 10px 0 0;
}

body.bd-v2 .bd-subhead--hero {
  font-size: clamp(21px, 2.6vw, 28px);
  color: var(--bd-a-subtle);
}

body.bd-v2 .bd-subhead--promo,
body.bd-v2 .bd-subhead--prod {
  font-size: clamp(17px, 1.95vw, 19px);
  line-height: 1.45;
  color: var(--bd-a-subtle);
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}

body.bd-v2 .bd-copy {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
  color: var(--bd-a-muted);
  max-width: 32em;
  margin: 16px auto 0;
}

body.bd-v2 .bd-copy--hero {
  font-size: clamp(16px, 1.85vw, 18px);
  line-height: 1.55;
  color: var(--bd-a-subtle);
  max-width: 30em;
}

body.bd-v2 .bd-copy--lg {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 28em;
}

body.bd-v2 .bd-copy--sm {
  font-size: clamp(16px, 1.85vw, 18px);
  line-height: 1.5;
  max-width: 36em;
  color: var(--bd-a-subtle);
}

body.bd-v2 #docs .bd-headline,
body.bd-v2 .bd-help-hero .bd-headline {
  font-size: clamp(36px, 5.5vw, 56px);
}

body.bd-v2 .bd-copy-block {
  text-align: center;
  padding: 0 var(--bd-a-gutter);
}

/* ── HOME: cinematic hero ── */
body.bd-v2 #home.page.active {
  padding-top: 48px;
  text-align: center;
}

body.bd-v2 .bd-hero-stage {
  min-height: calc(100svh - var(--bd-a-nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--bd-a-section) var(--bd-a-gutter);
  box-sizing: border-box;
}

body.bd-v2 .bd-hero-stage .bd-copy {
  margin-top: 28px;
}

body.bd-v2 .bd-hero-stage .bd-btn-row {
  margin-top: 32px;
}

/* Hero media — gradient cards (see HANDOFF.md) */
body.bd-v2 .bd-hero-media {
  width: 100%;
  max-width: var(--bd-a-wide);
  margin: 0 auto;
  padding: 0 var(--bd-a-gutter) var(--bd-a-section);
  box-sizing: border-box;
}

body.bd-v2 .bd-hero-media__frame {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: min(64vh, 560px);
  margin: 0 auto;
  background: #f8faff;
  border: none;
  box-shadow: 0 24px 64px rgba(53, 92, 255, 0.08);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

body.bd-v2 .bd-hero-media__frame--device {
  background: transparent;
  padding: 0;
}

body.bd-v2 .bd-hero-device {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(53, 92, 255, 0.12);
  box-shadow:
    0 28px 64px rgba(53, 92, 255, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  background: #fff;
}

body.bd-v2 .bd-hero-device__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

body.bd-v2 .bd-hero-device__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

body.bd-v2 .bd-hero-device__dot--close { background: #ff5f57; }
body.bd-v2 .bd-hero-device__dot--min { background: #febc2e; }
body.bd-v2 .bd-hero-device__dot--max { background: #28c840; }

body.bd-v2 .bd-hero-device__url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
  letter-spacing: -0.01em;
  margin-right: 52px;
}

body.bd-v2 .bd-hero-device__body {
  flex: 1;
  padding: clamp(16px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

body.bd-v2 .bd-hero-device__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bd-a-blue-mid);
  margin: 0 0 6px;
}

body.bd-v2 .bd-hero-device__title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bd-a-text);
  margin: 0 0 20px;
}

body.bd-v2 .bd-hero-device__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

body.bd-v2 .bd-hero-device__card {
  position: relative;
  padding: 16px 14px 14px;
  border-radius: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(53, 92, 255, 0.1);
  box-shadow: 0 8px 24px rgba(53, 92, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.bd-v2 .bd-hero-device__card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bd-a-text);
  line-height: 1.3;
}

body.bd-v2 .bd-hero-device__card-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--bd-a-subtle);
}

body.bd-v2 .bd-hero-device__pill {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.12);
  color: #15803d;
}

body.bd-v2 .bd-hero-media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: transparent;
  transform: scale(1.08);
  transform-origin: center center;
}

/* Gradient card images — crop baked-in white/black margins from PNG exports */
body.bd-v2 .bd-gradient-card {
  border-radius: 18px;
  overflow: hidden;
  background: #f8faff;
  line-height: 0;
}

body.bd-v2 .bd-gradient-card--dark {
  background: #000;
}

body.bd-v2 .bd-gradient-card__img,
body.bd-v2 .bd-gradient-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transform-origin: center center;
}

body.bd-v2 .bd-gradient-card--dark .bd-gradient-card__img,
body.bd-v2 .bd-gradient-card--dark img {
  transform: scale(1.1);
}

body.bd-v2 .bd-promo__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  transform: scale(1.1);
  transform-origin: center center;
}

body.bd-v2 .bd-promo__visual:has(.bd-promo__visual-img) {
  background: #f8faff;
  box-shadow: none;
  overflow: hidden;
}

body.bd-v2 .bd-promo--dark .bd-promo__visual:has(.bd-promo__visual-img) {
  background: #000;
}

body.bd-v2 .bd-promo--white .bd-promo__visual:has(.bd-promo__visual-img) {
  background: #f5f8ff;
}

body.bd-v2 .bd-prod-scene__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
  background: transparent;
  transform: scale(1.08);
  transform-origin: center center;
}

body.bd-v2 .bd-prod-hero--dark .bd-prod-scene__img {
  transform: scale(1.1);
}

body.bd-v2 .bd-prod-scene:has(.bd-prod-scene__img:not([hidden])) {
  background: #f8faff;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 32px 80px rgba(53, 92, 255, 0.1);
}

body.bd-v2 .bd-prod-hero--dark .bd-prod-scene:has(.bd-prod-scene__img:not([hidden])) {
  background: #000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

body.bd-v2 .bd-prod-hero--alt .bd-prod-scene:has(.bd-prod-scene__img:not([hidden])) {
  background: #f0f4ff;
}


/* Apple homepage promo rows */
body.bd-v2 .bd-promo-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 12px;
}

body.bd-v2 .bd-promo {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--bd-a-section) var(--bd-a-gutter) 64px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 0;
}

body.bd-v2 a.bd-promo { cursor: pointer; }

body.bd-v2 .bd-promo {
  cursor: default;
}

body.bd-v2 .bd-promo .bd-btn {
  cursor: pointer;
}

body.bd-v2 .bd-promo--light {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(168, 196, 255, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #f0f4ff 0%, #f8faff 100%);
}
body.bd-v2 .bd-promo--white {
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(91, 140, 255, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}
body.bd-v2 .bd-promo--dark {
  background: #000;
  color: #f5f5f7;
}

body.bd-v2 .bd-promo--dark .bd-eyebrow,
body.bd-v2 .bd-promo--dark .bd-subhead { color: #a1a1a6; }

body.bd-v2 .bd-promo--dark .bd-headline { color: #f5f5f7; }

body.bd-v2 .bd-promo--dark .bd-btn--link { color: #2997ff; }

body.bd-v2 .bd-promo__visual {
  width: 100%;
  max-width: 640px;
  height: 200px;
  margin-top: 40px;
  border-radius: 20px;
  flex-shrink: 0;
  transition: transform 0.35s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  body.bd-v2 .bd-promo__visual {
    animation: bd-promo-float 7s ease-in-out infinite;
  }

  body.bd-v2 .bd-promo:nth-child(2) .bd-promo__visual {
    animation-delay: -2s;
  }

  body.bd-v2 .bd-promo:nth-child(3) .bd-promo__visual {
    animation-delay: -4s;
  }
}

@keyframes bd-promo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

body.bd-v2 .bd-promo__visual--platform {
  background:
    radial-gradient(circle at 30% 40%, rgba(53, 92, 255, 0.28), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(168, 196, 255, 0.45), transparent 45%),
    linear-gradient(180deg, #e8f0ff, #d4e4ff);
}

body.bd-v2 .bd-promo__visual--docs {
  background:
    radial-gradient(ellipse 60% 70% at 30% 40%, rgba(168, 196, 255, 0.55), transparent 55%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(53, 92, 255, 0.2), transparent 50%),
    linear-gradient(145deg, #eef3ff 0%, #ffffff 50%, #e4edff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 24px 64px rgba(53, 92, 255, 0.08);
}

body.bd-v2 .bd-promo__visual--products {
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(91, 140, 255, 0.25), transparent 45%),
    linear-gradient(180deg, #f5f8ff, #e8efff);
  box-shadow: inset 0 0 0 1px rgba(53, 92, 255, 0.06);
}

body.bd-v2 .bd-promo__visual--pricing {
  background:
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(91, 140, 255, 0.45), transparent),
    radial-gradient(circle at 20% 30%, rgba(168, 196, 255, 0.15), transparent 40%),
    linear-gradient(180deg, #1a1a1c, #000);
}

/* ── Docs page (Meridian-style help center) ── */
body.bd-v2 #docs.page.active {
  padding-top: 0;
}

body.bd-v2 .bd-help-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: calc(var(--bd-a-nav-h) + 32px) var(--bd-a-gutter) 32px;
}

body.bd-v2 .bd-docs-banner {
  margin: 16px auto 20px;
  max-width: 100%;
  aspect-ratio: 3 / 1;
}

body.bd-v2 .bd-docs-banner.bd-gradient-card {
  aspect-ratio: 3 / 1;
}

body.bd-v2 .bd-docs-banner .bd-gradient-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.bd-v2 .bd-help-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0 var(--bd-a-gutter) 40px;
}

body.bd-v2 .bd-help-topics {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--bd-a-gutter) var(--bd-a-section);
}

body.bd-v2 .bd-help-topics__heading {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bd-a-text);
  margin: 0 0 8px;
  text-align: center;
}

body.bd-v2 .bd-help-topics__lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--bd-a-subtle);
  text-align: center;
  margin: 0 0 28px;
}

body.bd-v2 .bd-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.bd-v2 .bd-topic-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(53, 92, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(53, 92, 255, 0.05);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.bd-v2 .bd-topic-card:hover {
  border-color: rgba(53, 92, 255, 0.22);
  box-shadow: 0 8px 28px rgba(53, 92, 255, 0.1);
}

body.bd-v2 .bd-topic-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body.bd-v2 .bd-topic-card__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bd-a-text);
}

body.bd-v2 .bd-topic-card__desc {
  font-size: 15px;
  line-height: 1.45;
  color: var(--bd-a-subtle);
}

body.bd-v2 .bd-topic-card__arrow {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--bd-a-blue);
  opacity: 0.7;
}

body.bd-v2 .bd-page-hero {
  text-align: center;
  padding: calc(var(--bd-a-nav-h) + 32px) var(--bd-a-gutter) calc(var(--bd-a-section) * 0.5);
}

body.bd-v2 .bd-page-hero--compact {
  padding-bottom: calc(var(--bd-a-section) * 0.35);
}

/* ── PRODUCTS page (apple.com product sections) ── */
body.bd-v2 #products.page.active {
  padding-top: var(--bd-a-nav-h);
}

body.bd-v2 .bd-prod-hero {
  text-align: center;
  padding: var(--bd-a-section) var(--bd-a-gutter);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.bd-v2 .bd-prod-hero--alt {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(168, 196, 255, 0.3) 0%, transparent 55%),
    linear-gradient(180deg, #f0f4ff 0%, #f8faff 100%);
}

body.bd-v2 .bd-prod-hero--dark {
  background: #000;
  color: #f5f5f7;
}

body.bd-v2 .bd-prod-hero--dark .bd-eyebrow,
body.bd-v2 .bd-prod-hero--dark .bd-subhead { color: #a1a1a6; }

body.bd-v2 .bd-prod-hero--dark .bd-headline { color: #fff; }

body.bd-v2 .bd-prod-hero--dark .bd-btn--link { color: #2997ff; }

body.bd-v2 .bd-prod-hero--dark .bd-btn--primary {
  background: #fff;
  color: var(--bd-a-text);
}

body.bd-v2 .bd-prod-scene {
  width: 100%;
  max-width: 900px;
  height: clamp(280px, 40vw, 480px);
  margin-top: 56px;
  border-radius: 24px;
  flex-shrink: 0;
}

body.bd-v2 .bd-prod-scene--hub {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

body.bd-v2 .bd-prod-scene--hub:has(.bd-prod-scene__img) {
  background: #f8faff;
  box-shadow: 0 32px 80px rgba(53, 92, 255, 0.1);
}

body.bd-v2 .bd-tools-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 520px;
}

body.bd-v2 .bd-tools-mini__card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(53, 92, 255, 0.08);
  box-shadow: 0 8px 24px rgba(53, 92, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.bd-v2 .bd-tools-mini__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bd-a-text);
}

body.bd-v2 .bd-tools-mini__line {
  height: 8px;
  border-radius: 4px;
  background: rgba(53, 92, 255, 0.08);
}

body.bd-v2 .bd-tools-mini__line--short {
  width: 65%;
}

body.bd-v2 .bd-prod-scene--studio {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

body.bd-v2 .bd-studio-win {
  width: 100%;
  max-width: 820px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(53, 92, 255, 0.14);
  box-shadow:
    0 32px 80px rgba(53, 92, 255, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  background: #fff;
}

body.bd-v2 .bd-studio-win__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

body.bd-v2 .bd-studio-win__lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

body.bd-v2 .bd-studio-win__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.12);
}

body.bd-v2 .bd-studio-win__dot--close { background: #ff5f57; }
body.bd-v2 .bd-studio-win__dot--min { background: #febc2e; }
body.bd-v2 .bd-studio-win__dot--max { background: #28c840; }

body.bd-v2 .bd-studio-win__url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
  letter-spacing: -0.01em;
}

body.bd-v2 .bd-studio-win__app {
  flex: 1;
  display: grid;
  grid-template-columns: 118px 1fr 96px;
  min-height: 0;
}

body.bd-v2 .bd-studio-win__sidebar,
body.bd-v2 .bd-studio-win__inspector {
  padding: 12px 10px;
  background: #fafbff;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

body.bd-v2 .bd-studio-win__inspector {
  border-right: none;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

body.bd-v2 .bd-studio-win__sidebar-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #86868b;
  margin: 0 0 10px;
}

body.bd-v2 .bd-studio-win__item {
  font-size: 11px;
  font-weight: 500;
  padding: 7px 8px;
  margin-bottom: 5px;
  border-radius: 8px;
  color: #355cff;
  background: rgba(53, 92, 255, 0.06);
}

body.bd-v2 .bd-studio-win__item--active {
  background: rgba(53, 92, 255, 0.14);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(53, 92, 255, 0.2);
}

body.bd-v2 .bd-studio-win__canvas {
  position: relative;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    linear-gradient(rgba(53, 92, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 92, 255, 0.04) 1px, transparent 1px),
    #fff;
  background-size: 20px 20px;
  overflow: hidden;
}

body.bd-v2 .bd-studio-win__wire {
  position: relative;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed rgba(53, 92, 255, 0.22);
  background: rgba(255, 255, 255, 0.85);
}

body.bd-v2 .bd-studio-win__wire--hero {
  min-height: 72px;
}

body.bd-v2 .bd-studio-win__wire-tag {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 8px;
}

body.bd-v2 .bd-studio-win__wire-line {
  display: block;
  height: 6px;
  width: 72%;
  border-radius: 3px;
  background: rgba(53, 92, 255, 0.12);
  margin-bottom: 6px;
}

body.bd-v2 .bd-studio-win__wire-line--lg {
  width: 48%;
  height: 9px;
}

body.bd-v2 .bd-studio-win__wire-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  background: #355cff;
  color: #fff;
}

body.bd-v2 .bd-studio-win__wire-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.bd-v2 .bd-studio-win__wire-cols span {
  height: 36px;
  border-radius: 6px;
  background: rgba(53, 92, 255, 0.08);
}

body.bd-v2 .bd-studio-win__soon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}

body.bd-v2 .bd-studio-win__soon-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #355cff, #5b7cff);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(53, 92, 255, 0.35);
}

body.bd-v2 .bd-studio-win__soon-title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bd-a-text);
  margin-bottom: 6px;
}

body.bd-v2 .bd-studio-win__soon-copy {
  font-size: 13px;
  line-height: 1.45;
  color: var(--bd-a-subtle);
  max-width: 18em;
}

body.bd-v2 .bd-studio-win__code-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(53, 92, 255, 0.12);
  margin-bottom: 7px;
}

body.bd-v2 .bd-studio-win__code-line--short {
  width: 68%;
}

body.bd-v2 .bd-studio-win__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

body.bd-v2 .bd-studio-win__tags span {
  font-size: 9px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(53, 92, 255, 0.1);
  color: #355cff;
}

body.bd-v2 .bd-prod-scene--meta {
  background: #000;
}

body.bd-v2 .bd-prod-scene--tools {
  background: #f0f4ff;
}

body.bd-v2 .bd-prod-scene--auto {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.03) 0,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 48px
    ),
    linear-gradient(180deg, #f5f5f7, #e8e8ed);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.bd-v2 .bd-prod-scene--auto span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bd-a-subtle);
}

body.bd-v2 .bd-prod-divider {
  height: 12px;
  background: transparent;
}

body.bd-v2 .bd-price {
  padding: clamp(48px, 5vw, 64px) clamp(32px, 4vw, 44px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  border: 1px solid rgba(53, 92, 255, 0.08);
  box-shadow: 0 16px 48px rgba(53, 92, 255, 0.06);
}

body.bd-v2 .bd-price--featured {
  box-shadow: 0 0 0 2px var(--bd-a-blue), 0 20px 56px rgba(53, 92, 255, 0.12);
}

body.bd-v2 .bd-price__tier {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--bd-a-subtle);
  margin: 0;
}

body.bd-v2 .bd-price__amount {
  font-size: clamp(52px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bd-a-text);
  margin: 16px 0 24px;
}

body.bd-v2 .bd-price p {
  font-size: clamp(16px, 1.85vw, 18px);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 20em;
}

/* ── DEVELOPERS page ── */
body.bd-v2 #developers.page.active {
  padding-top: 0;
}

body.bd-v2 .bd-pricing {
  max-width: var(--bd-a-wide);
  margin: 0 auto;
  padding: 0 var(--bd-a-gutter) var(--bd-a-section);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  body.bd-v2 .bd-pricing {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

body.bd-v2 .bd-faq-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--bd-a-section) var(--bd-a-gutter);
}

body.bd-v2 .bd-faq-wrap .bd-headline {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

body.bd-v2 .faq-list {
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.bd-v2 .faq-item {
  border: 1px solid rgba(53, 92, 255, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(53, 92, 255, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.bd-v2 .faq-item[open] {
  border-color: rgba(53, 92, 255, 0.25);
  box-shadow: 0 8px 28px rgba(53, 92, 255, 0.1);
}

body.bd-v2 .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bd-a-text);
  cursor: pointer;
  list-style: none;
}

body.bd-v2 .faq-question::-webkit-details-marker { display: none; }

body.bd-v2 .faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, background 0.2s ease;
}

body.bd-v2 .faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: rgba(0, 113, 227, 0.1);
}

body.bd-v2 .faq-answer {
  padding: 0 22px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.bd-v2 .faq-answer p {
  font-size: 18px;
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: none;
  color: var(--bd-a-muted);
}

body.bd-v2 .bd-dev-cta {
  text-align: center;
  padding: 0 var(--bd-a-gutter) var(--bd-a-section);
}

body.bd-v2 .panel-link {
  color: var(--bd-a-blue);
  text-decoration: none;
  margin-top: 0;
  position: static;
}

body.bd-v2 .panel-link:hover { text-decoration: underline; opacity: 1; }

/* ── Footer — flat minimal ── */
body.bd-v2 .site-footer {
  background: var(--bd-a-bg-alt);
  border-top: 1px solid var(--bd-a-border);
  padding: 20px var(--bd-a-gutter) 28px;
  margin-top: auto;
}

body.bd-v2 .site-footer__inner {
  max-width: var(--bd-a-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

body.bd-v2 .site-footer__card {
  max-width: none;
  margin: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  width: 100%;
  display: contents;
}

body.bd-v2 .site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
}

body.bd-v2 .site-footer__links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--bd-a-subtle);
  text-decoration: none;
  padding: 2px 0;
  border-radius: 0;
  background: transparent;
}

body.bd-v2 .site-footer__links a:hover {
  color: var(--bd-a-text);
  text-decoration: underline;
  background: transparent;
}

body.bd-v2 .site-footer__sep {
  color: #c7c7cc;
  font-size: 12px;
  padding: 0 10px;
  user-select: none;
}

body.bd-v2 .site-footer__text {
  font-size: 12px;
  color: var(--bd-a-subtle);
  margin: 0;
  opacity: 1;
  line-height: 1.5;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body.bd-v2 .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  body.bd-v2 .site-footer__text {
    white-space: normal;
  }
}

/* ── Hide legacy ── */
body.bd-v2 .home-cards,
body.bd-v2 .bd-bento,
body.bd-v2 .bd-strip,
body.bd-v2 .bd-page-inner,
body.bd-v2 .bd-steps,
body.bd-v2 .bd-features,
body.bd-v2 .bd-products,
body.bd-v2 .bd-pricing-row { display: none; }

/* ── Page visibility ── */
#docs.page.active,
#products.page.active,
#developers.page.active { visibility: visible; }

#docs.page.active > *,
#products.page.active > *,
#developers.page.active > * { visibility: visible; }

body.bd-v2 [data-reveal].is-revealed { opacity: 1; }

/* ── Doc panels (About-me style) ── */
body.bd-v2 .doc-panel__banner {
  margin: 0 0 20px;
  border-radius: 16px;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

body.bd-v2 .doc-panel__banner .bd-gradient-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.bd-v2 .doc-panel__head {
  margin: 0 0 8px;
  padding: 0;
  border: none;
}

body.bd-v2 .doc-panel__title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--bd-a-text);
}

body.bd-v2 .doc-panel__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bd-a-subtle);
  margin: 0;
}

body.bd-v2 .doc-panel__rule {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 20px 0 24px;
}

body.bd-v2 .doc-panel__body p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 20px;
  color: var(--bd-a-muted);
}

body.bd-v2 .doc-panel__section {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bd-a-subtle);
  margin: 28px 0 8px;
}

body.bd-v2 .doc-panel code {
  font-size: 0.9em;
  background: rgba(53, 92, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

body.bd-v2 #panel-overlay.is-open {
  transition: none;
}

body.bd-v2 #panel-overlay .panel-card {
  background: rgba(252, 252, 254, 0.98) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.18);
  padding: clamp(28px, 4vw, 40px) clamp(28px, 4vw, 44px) !important;
  max-width: min(92vw, 540px) !important;
}

body.bd-v2 .panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--bd-a-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

body.bd-v2 .panel-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.bd-v2 #home.page.active:not(.is-entering):not(.is-exiting) .bd-promo,
body.bd-v2 #home.page.active:not(.is-entering):not(.is-exiting) .bd-hero-media,
body.bd-v2 #docs.page.active:not(.is-entering):not(.is-exiting) .bd-help-topics,
body.bd-v2 #docs.page.active:not(.is-entering):not(.is-exiting) .bd-topic-card,
body.bd-v2 #products.page.active:not(.is-entering):not(.is-exiting) .bd-prod-hero,
body.bd-v2 #developers.page.active:not(.is-entering):not(.is-exiting) .bd-price,
body.bd-v2 #developers.page.active:not(.is-entering):not(.is-exiting) .faq-item {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  body.bd-v2 .bd-hero-stage {
    min-height: auto;
    padding-top: calc(var(--bd-a-nav-h) + 24px);
    padding-bottom: 48px;
  }

  body.bd-v2 .bd-headline--lg {
    font-size: clamp(40px, 11vw, 56px);
  }

  body.bd-v2 .bd-promo {
    min-height: auto;
    padding-bottom: 48px;
  }

  body.bd-v2 .bd-promo__visual {
    height: 160px;
    margin-top: 28px;
  }

  body.bd-v2 .bd-prod-hero {
    min-height: auto;
    padding: 64px var(--bd-a-gutter);
  }

  body.bd-v2 .bd-prod-scene {
    height: clamp(220px, 55vw, 320px);
    margin-top: 32px;
  }

  body.bd-v2 .bd-hero-device__grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  body.bd-v2 .bd-studio-win__app {
    grid-template-columns: 1fr;
  }

  body.bd-v2 .bd-studio-win__sidebar,
  body.bd-v2 .bd-studio-win__inspector {
    display: none;
  }

  body.bd-v2 .bd-prod-scene--studio {
    height: clamp(280px, 58vw, 380px);
  }

  body.bd-v2 .bd-price {
    padding: 36px 24px;
  }

  body.bd-v2 .bd-price p {
    font-size: 15px;
  }

  body.bd-v2 #panel-overlay {
    padding: 5rem 12px 12px !important;
  }

  body.bd-v2 .bd-topic-card {
    padding: 16px;
  }
}
