/* ============================================================
   ASTERWISE — "What you can build" · v3 app mockups
   Six end-user products built on Asterwise, rendered to a
   real shippable standard. Namespaced .bd-* so it never
   collides with the legacy .ap-* demo system.
   Frames: .bd-phone (mobile) · .bd-web (desktop).
   ============================================================ */

/* ─── stage backdrop (soft spotlight, reused glow) ─── */
.buildshow__stage { isolation: isolate; }

/* ─── device entrance ─── */
.bpane .bd-phone,
.bpane .bd-web { animation: bdRise .55s var(--ease-out) both; }
@keyframes bdRise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

/* ════════════════════ PHONE FRAME ════════════════════ */
.bd-phone {
  position: relative; width: 300px; height: 642px; flex: none;
  border-radius: 52px; padding: 11px;
  background: linear-gradient(155deg, #2a2c38 0%, #0c0d13 38%, #0c0d13 70%, #23252f 100%);
  box-shadow:
    0 50px 90px -30px rgba(6,7,14,.78),
    0 8px 24px -8px rgba(6,7,14,.5),
    inset 0 0 0 1.5px rgba(255,255,255,.08),
    inset 0 1px 1px rgba(255,255,255,.18);
}
.bd-phone__screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden;
  background: #0c0d13; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6);
}
.bd-island {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 999px; background: #050608; z-index: 20;
}
.bd-island::after { content: ""; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: #14202e; box-shadow: inset 0 0 2px rgba(90,140,200,.6); }

/* status bar */
.bd-status { position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 26px 0; font-size: 13px; font-weight: var(--w-semi); letter-spacing: -0.01em; }
.bd-status__r { display: inline-flex; align-items: center; gap: 5px; }
.bd-status__r .sig { width: 17px; height: 11px; -webkit-mask: linear-gradient(#000 0 0); position: relative; }
.bd-status__r .sig::before { content: ""; position: absolute; inset: auto 0 0 0; height: 100%;
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 4px); opacity: .9; }
.bd-status__r .bat { width: 22px; height: 11px; border-radius: 3px; border: 1.3px solid currentColor; position: relative; opacity: .9; }
.bd-status__r .bat::before { content: ""; position: absolute; inset: 1.5px; width: 64%; border-radius: 1px; background: currentColor; }
.bd-status__r .bat::after { content: ""; position: absolute; right: -3px; top: 50%; transform: translateY(-50%); width: 1.6px; height: 4px; border-radius: 0 2px 2px 0; background: currentColor; }

/* ════════════════════ WEB FRAME ════════════════════ */
.bd-web {
  position: relative; width: 100%; max-width: 720px; flex: none;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 50px 100px -34px rgba(6,7,14,.8), 0 10px 30px -12px rgba(6,7,14,.45), 0 0 0 1px rgba(255,255,255,.06);
}
.bd-web__bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px;
  background: #16171f; border-bottom: 1px solid #24262f; }
.bd-web__lights { display: inline-flex; gap: 8px; }
.bd-web__lights i { width: 11px; height: 11px; border-radius: 50%; }
.bd-web__lights i:nth-child(1) { background: #f0655a; }
.bd-web__lights i:nth-child(2) { background: #f5bb3f; }
.bd-web__lights i:nth-child(3) { background: #5ec466; }
.bd-web__url { flex: 1; max-width: 320px; margin: 0 auto; display: flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 14px; border-radius: 999px; background: #0d0e15;
  font-family: var(--mono); font-size: 12px; color: var(--text-on-ink-2); }
.bd-web__url svg { color: var(--ok); flex: none; }
.bd-web__body { position: relative; }

/* shared count + ring */
.bd-ring { position: relative; display: grid; place-items: center; border-radius: 50%; }
.bd-ring__c { display: grid; place-items: center; border-radius: 50%; text-align: center; }

/* ══════════════════════════════════════════════════════════
   1 · MATCHMAKING — "Sangam"  (a real matrimony app · ivory / emerald / brass)
   App shell: top bar + scrolling match view + bottom tab bar.
   Auspicious emerald + warm brass-gold — premium, never alarm-red.
   ══════════════════════════════════════════════════════════ */
.bd-sg {
  --sg-ink: #1d2a24; --sg-mut: #7e8b83; --sg-line: #e7e6dc;
  --sg-green: #12674e; --sg-green-d: #0c4f3c; --sg-gold: #b1832f; --sg-sage: #2f8a63;
  display: flex; flex-direction: column; color: var(--sg-ink);
  background: #f6f3ec; }
.bd-sg .bd-status { color: #4e5a52; }

/* top app bar (brand + notifications + account) */
.bd-sg__bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 18px 11px; }
.bd-sg__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: var(--w-bold); letter-spacing: -0.03em; color: var(--sg-ink); }
.bd-sg__logo { display: inline-flex; align-items: center; }
.bd-sg__logo svg { display: block; }
.bd-sg__tools { display: inline-flex; align-items: center; gap: 13px; }
.bd-sg__ico { position: relative; color: #66726a; display: grid; place-items: center; }
.bd-sg__dot { position: absolute; top: 0; right: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--sg-gold); border: 1.5px solid #f6f3ec; }
.bd-sg__me { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: var(--w-semi);
  color: #fff; background: linear-gradient(150deg, #5f7d70, #2f5246); box-shadow: 0 2px 6px -1px rgba(20,40,30,.35); }

/* scrolling content area */
.bd-sg__scroll { flex: 1; overflow: hidden; padding: 2px 16px 0; display: flex; flex-direction: column; gap: 6px;
  -webkit-mask-image: linear-gradient(180deg, #000 92%, transparent 100%); mask-image: linear-gradient(180deg, #000 92%, transparent 100%); }

/* candidate header */
.bd-sg__cand { display: flex; align-items: center; gap: 13px; }
.bd-sg__photo { position: relative; flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  font-size: 20px; font-weight: var(--w-semi); color: #fff;
  background: linear-gradient(155deg, #2f8f6c, #12674e 56%, #0a4734); box-shadow: 0 8px 18px -7px rgba(15,80,60,.5); }
.bd-sg__online { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; background: #37b06a; border: 2.5px solid #f6f3ec; }
.bd-sg__cinfo { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-sg__cname { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: var(--w-semi); letter-spacing: -0.02em; color: var(--sg-ink); }
.bd-sg__seal { flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #d2ab5d, #b1832f); box-shadow: 0 1px 3px -1px rgba(150,110,40,.6); }
.bd-sg__cmeta { font-size: 12.5px; color: var(--sg-mut); }
.bd-sg__cmeta--2 { font-size: 11.5px; color: #9aa49d; }

/* compatibility card — the /v1/match/ashtakoot result */
.bd-sg__compat { display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid var(--sg-line);
  border-radius: 20px; padding: 10px 18px 12px; box-shadow: 0 10px 26px -18px rgba(20,60,45,.3); }
.bd-sg__clabel { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sg-mut); }
.bd-sg .bd-ring { width: 66px; height: 66px; margin-top: 6px;
  background: conic-gradient(from -90deg, var(--sg-gold) 0%, var(--sg-green) calc(var(--p,78) * 1%), #e7ecdf 0); }
.bd-sg .bd-ring__c { width: 53px; height: 53px; background: #fff; box-shadow: inset 0 0 0 1px #eef1e9; }
.bd-sg .bd-ring__c b { font-size: 20px; font-weight: var(--w-bold); letter-spacing: -0.03em; line-height: 1; color: var(--sg-green); }
.bd-sg .bd-ring__c small { font-size: 8px; font-family: var(--mono); color: var(--sg-mut); margin-top: 2px; white-space: nowrap; }
.bd-sg__verdict { margin-top: 6px; font-size: 14px; font-weight: var(--w-semi); letter-spacing: -0.01em; color: var(--sg-ink); white-space: nowrap; }
/* understated dosha status — icon + label, no colored pills */
.bd-sg__doshas { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.bd-dosha { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: var(--w-medium); color: #5d6a62; white-space: nowrap; }
.bd-dosha svg { color: var(--sg-sage); }
.bd-dosha + .bd-dosha { padding-left: 10px; border-left: 1px solid var(--sg-line); }
.bd-dosha.is-note { color: #8a6a22; }
.bd-dosha.is-note svg { color: #b88a2e; }

/* action row */
.bd-sg__actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.bd-sg__btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 13px;
  font-size: 14px; font-weight: var(--w-semi); letter-spacing: -0.01em; cursor: pointer; }
.bd-sg__btn.ghost { background: #fff; border: 1px solid var(--sg-line); color: var(--sg-ink); }
.bd-sg__btn.ghost svg { color: var(--sg-green); }
.bd-sg__btn.primary { border: none; background: linear-gradient(160deg, #18785b, #0c4f3c); color: #fff; box-shadow: 0 8px 18px -7px rgba(12,79,60,.6); }

/* ashtakoot breakdown */
.bd-sg__khead { display: flex; align-items: baseline; justify-content: space-between; margin-top: 2px; }
.bd-sg__khead span { font-size: 13px; font-weight: var(--w-semi); color: var(--sg-ink); }
.bd-sg__khead a { font-size: 12px; color: var(--sg-green); font-weight: var(--w-medium); }
.bd-koots { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px; padding-bottom: 4px; }
.bd-koot { display: flex; flex-direction: column; gap: 4px; }
.bd-koot__top { display: flex; align-items: baseline; justify-content: space-between; }
.bd-koot__name { font-size: 11px; color: #5f6b63; font-weight: var(--w-medium); white-space: nowrap; }
.bd-koot__val { font-family: var(--mono); font-size: 10px; color: var(--sg-ink); font-weight: var(--w-semi); }
.bd-koot__bar { height: 5px; border-radius: 999px; background: #e6e3d7; overflow: hidden; }
.bd-koot__bar i { display: block; height: 100%; border-radius: 999px; width: var(--w, 100%);
  background: linear-gradient(90deg, var(--sg-gold), var(--sg-green)); transition: width 1s var(--ease-out); }
.bd-koot__bar i.low { background: #c7bfa6; }

/* bottom tab bar */
.bd-sg__nav { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 9px 6px 12px;
  background: #fff; border-top: 1px solid var(--sg-line); }
.bd-sg__tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: var(--w-medium); color: #a0a89f; }
.bd-sg__tab svg { color: #abb2a7; }
.bd-sg__tab.is-on, .bd-sg__tab.is-on svg { color: var(--sg-green); }
.bd-sg__nbadge { position: absolute; top: -3px; right: 13px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px;
  background: var(--sg-green); color: #fff; font-size: 9px; font-weight: var(--w-semi); display: grid; place-items: center; }

/* ══════════════════════════════════════════════════════════
   2 · AI ASTROLOGER — "Astra"  (Duolingo-friendly chat · light, human)
   A warm astrologer you text with — proper nav bar, avatar + menu,
   rounded bubbles, encouraging human voice. No MCP jargon.
   ══════════════════════════════════════════════════════════ */
.bd-as { display: flex; flex-direction: column; background: #f4f3fb; color: #2a2740; }
.bd-as .bd-status { color: #5b5570; }

/* top nav bar — back · avatar+name · menu */
.bd-as__bar { display: flex; align-items: center; gap: 10px; padding: 5px 13px 9px; background: #fff; border-bottom: 1px solid #eceaf4; }
.bd-as__back, .bd-as__menu { flex: none; color: #9a95ad; display: grid; place-items: center; }
.bd-as__id { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.bd-as__ava { position: relative; flex: none; width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #9384f8, #6a5cf0); box-shadow: 0 4px 10px -3px rgba(106,92,240,.55); }
.bd-as__online { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #35c759; border: 2px solid #fff; }
.bd-as__who { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.bd-as__who b { font-size: 15px; font-weight: var(--w-semi); letter-spacing: -0.01em; color: #211f33; }
.bd-as__who em { font-style: normal; font-size: 11px; color: #8f8aa3; white-space: nowrap; }

/* thread — newest pinned to bottom, like a real chat */
.bd-as__thread { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px 14px 8px; }
.bd-as__day { align-self: center; font-size: 10.5px; font-weight: var(--w-medium); color: #aaa3c0; margin-bottom: 3px; }
.bd-as__row { display: flex; gap: 8px; align-items: flex-end; }
.bd-as__row--u { justify-content: flex-end; }
.bd-as__row--a { justify-content: flex-start; }
.bd-as__avas { flex: none; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 2px;
  background: linear-gradient(150deg, #9384f8, #6a5cf0); }
.bd-as__msgs { display: flex; flex-direction: column; gap: 6px; max-width: 82%; }
.bd-bub { font-size: 14px; line-height: 1.5; padding: 11px 14px; border-radius: 20px; }
.bd-bub--a { background: #fff; border: 1px solid #ece9f4; color: #38344e; border-bottom-left-radius: 7px; box-shadow: 0 3px 10px -6px rgba(40,30,80,.18); }
.bd-bub--a b { color: #6a5cf0; font-weight: var(--w-semi); }
.bd-bub--u { max-width: 82%; background: linear-gradient(150deg, #7b6ef5, #675bf0); color: #fff; border-bottom-right-radius: 7px; box-shadow: 0 7px 16px -7px rgba(103,91,240,.55); }

/* input */
.bd-as__input { display: flex; align-items: center; gap: 10px; margin: 6px 14px 16px; padding: 8px 8px 8px 17px;
  background: #fff; border: 1px solid #e9e6f2; border-radius: 24px; box-shadow: 0 3px 10px -6px rgba(40,30,80,.18); }
.bd-as__input span { flex: 1; font-size: 13.5px; color: #a09bb2; }
.bd-as__send { width: 37px; height: 37px; border-radius: 50%; background: linear-gradient(150deg, #7b6ef5, #675bf0); color: #fff;
  display: grid; place-items: center; flex: none; box-shadow: 0 5px 12px -4px rgba(103,91,240,.6); }

/* ══════════════════════════════════════════════════════════
   3 · HOROSCOPE — "Aura"  (Headspace-calm · one warm dawn palette)
   ══════════════════════════════════════════════════════════ */
.bd-horo { display: flex; flex-direction: column; color: #46303f;
  background: linear-gradient(180deg, #ffe7d2 0%, #f7d4ca 46%, #e7cdd6 100%); }
.bd-horo .bd-status { color: #7a5a62; }
.bd-horo__bar { display: flex; align-items: center; justify-content: space-between; padding: 5px 20px 0; }
.bd-horo__brand { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: var(--w-bold); letter-spacing: -0.02em; color: #46303f; }
.bd-horo__brand svg { color: #ce8a5d; }
.bd-horo__ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: var(--w-semi); color: #fff;
  background: linear-gradient(150deg, #e3a571, #c47c53); box-shadow: 0 2px 6px -1px rgba(150,80,50,.3); }
.bd-horo__scene { position: relative; height: 110px; margin: 2px 0 0; overflow: hidden; }
.bd-horo__sun { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fff5e0, #ffd98e 52%, #f7b277 100%);
  box-shadow: 0 0 50px 12px rgba(255,190,130,.5); animation: bdGlow 6s ease-in-out infinite; }
@keyframes bdGlow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: .96; } 50% { transform: translateX(-50%) scale(1.05); opacity: 1; } }
.bd-horo__ridge { position: absolute; inset: auto 0 0 0; height: 56px; }
.bd-horo__ridge i { position: absolute; bottom: 0; border-radius: 50% 50% 0 0; }
.bd-horo__ridge i:nth-child(1) { left: -10%; width: 55%; height: 44px; background: #e8b6a8; opacity: .8; }
.bd-horo__ridge i:nth-child(2) { right: -8%; width: 60%; height: 54px; background: #dc9f92; opacity: .9; }
.bd-horo__ridge i:nth-child(3) { left: 28%; width: 50%; height: 36px; background: #f0c9bd; opacity: .7; }
.bd-horo__body { background: #fffaf6; border-radius: 26px 26px 0 0; margin-top: -14px; padding: 20px 22px 14px; flex: 1; position: relative; z-index: 2;
  box-shadow: 0 -10px 30px -16px rgba(120,70,60,.25); }
.bd-horo__k { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #bd8b9e; }
.bd-horo__sign { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.bd-horo__sign b { font-size: 30px; font-weight: var(--w-bold); letter-spacing: -0.03em; color: #3a2832; }
.bd-horo__sign em { font-style: normal; font-size: 12px; font-family: var(--mono); color: #bd8b9e; }
.bd-horo__read { margin-top: 13px; font-size: 14.5px; line-height: 1.6; color: #5a4450; }
.bd-horo__chips { display: flex; align-items: center; gap: 12px; margin-top: 15px; }
.bd-hchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: var(--w-medium); white-space: nowrap; }
.bd-hchip + .bd-hchip { padding-left: 12px; border-left: 1px solid #efe0dc; }
.bd-hchip.do { color: #5f7d57; }
.bd-hchip.dont { color: #a96e51; }
.bd-horo__luck { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 17px; }
.bd-luck { background: #faf0ea; border-radius: 16px; padding: 12px 8px; text-align: center; }
.bd-luck small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; color: #c19fab; }
.bd-luck b { display: block; font-size: 17px; font-weight: var(--w-semi); color: #3a2832; margin-top: 4px; letter-spacing: -0.01em; }
/* bottom tab bar */
.bd-horo__nav { display: grid; grid-template-columns: repeat(4,1fr); align-items: center; padding: 9px 8px 12px; background: #fffaf6; border-top: 1px solid #f2e3dd; }
.bd-htab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: var(--w-medium); color: #c5acb3; }
.bd-htab svg { color: #cdb5bc; }
.bd-htab.is-on, .bd-htab.is-on svg { color: #c87a52; }

/* ══════════════════════════════════════════════════════════
   4 · FULL APP — "Astralabs" natal console (light, premium SaaS · teal)
   ══════════════════════════════════════════════════════════ */
.bd-web--light .bd-web__bar { background: #edecf0; border-bottom-color: #dedce4; }
.bd-web--light .bd-web__url { background: #fff; color: #6b6f7e; }

.bd-full { display: flex; flex-direction: column; background: #f5f7f7; min-height: 478px; color: #18201f; }
.bd-full__top { display: flex; align-items: center; gap: 16px; padding: 0 18px; height: 52px; background: #fff; border-bottom: 1px solid #e8ecec; }
.bd-full__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: var(--w-bold); letter-spacing: -0.02em; color: #15201e; }
.bd-full__logo { display: block; flex: none; }
.bd-full__nav { display: flex; gap: 3px; }
.bd-full__nav a { font-size: 13px; color: #6b7472; padding: 6px 11px; border-radius: 8px; }
.bd-full__nav a.is-on { color: #0c6770; background: #e2f3f4; font-weight: var(--w-semi); }
.bd-full__user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bd-full__live { font-family: var(--mono); font-size: 10px; color: #16855a; background: #e4f5ec; padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.bd-full__live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #16855a; }
.bd-full__ava { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(150deg, #e7b06a, #c98a3a); color: #2a1a06; display: grid; place-items: center; font-size: 11px; font-weight: var(--w-semi); flex: none; }
.bd-full__main { padding: 18px; min-width: 0; }
.bd-full__hd { margin-bottom: 14px; }
.bd-full__hd h4 { font-size: 18px; font-weight: var(--w-semi); letter-spacing: -0.02em; color: #14151b; }
.bd-full__hd p { font-size: 11.5px; color: #71807c; margin-top: 4px; }
.bd-full__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }
.bd-scard { background: #fff; border: 1px solid #ececf1; border-radius: 12px; padding: 12px 13px; box-shadow: 0 1px 2px rgba(20,21,27,.04); }
.bd-scard small { font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: #a8a499; }
.bd-scard b { display: block; font-size: 19px; font-weight: var(--w-semi); letter-spacing: -0.02em; color: #14151b; margin: 5px 0 2px; }
.bd-scard em { font-style: normal; font-size: 11px; color: #0c6770; white-space: nowrap; }
.bd-full__cols { display: grid; grid-template-columns: 198px 1fr; gap: 12px; }
.bd-fcard { background: #fff; border: 1px solid #ececf1; border-radius: 14px; padding: 14px; box-shadow: 0 1px 2px rgba(20,21,27,.04); }
.bd-fcard__h { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: #a8a499; margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; }
.bd-fcard--chart { display: flex; flex-direction: column; align-items: center; }
.bd-chart { width: 100%; max-width: 158px; }
.bd-chart .ln { stroke: #bfdedf; stroke-width: 1; fill: none; }
.bd-chart .ln2 { stroke: #e0eeef; stroke-width: 1; fill: none; }
.bd-chart .pl { fill: #54514a; font-family: var(--mono); font-size: 8px; font-weight: 600; }
.bd-chart .hl { fill: #0e7c86; }
.bd-prows { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.bd-prow { display: grid; grid-template-columns: 22px 1fr auto; gap: 9px; align-items: center; padding: 5px 4px; font-size: 12px; border-radius: 7px; transition: background .25s; }
.bd-prow.is-hot { background: #e7f4f5; }
.bd-prow .g { width: 21px; height: 21px; border-radius: 50%; background: #ecf5f6; color: #0c6770; display: grid; place-items: center; font-size: 12px; }
.bd-prow .nm { color: #1a2422; white-space: nowrap; font-weight: var(--w-medium); }
.bd-prow .dg { color: #7c857f; font-size: 11px; white-space: nowrap; }
/* dasha — proportional Vimshottari timeline */
.bd-dasha { margin-top: 12px; }
.bd-dasha__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.bd-dasha__head b { font-size: 13px; font-weight: var(--w-semi); color: #15201e; white-space: nowrap; }
.bd-dasha__head small { font-size: 11px; color: #6f7c78; white-space: nowrap; }
.bd-dline { display: flex; gap: 3px; height: 32px; }
.bd-dseg { flex-grow: var(--g,1); flex-basis: 0; min-width: 0; display: grid; place-items: center; overflow: hidden;
  background: #e9efee; color: #82908b; font-size: 9.5px; font-weight: var(--w-medium); border-radius: 6px; }
.bd-dseg i { font-style: normal; padding: 0 2px; }
.bd-dseg.is-on { background: #0e7c86; background: linear-gradient(180deg, #1aa6b0, #0e7c86); color: #fff; font-size: 11px; font-weight: var(--w-semi);
  box-shadow: 0 5px 12px -4px rgba(14,124,134,.5); }

/* ══════════════════════════════════════════════════════════
   5 · TAROT — "Lumen"  (Monument Valley twilight)
   ══════════════════════════════════════════════════════════ */
.bd-tarot { display: flex; flex-direction: column; align-items: center; text-align: center; color: #f0e6d2;
  background: linear-gradient(185deg, #2b2a57 0%, #1e1c44 38%, #15132e 70%, #0e0c1c 100%); }
.bd-tarot::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(78% 42% at 50% 12%, rgba(231,184,122,.16), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0); }
.bd-tarot .bd-status { color: #d9cfe8; width: 100%; }
.bd-tarot__bar { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 7px 20px 0; }
.bd-tarot__brand { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: var(--w-bold); letter-spacing: -0.01em; color: #f6ecd6; }
.bd-tarot__brand svg { color: #e7b87a; }
.bd-tarot__menu { color: #a89cce; display: grid; place-items: center; }
.bd-tarot__k { position: relative; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #b9a8d8; margin-top: 12px; white-space: nowrap; }
.bd-tarot__h { position: relative; font-size: 21px; font-weight: var(--w-semi); letter-spacing: -0.01em; color: #fbf4e6; margin-top: 5px; }
.bd-spread { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin-top: 13px; }
.bd-card { display: flex; flex-direction: column; align-items: center; gap: 10px; perspective: 800px; }
.bd-card__flip { position: relative; width: 64px; height: 104px; transform-style: preserve-3d; transition: transform .7s var(--ease-out); }
.bd-card.flipped .bd-card__flip { transform: rotateY(180deg); }
.bd-card__back, .bd-card__face { position: absolute; inset: 0; border-radius: 9px; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.bd-card__back { background: linear-gradient(160deg, #2a2150, #181230); border: 1px solid rgba(231,184,122,.4); display: grid; place-items: center; }
.bd-card__back::after { content: ""; width: 22px; height: 22px; border: 1.5px solid rgba(231,184,122,.7); transform: rotate(45deg); }
.bd-card__face { transform: rotateY(180deg); border: 1px solid rgba(231,184,122,.55);
  box-shadow: 0 0 22px rgba(231,184,122,.25), inset 0 0 0 3px rgba(20,16,31,.6); display: flex; flex-direction: column; }
.bd-card__art { flex: 1; position: relative; overflow: hidden; }
.bd-card__art i { position: absolute; }
/* A — Past · warm dusk geometry (triangles) */
.bd-card--star .bd-card__art { background: linear-gradient(165deg, #d98aa0 0%, #6f4a86 100%); }
.bd-card--star .s1 { inset: 0; background: #3f2c63; clip-path: polygon(0 100%, 0 60%, 100% 100%); }
.bd-card--star .s2 { left: 50%; bottom: 12%; width: 56%; height: 56%; transform: translateX(-50%); background: #f4cb80; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
/* B — Present · cool concentric arcs */
.bd-card--moon .bd-card__art { background: linear-gradient(160deg, #3f8088 0%, #233f6b 100%); }
.bd-card--moon .s1 { right: -28%; top: -22%; width: 118%; height: 118%; border-radius: 50%; border: 9px solid rgba(243,227,184,.55); }
.bd-card--moon .s2 { left: -22%; bottom: -24%; width: 78%; height: 78%; border-radius: 50%; background: rgba(120,205,205,.42); }
/* C — Future · amber prism bands */
.bd-card--sun .bd-card__art { background: linear-gradient(120deg, #e3a85c 0%, #b65a86 100%); }
.bd-card--sun .s1 { inset: -10%; background: repeating-linear-gradient(122deg, transparent 0 11px, rgba(255,255,255,.16) 11px 22px); }
.bd-card--sun .s2 { left: 30%; top: 26%; width: 42%; height: 42%; background: #2d1c40; transform: rotate(45deg); }
.bd-card__name { padding: 5px 2px 6px; font-family: var(--mono); font-size: 9px; letter-spacing: .03em; color: #f0e0b0; background: #14101f; border-top: 1px solid rgba(231,184,122,.3); }
.bd-card.featured .bd-card__flip { width: 72px; height: 116px; }
.bd-card__label { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: #b9a8d8; }
.bd-tarot__read { position: relative; margin: 13px 26px 0; font-size: 13.5px; line-height: 1.56; color: #ddd0bb; }
.bd-tarot__read b { color: #f3e3b8; font-weight: var(--w-semi); }
.bd-tarot__keys { position: relative; width: 100%; padding: 4px 26px 0; margin-top: 14px; }
.bd-tkey { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid rgba(231,184,122,.16); text-align: left; }
.bd-tkey__pos { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #9a8cc0; }
.bd-tkey b { font-size: 13px; font-weight: var(--w-semi); color: #f3e3b8; }
.bd-tkey__m { font-size: 11px; color: #b9a8d8; white-space: nowrap; }
.bd-tarot__foot { position: relative; margin: auto 0 9px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; color: #8073a0; white-space: nowrap; }
/* bottom tab bar */
.bd-tarot__nav { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: repeat(4,1fr); align-items: center;
  padding: 8px 6px 11px; background: rgba(13,11,26,.7); border-top: 1px solid rgba(231,184,122,.16); }
.bd-ttab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: var(--w-medium); color: #8073a0; }
.bd-ttab svg { color: #8073a0; }
.bd-ttab.is-on, .bd-ttab.is-on svg { color: #e7b87a; }

/* ══════════════════════════════════════════════════════════
   6 · NUMEROLOGY — "Digit"  (light editorial luxe · warm paper + champagne-bronze)
   ══════════════════════════════════════════════════════════ */
.bd-num { display: flex; flex-direction: column; align-items: center; text-align: center; color: #2a2117;
  background: radial-gradient(125% 72% at 50% -6%, #fcf8f0 0%, #f4ede0 56%, #eee4d2 100%); }
.bd-num::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(56% 28% at 50% 8%, rgba(201,154,78,.14), transparent 72%); -webkit-mask: linear-gradient(#000 0 0); }
.bd-num .bd-status { color: #6b5e48; width: 100%; }
.bd-num__bar { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 5px 20px 0; }
.bd-num__brand { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: var(--w-bold); letter-spacing: -0.02em; color: #2a2117; }
.bd-num__ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: var(--w-semi); color: #fff;
  background: linear-gradient(150deg, #c79a4e, #a9762e); box-shadow: 0 2px 6px -1px rgba(140,95,30,.35); }
.bd-num__k { position: relative; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #a08a64; margin-top: 8px; }
.bd-num__glyph { position: relative; margin-top: 0; line-height: 1; display: inline-block; }
.bd-num__glyph::before { content: ""; position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%); width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,154,78,.2), transparent 62%); z-index: 0; }
.bd-num__digit { position: relative; z-index: 1; font-size: 92px; font-weight: var(--w-semi); letter-spacing: -0.05em;
  background: linear-gradient(162deg, #d8af65 0%, #b6852f 52%, #8f6320 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.bd-num__calc { position: relative; display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; font-family: var(--mono); font-size: 11px; white-space: nowrap;
  color: #7d6e54; background: #fbf5e9; border: 1px solid #ece0c8; padding: 6px 13px; border-radius: 999px; }
.bd-num__calc b { color: #a9762e; }
.bd-num__name { position: relative; font-size: 20px; font-weight: var(--w-semi); letter-spacing: -0.02em; color: #2a2117; margin-top: 12px; }
.bd-num__desc { position: relative; font-size: 12.5px; line-height: 1.55; color: #7c6e58; margin-top: 6px; padding: 0 30px; }
.bd-num__core { position: relative; width: 100%; padding: 0 24px; margin-top: auto; }
.bd-num__corek { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #a8966f; text-align: left; padding: 0 2px 2px; }
.bd-corerow { display: flex; align-items: center; gap: 13px; padding: 6px 2px; border-top: 1px solid #ece1cd; text-align: left; }
.bd-corerow__n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: var(--w-semi); color: #a9762e;
  background: #f8efdd; border: 1px solid #e7d6b6; }
.bd-corerow__l { flex: 1; min-width: 0; }
.bd-corerow__l b { display: block; font-size: 14px; color: #2a2117; font-weight: var(--w-semi); }
.bd-corerow__l span { display: block; font-size: 11px; color: #9a8a70; margin-top: 1px; }
.bd-corerow__c { color: #c3b393; flex: none; }
/* bottom tab bar */
.bd-num__nav { position: relative; z-index: 2; width: 100%; margin-top: 10px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center;
  padding: 8px 6px 11px; background: #fbf6ec; border-top: 1px solid #ece1cd; }
.bd-ntab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: var(--w-medium); color: #b3a384; }
.bd-ntab svg { color: #bcab8a; }
.bd-ntab.is-on, .bd-ntab.is-on svg { color: #a9762e; }

/* ─── caption strip under stage (what this is) ─── */
.bd-caption { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.bd-caption__t { font-size: var(--t-base); color: var(--text-on-ink-2); }
.bd-caption__t b { color: var(--text-on-ink); font-weight: var(--w-semi); }
.bd-caption__ep { font-family: var(--mono); font-size: 11px; color: var(--brand-glow); white-space: nowrap;
  background: rgba(142,162,255,.1); border: 1px solid rgba(142,162,255,.2); padding: 4px 10px; border-radius: 999px; }

/* ─── responsive ─── */
@media (max-width: 860px) {
  .bd-web { max-width: 100%; width: 100%; min-width: 0; }
  .bd-phone { transform: scale(.96); }
}
@media (max-width: 540px) {
  .buildshow,
  .buildshow__stage,
  .bpane {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .bd-web {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .bd-phone {
    width: min(100%, 300px);
    transform: none;
  }
  .bd-caption {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .bd-caption__ep { white-space: normal; }
  .bd-full__cols { grid-template-columns: 1fr; }
  .bd-web__body,
  .bd-full__main,
  .bd-fcard { min-width: 0; max-width: 100%; }
  .build .buildshow__stage,
  .build .bpane { overflow-x: clip; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bpane .bd-phone, .bpane .bd-web { animation: none; }
  .bd-match__heart svg, .bd-horo__sun, .bd-typing i { animation: none; }
  .bd-koot .bd-koot__bar i, .bd-dasha__track i { transition: none; }
}

/* ════════════════════════════════════════════════════════════
   SCROLL-SEQUENCE — the six products advance as you scroll.
   A pinned stage swaps devices; a progress rail tracks where
   you are. (Was a hover/click tab switcher.)
   ════════════════════════════════════════════════════════════ */
.buildscroll { position: relative; }

/* layout override: progress rail + pinned stage */
.buildshow { grid-template-columns: 268px minmax(0, 1fr); gap: var(--sp-12); align-items: center; margin-top: 0; }
.buildshow__rail { align-self: center; }

/* the rail */
.brail { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.brail::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.10); }
.brail__fill { position: absolute; left: 8px; top: 20px; width: 2px; border-radius: 2px; z-index: 1;
  height: calc((100% - 40px) * var(--p, 0));
  background: linear-gradient(180deg, var(--brand-sky), var(--brand-glow));
  box-shadow: 0 0 8px rgba(142,162,255,.55); transition: height .12s linear; }
.brail__item { position: relative; z-index: 2; display: grid; grid-template-columns: 16px 1fr; column-gap: 15px; align-items: start;
  padding: 13px 12px 13px 0; cursor: pointer; border-radius: 11px; transition: background .2s; outline: none; }
.brail__item:hover { background: rgba(255,255,255,.03); }
.brail__item:focus-visible { background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px var(--brand-line); }
.brail__dot { grid-column: 1; grid-row: 1; width: 14px; height: 14px; margin: 4px 0 0 1px; border-radius: 50%;
  background: #15161e; border: 2px solid rgba(255,255,255,.22); transition: border-color .3s, background .3s, box-shadow .3s; }
.brail__name { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 1px;
  font-size: var(--t-base); font-weight: var(--w-semi); letter-spacing: -0.02em; color: var(--text-on-ink-2); transition: color .3s; }
.brail__cat { font-size: var(--t-eyebrow); font-weight: var(--w-regular); letter-spacing: 0; color: var(--text-on-ink-3); transition: color .3s; }
.brail__desc { grid-column: 2; grid-row: 2; font-size: var(--t-sm); line-height: 1.52; color: var(--text-on-ink-2);
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease-out), opacity .3s, margin-top .3s; }
.brail__item.is-active { background: rgba(255,255,255,.045); }
.brail__item.is-active .brail__dot { border-color: var(--brand-glow); background: var(--brand-glow); box-shadow: 0 0 0 5px rgba(142,162,255,.14); }
.brail__item.is-active .brail__name { color: #fff; }
.brail__item.is-active .brail__cat { color: var(--brand-glow); }
.brail__item.is-active .brail__desc { max-height: 90px; opacity: 1; margin-top: 7px; }

/* the pinned stage — all panes stacked, crossfaded */
.buildshow__stage { min-height: 700px; padding: 0; }
.bpane { position: absolute; inset: 0; width: 100%; display: grid; place-items: center;
  opacity: 0; transform: translateY(28px) scale(.984); pointer-events: none;
  transition: opacity .55s var(--ease-out), transform .65s var(--ease-out); }
.bpane.is-active { opacity: 1; transform: none; pointer-events: auto; z-index: 3; animation: none; }
.bpane .bd-phone, .bpane .bd-web { animation: none; }

/* desktop: pin the stage and stretch the scroll track */
@media (min-width: 981px) {
  .buildscroll { height: calc(100vh + (var(--steps, 6) * 64vh)); }
  .buildscroll__sticky { position: sticky; top: var(--nav-h); min-height: calc(100vh - var(--nav-h)); display: grid; align-content: center; padding-block: var(--sp-8); }
}

@media (prefers-reduced-motion: reduce) {
  .bpane { transition: opacity .3s linear; transform: none; }
  .bpane.is-active { transform: none; }
}

/* mobile / tablet: no pinning — the products simply stack and
   reveal in sequence on a normal scroll */
@media (max-width: 980px) {
  .buildscroll { height: auto !important; }
  .buildscroll__sticky { position: static; min-height: 0; display: block; padding-block: 0; }
  .buildshow { grid-template-columns: 1fr; gap: 0; }
  .buildshow__rail { display: none; }
  .buildshow__stage { position: static; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 64px; padding: var(--sp-4) 0; }
  .stage-fx { display: none; }
  .bpane { position: static; inset: auto; opacity: 1; transform: none; pointer-events: auto;
    display: flex; flex-direction: column; align-items: center; }
}
