/* Shared BlueBear Devs site navigation — used by index.html and every /apps/*.html page */
section[id] { scroll-margin-top: 76px; }
.bbnav, .bbnav * { box-sizing: border-box; }
.bbnav { position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(13,27,46,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07); font-family: 'Inter', system-ui, sans-serif; }
.bbnav-inner { max-width: 1152px; margin: 0 auto; height: 60px; display: flex;
  align-items: center; justify-content: space-between; padding: 0 24px; }
.bbnav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: #edf4fa; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.bbnav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.bbnav-brand b { color: #22d3ee; }
.bbnav-links { display: flex; align-items: center; gap: 6px; }
.bbnav-links a, .bbnav-dd-btn { color: #cbd5e1; text-decoration: none; font-size: 14px;
  font-weight: 500; padding: 8px 12px; border-radius: 8px; background: none; border: 0;
  cursor: pointer; font-family: inherit; transition: color .15s, background .15s; }
.bbnav-links a:hover, .bbnav-dd-btn:hover { color: #22d3ee; background: rgba(34,211,238,.08); }
.bbnav-cta { color: #06222b !important; background: #22d3ee !important; font-weight: 700 !important; }
.bbnav-cta:hover { background: #67e8f9 !important; }
.bbnav-dd { position: relative; }
.bbnav-dd-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 248px;
  max-height: 72vh; overflow: auto; background: #0d1b2e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; box-shadow: 0 20px 50px -15px rgba(0,0,0,.6); padding: 8px; display: none; }
.bbnav-dd.open .bbnav-dd-menu { display: block; }
.bbnav-dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: #cbd5e1;
  text-decoration: none; font-size: 14px; white-space: nowrap; }
.bbnav-dd-menu a:hover { background: rgba(34,211,238,.1); color: #22d3ee; }
.bbnav-burger { display: none; background: none; border: 0; color: #edf4fa; font-size: 24px; cursor: pointer; padding: 4px 8px; }
@media (min-width: 821px) {
  .bbnav-dd:hover .bbnav-dd-menu, .bbnav-dd:focus-within .bbnav-dd-menu { display: block; }
}
@media (max-width: 820px) {
  .bbnav-burger { display: block; }
  .bbnav-links { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 2px; background: #0d1b2e; border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 12px; display: none; }
  .bbnav-links.open { display: flex; }
  .bbnav-dd { position: static; }
  .bbnav-dd-menu { position: static; min-width: 0; box-shadow: none; border: 0;
    background: rgba(255,255,255,.03); margin-top: 4px; }
  .bbnav-dd-menu a { white-space: normal; }
  .bbnav-cta { text-align: center; }
}

/* --- Shared site footer (matches the homepage) --- */
.bbfooter { border-top: 1px solid rgba(255,255,255,.07); background: #0b1526; color: #94a9be;
  font-family: 'Inter', system-ui, sans-serif; margin-top: 56px; text-align: left; }
.bbfooter * { box-sizing: border-box; }
.bbfooter-inner { max-width: 1152px; margin: 0 auto; padding: 48px 24px 8px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.bbfooter-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px;
  color: #edf4fa; text-decoration: none; }
.bbfooter-brand img { width: 32px; height: 32px; border-radius: 8px; }
.bbfooter-brand b { color: #22d3ee; }
.bbfooter-tag { margin-top: 14px; max-width: 44ch; font-size: 15px; line-height: 1.6; }
.bbfooter-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bbfooter-social { display: inline-flex; align-items: center; gap: 9px; margin-top: 0;
  padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); color: #cbd5e1; text-decoration: none;
  font-size: 13.5px; font-weight: 600; transition: color .2s, border-color .2s, background .2s; }
.bbfooter-social:hover { color: #22d3ee; border-color: rgba(34,211,238,.42); background: rgba(34,211,238,.08); }
.bbfooter-social svg { width: 17px; height: 17px; flex-shrink: 0; }
.bbfooter-col h4 { color: #edf4fa; font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.bbfooter-col a { display: block; color: #94a9be; text-decoration: none; font-size: 14px; padding: 5px 0; transition: color .15s; }
.bbfooter-col a:hover { color: #22d3ee; }
.bbfooter-bottom { max-width: 1152px; margin: 24px auto 0; padding: 24px;
  border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; text-align: center; }
@media (max-width: 680px) { .bbfooter-inner { grid-template-columns: 1fr; gap: 24px; } }

/* --- User guide pages --- */
.bbguide-draft { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.4); color: #fbbf24;
  border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.55; margin: 0 0 28px; }
.bbguide-before { background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.18);
  border-radius: 16px; padding: 20px 24px; margin: 4px 0 40px; }
.bbguide-before h3 { margin: 0 0 10px; font-size: 15px; color: #edf4fa; }
.bbguide-before ul { margin: 0; padding-left: 20px; }
.bbguide-before li { font-size: 14px; color: #94a9be; margin: 5px 0; line-height: 1.5; }
.bbguide-step { display: flex; gap: 16px; margin: 0 0 22px; }
.bbguide-num { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #22d3ee;
  color: #06222b; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.bbguide-body { flex: 1; min-width: 0; }
.bbguide-body h3 { margin: 5px 0 6px; font-size: 17px; color: #edf4fa; }
.bbguide-body p { margin: 0 0 6px; font-size: 15px; color: #94a9be; line-height: 1.6; }
.bbguide-body strong { color: #edf4fa; font-weight: 600; }
.bbguide-callout { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 10px 0 2px; line-height: 1.55; }
.bbguide-callout.note { background: rgba(34,211,238,.08); border-left: 3px solid #22d3ee; color: #cbd5e1; }
.bbguide-callout.warn { background: rgba(245,158,11,.1); border-left: 3px solid #f59e0b; color: #fcd9a5; }
.bbguide-faq { margin: 0 0 16px; }
.bbguide-faq .q { font-weight: 700; color: #edf4fa; margin: 0 0 2px; font-size: 15px; }
.bbguide-faq .a { margin: 0; color: #94a9be; font-size: 14px; line-height: 1.55; }

/* --- Project cards: an "app shelf". Each card's ambient colour is pulled from
   its own artwork (--bb-art), so every app reads as itself. --- */
.bbcard { position: relative; display: flex; flex-direction: column; height: 100%;
  isolation: isolate; overflow: hidden;
  padding: 22px 22px 18px; border-radius: 20px; text-decoration: none; background: #101c30;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 40px -28px rgba(0,0,0,.95);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .35s; }
.bbcard-aura { position: absolute; top: -78px; left: -40px; right: -40px; height: 210px; z-index: 0;
  background-image: var(--bb-art); background-size: cover; background-position: center;
  filter: blur(48px) saturate(1.6); opacity: .42; pointer-events: none; transition: opacity .35s; }
.bbcard::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,28,48,.22) 0%, rgba(16,28,48,.84) 44%, rgba(16,28,48,.97) 100%); }
.bbcard > *:not(.bbcard-aura) { position: relative; z-index: 2; }
.bbcard:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 26px 52px -26px rgba(0,0,0,1), 0 0 0 1px rgba(34,211,238,.12); }
.bbcard:hover .bbcard-aura { opacity: .62; }
.bbcard:focus-visible { outline: 2px solid #22d3ee; outline-offset: 3px; }

.bbcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bbcard-icon { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; background: #0d1b2e;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 10px 22px -10px rgba(0,0,0,.9); }
.bbcard-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .01em;
  border-width: 1px; border-style: solid; white-space: nowrap; backdrop-filter: blur(6px); }

.bbcard-title { margin: 17px 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #edf4fa; }
/* grows so the meter + footer always sit flush at the card's base */
.bbcard-desc { flex: 1 1 auto; margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #9fb2c8; }

.bbcard-meter { margin-bottom: 16px; }
.bbcard-meter-head { display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 7px; font-size: 10px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: #7f93a9; }
.bbcard-pct { font-variant-numeric: tabular-nums; font-weight: 700; color: #cfe0f0; letter-spacing: .04em; }
.bbcard-track { height: 3px; border-radius: 99px; background: rgba(255,255,255,.09); overflow: hidden; }
.bbcard-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg,#22d3ee,#3b82f6);
  box-shadow: 0 0 12px rgba(34,211,238,.55); }

.bbcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.bbcard-plat { font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: #7f93a9; }
.bbcard-go { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: #22d3ee; }
.bbcard-arrow { font-style: normal; transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.bbcard:hover .bbcard-arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .bbcard, .bbcard-arrow, .bbcard-aura { transition: none; }
  .bbcard:hover { transform: none; }
  .bbcard:hover .bbcard-arrow { transform: none; }
}

/* --- Screenshot gallery: a swipeable rail, App Store style --- */
.bbshots { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 2px 2px 16px; margin-bottom: 64px; }
/* sized by height so shots of slightly different aspect ratios line up evenly */
.bbshots img { flex: 0 0 auto; height: 560px; width: auto; border-radius: 18px;
  scroll-snap-align: start; background: #0d1b2e; border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 18px 42px -22px rgba(0,0,0,.95); transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.bbshots img:hover { transform: translateY(-4px); }
.bbshots::-webkit-scrollbar { height: 8px; }
.bbshots::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 99px; }
.bbshots::-webkit-scrollbar-thumb { background: rgba(34,211,238,.35); border-radius: 99px; }
.bbshots::-webkit-scrollbar-thumb:hover { background: rgba(34,211,238,.55); }
.bbshots-hint { margin: -52px 0 62px; font-size: 12.5px; color: #7f93a9; }
/* Single wide capture (desktop apps) rather than a phone rail */
/* Dark app UIs blend into the dark page, so sit them on a light "mat" with a
   brighter bezel — otherwise the capture reads as an empty box. */
.bbshot-single { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22); background: #0d1b2e;
  box-shadow: 0 0 0 7px rgba(255,255,255,.05), 0 0 0 8px rgba(255,255,255,.09),
              0 26px 54px -24px rgba(0,0,0,1);
  margin: 8px 0 22px; }
.bbshot-cap { margin: 0 0 64px; font-size: 12.5px; color: #7f93a9; }
@media (max-width: 600px) { .bbshots img { height: 420px; } }
@media (prefers-reduced-motion: reduce) { .bbshots img { transition: none; } .bbshots img:hover { transform: none; } }

/* Feature cards no longer carry a decorative emoji, so the heading sits flush.
   Specificity beats the per-page `.feature h3` rule. */
.features .feature h3:first-child { margin-top: 0; }

/* --- Featured app: the same "app shelf" language, scaled up as a showcase --- */
.bbfeat { position: relative; display: block; overflow: hidden; border-radius: 22px; text-decoration: none;
  background: #101c30; border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 50px -30px rgba(0,0,0,.95);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .35s; }
.bbfeat:hover { transform: translateY(-5px); border-color: rgba(34,211,238,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 32px 64px -28px rgba(0,0,0,1), 0 0 0 1px rgba(34,211,238,.14); }
.bbfeat:focus-visible { outline: 2px solid #22d3ee; outline-offset: 3px; }
.bbfeat-art { position: relative; height: 230px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bbfeat-aura { position: absolute; inset: -30%; background-image: var(--bb-art); background-size: cover;
  background-position: center; filter: blur(52px) saturate(1.7); opacity: .6; transition: opacity .35s; }
.bbfeat:hover .bbfeat-aura { opacity: .8; }
.bbfeat-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,28,48,.12), rgba(16,28,48,.88)); }
.bbfeat-icon { position: relative; z-index: 2; width: 104px; height: 104px; border-radius: 26px;
  object-fit: cover; background: #0d1b2e;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 22px 44px -18px rgba(0,0,0,.95); }
.bbfeat-status { position: absolute; top: 14px; right: 14px; z-index: 3; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; border: 1px solid; backdrop-filter: blur(8px); }
.bbfeat-status.is-live { color: #22d3ee; background: rgba(34,211,238,.14); border-color: rgba(34,211,238,.38); }
.bbfeat-status.is-beta { color: #4ade80; background: rgba(74,222,128,.13); border-color: rgba(74,222,128,.32); }
.bbfeat-status.is-dev  { color: #fbbf24; background: rgba(251,191,36,.13); border-color: rgba(251,191,36,.32); }
.bbfeat-body { padding: 22px 24px 24px; }
.bbfeat-title { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #edf4fa; }
.bbfeat-plat { margin: 0 0 12px; font-size: 10px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: #7f93a9; }
.bbfeat-desc { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: #9fb2c8; }
.bbfeat-go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #22d3ee; }
.bbfeat:hover .bbcard-arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .bbfeat, .bbfeat-aura { transition: none; }
  .bbfeat:hover { transform: none; }
}

/* --- Store / download buttons (shared; pattern first used on the Cipher page) --- */
.btn-ico { width: 18px; height: 18px; flex-shrink: 0; }
.cta-note { color: #94a9be; font-size: 13px; margin-bottom: 64px; }
/* Store badge button: small "GET IT ON" line above the store name */
.btn-store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px;
  border-radius: 999px; text-decoration: none; font-family: 'Inter', system-ui, sans-serif;
  background: #edf4fa; color: #0b1526; border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s; }
.btn-store:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 12px 30px -12px rgba(0,0,0,.65); }
.btn-store .btn-ico { width: 22px; height: 22px; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-store .s1 { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.btn-store .s2 { font-size: 15px; font-weight: 700; }
/* Not-yet-released variant: shown as a badge, deliberately not a link */
.btn-store.is-soon { background: rgba(255,255,255,.06); color: #94a9be;
  border: 1px dashed rgba(255,255,255,.22); cursor: default; }
.btn-store.is-soon:hover { transform: none; background: rgba(255,255,255,.06); box-shadow: none; }
.btn-store.is-soon .btn-ico { opacity: .55; }
