/* /website/builder and /app/builder: cinematic "built free" landing pages (motion in assets/js/builder.js) */
.bd { position: relative; overflow-x: clip; }
.bd-hero { position: relative; min-height: 88svh; display: flex; align-items: center; padding: calc(var(--header-h, 80px) + 40px) 0 40px; }
.bd-glow { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(40% 40% at 30% 30%, rgba(139,92,246,.28), transparent 70%), radial-gradient(35% 35% at 75% 55%, rgba(236,72,153,.18), transparent 70%); filter: blur(20px); }
.bd-hero__in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.bd-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lav, #a78bfa);
  padding: 8px 16px; border: 1px solid rgba(167,139,250,.3); border-radius: 999px; background: rgba(139,92,246,.08); }
.bd-h1 { margin: 0; font-family: var(--f-display, inherit); font-size: clamp(2.4rem, 7.4vw, 6.2rem); line-height: 1.02; letter-spacing: -.035em; color: #fff; max-width: 15ch; }
.bd-words, .bd-free { display: inline; }
.bd-w { display: inline-block; will-change: transform, opacity, filter; }
.bd-free { display: inline-block; background: linear-gradient(100deg, #a78bfa 0%, #ec4899 45%, #f59e0b 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(236,72,153,.25); will-change: transform, filter; }
.bd-lead { margin: 0; max-width: 46ch; font-size: clamp(1.02rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--ink-2, #cfcfd8); }
.bd-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bd-fine { margin: 0; font-size: .82rem; color: var(--muted-2, #8a8a96); }
.bd-fine a { color: var(--ink-2, #cfcfd8); text-decoration: underline; text-underline-offset: 3px; }

/* scroll-driven 3D assembly */
.bd-build { position: relative; height: 320vh; }
.bd-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.bd-stage { perspective: 1400px; perspective-origin: 50% 40%; width: min(880px, 92vw); display: grid; place-items: center; }
.bd-device { position: relative; transform-style: preserve-3d; will-change: transform; border-radius: 22px;
  background: linear-gradient(160deg, #15151d, #0b0b10); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 60px 120px -30px rgba(139,92,246,.45), 0 0 0 1px rgba(255,255,255,.03) inset; }
.bd-browser { width: 100%; aspect-ratio: 16 / 10; padding: 0 0 16px; }
.bd-phone { height: min(60svh, 600px); width: auto; aspect-ratio: 9 / 19; border-radius: 44px; padding: 14px; border: 8px solid #1d1d27; }
.bd-piece { position: absolute; transform-style: preserve-3d; will-change: transform, opacity; border-radius: 14px; opacity: 0; }
.bd-piece b, .bd-piece span, .bd-piece em { font-style: normal; }

/* browser pieces */
.bd-p-chrome { left: 0; right: 0; top: 0; height: 42px; border-radius: 22px 22px 0 0; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.bd-p-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .bd-p-chrome i:nth-child(2) { background: #febc2e; } .bd-p-chrome i:nth-child(3) { background: #28c840; }
.bd-p-chrome span { margin-left: 14px; flex: 1; max-width: 300px; font-size: .78rem; color: var(--muted, #a1a1ad); background: rgba(255,255,255,.05); border-radius: 8px; padding: 5px 12px; }
.bd-p-nav { left: 4%; right: 4%; top: 13%; height: 7%; display: flex; align-items: center; gap: 4%; }
.bd-p-nav b { width: 16%; height: 46%; border-radius: 6px; background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.bd-p-nav i { width: 9%; height: 22%; border-radius: 4px; background: rgba(255,255,255,.16); } .bd-p-nav i:first-of-type { margin-left: auto; }
.bd-p-nav em { width: 13%; height: 60%; border-radius: 999px; background: #25d366; }
.bd-p-hero { left: 4%; width: 54%; top: 26%; height: 32%; display: flex; flex-direction: column; gap: 10%; justify-content: center; }
.bd-p-hero b { font-size: clamp(.9rem, 2.4vw, 1.9rem); line-height: 1.1; color: #fff; letter-spacing: -.02em; }
.bd-p-hero span { width: 80%; height: 10%; border-radius: 4px; background: rgba(255,255,255,.14); }
.bd-p-hero em { align-self: flex-start; font-size: clamp(.6rem, 1.2vw, .85rem); font-weight: 700; color: #fff; padding: 2.5% 5%; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.bd-p-cards { left: 4%; right: 4%; bottom: 7%; height: 26%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.bd-p-cards i { border-radius: 12px; background: linear-gradient(160deg, rgba(139,92,246,.22), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.07); }
.bd-p-seo, .bd-p-speed, .bd-p-lead, .bd-p-push { padding: 10px 14px; font-size: clamp(.68rem, 1.3vw, .9rem); color: #fff; white-space: nowrap;
  background: rgba(20,20,28,.92); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bd-p-seo b, .bd-p-lead b, .bd-p-push b { color: #a78bfa; margin-right: 6px; }
.bd-p-seo { right: 4%; top: 28%; } .bd-p-speed { right: 8%; top: 44%; } .bd-p-speed b { color: #4ade80; font-size: 1.3em; margin-right: 6px; }
.bd-p-lead { right: -3%; bottom: 31%; }

/* phone pieces */
.bd-p-notch { left: 35%; right: 35%; top: 1.5%; height: 3.4%; border-radius: 999px; background: #000; }
.bd-p-bar { left: 7%; right: 7%; top: 8%; height: 4%; display: flex; justify-content: space-between; align-items: center; }
.bd-p-bar i { width: 26%; height: 50%; border-radius: 4px; background: rgba(255,255,255,.18); } .bd-p-bar i:last-child { width: 12%; border-radius: 50%; height: 100%; background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.bd-phone .bd-p-hero { left: 7%; right: 7%; width: auto; top: 15%; height: 19%; padding: 7%; border-radius: 18px; gap: 6px; background: linear-gradient(140deg, #7c3aed, #db2777); }
.bd-phone .bd-p-hero span { width: auto; height: auto; background: none; font-size: .78rem; color: rgba(255,255,255,.8); }
.bd-phone .bd-p-hero b { font-size: 1.05rem; }
.bd-p-row { left: 7%; right: 7%; top: 37%; height: 9%; display: flex; gap: 6%; } .bd-p-row i { flex: 1; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.06); }
.bd-phone .bd-p-card { left: 7%; right: 7%; height: 12%; display: flex; align-items: center; gap: 8%; padding: 0 6%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); }
.bd-p-card i { width: 26%; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, rgba(139,92,246,.6), rgba(236,72,153,.5)); }
.bd-p-card span { flex: 1; height: 14%; border-radius: 4px; background: rgba(255,255,255,.16); }
[data-bd-piece="4"].bd-p-card { top: 49%; } [data-bd-piece="5"].bd-p-card { top: 63.5%; }
.bd-p-tab { left: 7%; right: 7%; bottom: 3%; height: 8%; display: flex; justify-content: space-around; align-items: center; background: rgba(255,255,255,.05); border-radius: 18px; }
.bd-p-tab i { width: 9%; aspect-ratio: 1; border-radius: 6px; background: rgba(255,255,255,.2); } .bd-p-tab i:first-child { background: #a78bfa; }
.bd-p-push { left: -24%; top: 77%; border-radius: 16px; }

.bd-captions { position: absolute; top: calc(var(--header-h, 80px) + 18px); left: 0; right: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.bd-cap { grid-area: 1 / 1; font-size: clamp(.9rem, 1.7vw, 1.15rem); font-weight: 600; color: #fff; padding: 10px 18px; border-radius: 999px;
  background: rgba(15,15,22,.8); border: 1px solid rgba(255,255,255,.1); opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .45s; white-space: nowrap; }
.bd-cap b { color: var(--lav, #a78bfa); margin-right: 6px; }
.bd-cap.on { opacity: 1; transform: none; }
.bd-price { position: absolute; bottom: 6svh; left: 50%; transform: translateX(-50%); display: flex; align-items: baseline; gap: 12px; z-index: 2;
  padding: 10px 22px; border-radius: 999px; background: rgba(15,15,22,.85); border: 1px solid rgba(255,255,255,.1); }
.bd-price span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #a1a1ad); }
.bd-price b { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #4ade80; letter-spacing: -.02em; }

/* sections */
.bd-math { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: stretch; }
.bd-day { padding: 30px; display: flex; flex-direction: column; gap: 10px; transform-style: preserve-3d; will-change: transform;
  background: radial-gradient(120% 100% at 0% 0%, rgba(139,92,246,.22), transparent 60%), var(--card-bg, rgba(255,255,255,.03)); }
.bd-count { font-size: clamp(3.4rem, 8vw, 6rem); line-height: 1; letter-spacing: -.04em; color: #fff; }
.bd-day p { margin: 0; color: var(--ink-2, #cfcfd8); line-height: 1.6; }
.bd-compare { display: grid; gap: 12px; }
.bd-cmp { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 16px; padding: 18px 22px; align-items: center; }
.bd-cmp span { font-weight: 600; color: #fff; } .bd-cmp b { grid-row: 1 / 3; grid-column: 2; font-size: 1.5rem; color: var(--muted, #a1a1ad); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.bd-cmp.is-us { border-color: rgba(167,139,250,.5); background: linear-gradient(100deg, rgba(139,92,246,.18), rgba(236,72,153,.1)); }
.bd-cmp.is-us b { color: #4ade80; text-decoration: none; font-size: 1.9rem; }
.bd-feat, .bd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bd-feat li { display: flex; gap: 10px; align-items: flex-start; padding: 18px 20px; color: var(--ink-2, #cfcfd8); line-height: 1.5; }
.bd-feat svg { flex: none; margin-top: 3px; color: #4ade80; }
.bd-steps li { padding: 24px; } .bd-steps b { font-size: .8rem; color: var(--lav, #a78bfa); letter-spacing: .14em; }
.bd-steps h3 { margin: 10px 0 6px; font-size: 1.15rem; color: #fff; } .bd-steps p { margin: 0; line-height: 1.55; }
.bd-proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.bd-proof__i { display: flex; flex-direction: column; gap: 8px; padding: 26px; color: inherit; transform-style: preserve-3d; will-change: transform; }
.bd-proof__i strong { font-size: 1.3rem; color: #fff; } .bd-proof__i em { font-style: normal; display: inline-flex; gap: 6px; align-items: center; color: var(--lav, #a78bfa); margin-top: 6px; }
.bd-final { margin-top: 40px; padding: clamp(28px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(139,92,246,.25), transparent 70%), var(--card-bg, rgba(255,255,255,.03)); }
.bd-final h2 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.6rem); color: #fff; letter-spacing: -.02em; } .bd-final p { margin: 0; }

@media (max-width: 760px) {
  .bd-math { grid-template-columns: 1fr; }
  .bd-build { height: 260vh; }
  .bd-p-seo { top: 22%; right: 2%; } .bd-p-speed { display: none; } .bd-p-lead { right: 2%; bottom: 40%; }
  .bd-p-push { left: -8%; top: 77%; }
  .bd-sticky { padding: calc(var(--header-h, 80px) + 40px) 0 90px; place-items: center; }
  .bd-captions { top: calc(var(--header-h, 80px) + 4px); }
  .bd-price { bottom: 2svh; padding: 6px 16px; } .bd-price b { font-size: 1.4rem; }
  .bd-cap { white-space: normal; text-align: center; max-width: 88vw; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-build { height: auto; } .bd-sticky { position: relative; height: auto; padding: 60px 0 120px; }
  .bd-piece { opacity: 1 !important; transform: none !important; } .bd-cap:first-child { opacity: 1; transform: none; }
}
