/* =========================================================
  BYBITUI — SITE (Inner pages styled like Home)
  File: assets/css/packs/site.css
  Scope: .bb-site
========================================================= */

/* ---------------------------------------------------------
   Tokens
--------------------------------------------------------- */
:root{
  --bb-bg: #0B0E11;
  --bb-panel: rgba(255,255,255,.04);
  --bb-border: rgba(255,255,255,.10);

  --bb-text: rgba(234,236,239,.95);
  --bb-muted: rgba(234,236,239,.70);
  --bb-dim: rgba(234,236,239,.55);

  --bb-yellow: #F7A600;
  --bb-yellow2: #FFD26A;

  --bb-radius: 18px;
  --bb-radius-sm: 14px;
  --bb-pill: 999px;

  --bb-container: 1160px;
  --bb-shadow: 0 10px 26px rgba(0,0,0,.26);
  --bb-focus: 0 0 0 3px rgba(247,166,0,.18), 0 0 0 1px rgba(247,166,0,.55);
  --bb-ease: .14s ease;

  /* Breadcrumb default (sync all pages) */
  --bb-bc-link: rgba(255, 210, 106, .88);
  --bb-bc-sep: rgba(234,236,239,.40);
}

/* Stop horizontal bars (theme + 100vw issues) */
html, body{ overflow-x: hidden; }

/* ---------------------------------------------------------
   Base / Layout
--------------------------------------------------------- */
.bb-site{
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden;

  background: var(--bb-bg) !important;
  color: var(--bb-text) !important;

  padding: 26px 0 84px;

  font-family: Roboto, "Segoe UI", Arial, system-ui, -apple-system, sans-serif !important;
  font-weight: 500 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Hero offset vars (fixed header) */
  --bb-header-offset: 78px;
  --bb-hero-gap: 18px;
}

.bb-site *{ box-sizing: border-box; }
.bb-site img{ max-width: 100%; height: auto; }

.bb-site::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(900px 520px at 16% 12%, rgba(247,166,0,.14), rgba(0,0,0,0) 60%),
    radial-gradient(900px 520px at 72% 55%, rgba(255,255,255,.06), rgba(0,0,0,0) 62%),
    linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.20) 55%, rgba(0,0,0,.86));
  pointer-events:none;
  z-index:0;
}
.bb-site > *{ position: relative; z-index: 1; }

.bb-site .bb-container{
  width: min(var(--bb-container), calc(100% - 32px));
  margin: 0 auto;
}

/* When jumping to #section, keep headings visible under fixed header */
.bb-site [id]{ scroll-margin-top: calc(var(--bb-header-offset) + 14px); }

/* Responsive header offset */
@media (max-width: 980px){ .bb-site{ --bb-header-offset: 72px; } }
@media (max-width: 720px){ .bb-site{ --bb-header-offset: 66px; } }

/* ---------------------------------------------------------
   Links / Focus
--------------------------------------------------------- */
.bb-site a,
.bb-site a:visited{
  color: inherit !important;
  text-decoration: none !important;
  border: 0 !important;
  transition: color var(--bb-ease), opacity var(--bb-ease), transform var(--bb-ease),
              background var(--bb-ease), border-color var(--bb-ease), box-shadow var(--bb-ease) !important;
}
.bb-site a:hover:not(.bb-btn):not(.bb-lang__a):not(.bb-policies a){
  color: var(--bb-yellow2) !important;
}
.bb-site a:focus-visible,
.bb-site button:focus-visible{
  outline: none !important;
  box-shadow: var(--bb-focus) !important;
  border-radius: 12px;
}

/* ---------------------------------------------------------
   Typography
--------------------------------------------------------- */
.bb-site .bb-kicker{
  margin: 0 0 10px !important;
  color: rgba(234,236,239,.86) !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}
.bb-site .bb-h1{
  margin: 0 0 14px !important;
  font-size: clamp(34px, 4.3vw, 56px) !important;
  line-height: 1.06 !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  max-width: 980px;
}
.bb-site .bb-h2{
  margin: 0 0 14px !important;
  font-size: 26px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
}
.bb-site .bb-h3{
  margin: 0 0 8px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}
.bb-site .bb-sub{
  margin: 0 0 18px !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: var(--bb-muted) !important;
  max-width: 920px;
}
.bb-site p{ margin: 0 0 12px !important; line-height: 1.65 !important; }
.bb-site .bb-note{ color: var(--bb-dim) !important; font-size: 13px !important; }
.bb-site .bb-muted{ color: var(--bb-muted) !important; }

/* ---------------------------------------------------------
   Header (fixed + solid on scroll)
--------------------------------------------------------- */
.bb-site .bb-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  padding: 14px 0;

  background: rgba(11,14,17,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.bb-site .bb-header.is-solid{
  background: rgba(11,14,17,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255,255,255,.14);
  box-shadow: 0 12px 28px rgba(0,0,0,.42);
}
.bb-site .bb-header__inner{
  display:flex;
  align-items:center;
  gap:16px;
}

/* Brand */
.bb-site .bb-brand{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 0 0 auto;
}
.bb-site .bb-logo{
  display:block;
  object-fit:contain;
  width: 88px; /* sync Home */
  height: auto;
}

/* Nav (desktop) */
.bb-site .bb-nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex: 1 1 auto;
  margin-left: 8px;
  white-space: nowrap;
}
.bb-site .bb-nav a{
  font-size: 14px;
  font-weight: 800;
  color: rgba(234,236,239,.92) !important;
  padding: 8px 6px;
  border-radius: 12px;
}
.bb-site .bb-nav a:hover{
  color: var(--bb-yellow2) !important;
  background: rgba(255,255,255,.03);
}

/* Actions */
.bb-site .bb-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

/* Language pills (circle flag-only) */
.bb-site .bb-lang{
  display:flex;
  gap:8px;
  align-items:center;
  flex:0 0 auto;
}
.bb-site .bb-lang__code{ display:none !important; }
.bb-site .bb-lang__a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border-radius: 999px !important;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(234,236,239,.92) !important;

  box-shadow: 0 8px 18px rgba(0,0,0,.22);
  font-weight: 900;
}
.bb-site .bb-lang__a:hover{
  background: rgba(247,166,0,.10);
  border-color: rgba(247,166,0,.55);
  transform: translateY(-1px);
}
.bb-site .bb-lang__a.is-on{
  background: rgba(247,166,0,.14);
  border-color: rgba(247,166,0,.75);
  color: var(--bb-yellow2) !important;
}
.bb-site .bb-lang__flag{
  font-size: 16px;
  line-height: 1;
}

/* Burger button */
.bb-site .bb-burger{
  display:none; /* desktop hidden */
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items:center;
  justify-content:center;
  cursor:pointer;
  margin-left: auto;
  padding: 0;
  line-height: 0;
}
.bb-site .bb-burger:focus-visible{ outline:none; box-shadow: var(--bb-focus); }

.bb-site .bb-burger__icon{
  width: 18px;
  height: 12px;
  position: relative;
  display: block;
  margin: 0;
}
.bb-site .bb-burger__icon span{
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(234,236,239,.92);
}
.bb-site .bb-burger__icon span:nth-child(1){ top: 0; }
.bb-site .bb-burger__icon span:nth-child(2){ top: 5px; }
.bb-site .bb-burger__icon span:nth-child(3){ bottom: 0; }

/* opened -> X */
.bb-site .bb-burger.is-open .bb-burger__icon span:nth-child(1){ top: 5px; transform: rotate(45deg); }
.bb-site .bb-burger.is-open .bb-burger__icon span:nth-child(2){ opacity: 0; }
.bb-site .bb-burger.is-open .bb-burger__icon span:nth-child(3){ bottom: 5px; transform: rotate(-45deg); }

/* Mobile behavior */
@media (max-width: 980px){
  .bb-site .bb-nav{ display:none !important; }
  .bb-site .bb-actions{ display:none !important; }
  .bb-site .bb-burger{ display:inline-flex !important; }
}

/* ---------------------------------------------------------
   Drawer + Backdrop (off-canvas)
--------------------------------------------------------- */
.bb-site .bb-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--bb-ease);
  z-index: 90;
}
.bb-site .bb-backdrop.is-on{
  opacity: 1;
  pointer-events: auto;
}
.bb-site .bb-drawer{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(360px, 88vw);
  transform: translateX(-105%);
  transition: transform var(--bb-ease);
  z-index: 100;

  border-right: 1px solid rgba(255,255,255,.10);
  background: rgba(11,14,17,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);

  padding: 14px;
  overflow: auto;
}
.bb-site .bb-drawer.is-open{ transform: translateX(0); }
.bb-site .bb-drawer__top{ padding: 8px 6px 12px; }
.bb-site .bb-drawer__brand{ display:flex; align-items:center; gap: 10px; }
.bb-site .bb-drawer__title{ font-weight: 900; font-size: 14px; }
.bb-site .bb-drawer__nav{ display:grid; gap: 8px; padding: 10px 4px; }
.bb-site .bb-drawer__nav a{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-weight: 900;
}
.bb-site .bb-drawer__actions{ display:grid; gap: 10px; padding: 10px 4px; }
.bb-site .bb-drawer__lang{ display:flex; gap: 8px; padding: 10px 4px 6px; flex-wrap: wrap; }

/* ---------------------------------------------------------
   Hero (inner pages) + offset for fixed header
--------------------------------------------------------- */
.bb-site .bb-hero{
  padding: 18px 0 14px;
  padding-top: calc(var(--bb-header-offset) + var(--bb-hero-gap));
}
.bb-site .bb-hero__cta{
  display:flex;
  gap:12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ---------------------------------------------------------
   Breadcrumb (shared)
--------------------------------------------------------- */
.bb-site .bb-bc{ margin: 8px 0 12px; }
.bb-site .bb-bc__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bb-site .bb-bc__list li{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 210, 106, .78); /* soft yellow tone */
}
.bb-site .bb-bc__list li + li::before{
  content: "›";
  color: var(--bb-bc-sep);
  font-weight: 900;
  margin-right: 2px;
}
.bb-site .bb-bc__list a{
  color: var(--bb-bc-link) !important;
  text-decoration: none !important;
}
.bb-site .bb-bc__list a:hover{ color: var(--bb-yellow2) !important; }
.bb-site .bb-bc__current{
  color: var(--bb-yellow2) !important;
  opacity: .92;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.bb-site .bb-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  height:52px !important;
  padding: 0 18px !important;
  border-radius: var(--bb-pill) !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  border: 2px solid transparent !important;
  cursor:pointer !important;
  user-select:none !important;
  will-change: transform;
  transition: transform var(--bb-ease), background var(--bb-ease), color var(--bb-ease),
              border-color var(--bb-ease), box-shadow var(--bb-ease) !important;
}
.bb-site .bb-btn:hover{ transform: translateY(-1px); }
.bb-site .bb-btn:active{ transform: translateY(0); }

.bb-site .bb-btn--primary{
  background: var(--bb-yellow) !important;
  color: #121212 !important;
}
.bb-site .bb-btn--primary:hover{ background: var(--bb-yellow2) !important; }

.bb-site .bb-btn--ghost{
  background: transparent !important;
  color: var(--bb-text) !important;
  border-color: rgba(255,255,255,.28) !important;
}
.bb-site .bb-btn--ghost:hover{
  border-color: rgba(247,166,0,.75) !important;
  color: var(--bb-yellow2) !important;
}

/* ---------------------------------------------------------
   Sections + Cards + Layout blocks
--------------------------------------------------------- */
.bb-site .bb-section{ padding: 34px 0; }

.bb-site .bb-card{
  padding: 18px;
  border-radius: var(--bb-radius);
  border: 1px solid var(--bb-border);
  background: var(--bb-panel);
  box-shadow: var(--bb-shadow);
}
.bb-site .bb-card--soft{ background: rgba(255,255,255,.03); }

.bb-site .bb-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.bb-site .bb-row--end{ justify-content:flex-end; }

.bb-site .bb-grid{
  display:grid;
  gap: 14px;
}
@media (min-width: 920px){
  .bb-site .bb-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------
   Lists (TOC / bullets / steps)
--------------------------------------------------------- */
.bb-site .bb-tocList{
  margin: 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}
.bb-site .bb-tocList li a{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(234,236,239,.90) !important;
  font-weight: 800;
}
.bb-site .bb-tocList li a:hover{
  border-color: rgba(247,166,0,.45);
  background: rgba(247,166,0,.08);
  color: rgba(255,255,255,.98) !important;
}

.bb-site .bb-bullets{
  margin: 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}
.bb-site .bb-bullets li{
  position: relative;
  padding-left: 18px;
  color: var(--bb-muted);
  line-height: 1.6;
}
.bb-site .bb-bullets li::before{
  content:"";
  position:absolute;
  left:0; top: 0.68em;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(247,166,0,.75);
  box-shadow: 0 0 0 3px rgba(247,166,0,.10);
}

.bb-site .bb-stepsList{
  margin: 0;
  padding-left: 18px;
  display:grid;
  gap: 8px;
  color: var(--bb-muted);
}
.bb-site .bb-stepsList li{ line-height: 1.6; }

/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */
.bb-site .bb-faq{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.bb-site .bb-faq__item{
  border-radius: var(--bb-radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 8px 12px;
  transition: border-color var(--bb-ease), background var(--bb-ease), transform var(--bb-ease);
}
.bb-site .bb-faq__item:hover{
  border-color: rgba(247,166,0,.30);
  background: rgba(255,255,255,.04);
  transform: translateY(-1px);
}
.bb-site .bb-faq__q{
  cursor: pointer;
  font-weight: 900;
  padding: 10px 0;
  list-style: none;
  outline: none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.bb-site .bb-faq__q::-webkit-details-marker{ display:none; }
.bb-site .bb-faq__q::after{
  content:"";
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(234,236,239,.65);
  border-bottom: 2px solid rgba(234,236,239,.65);
  transform: rotate(-45deg);
  transition: transform var(--bb-ease), border-color var(--bb-ease);
}
.bb-site .bb-faq__item[open]{
  border-color: rgba(247,166,0,.26);
  background: rgba(247,166,0,.06);
}
.bb-site .bb-faq__item[open] .bb-faq__q{ color: var(--bb-yellow2); }
.bb-site .bb-faq__item[open] .bb-faq__q::after{
  transform: rotate(45deg);
  border-color: rgba(247,166,0,.85);
}
.bb-site .bb-faq__a{ padding: 0 0 10px; }

/* ---------------------------------------------------------
   Legal / Policies chips
--------------------------------------------------------- */
.bb-site .bb-legal{ padding-bottom: 92px; }
.bb-site .bb-policies{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.bb-site .bb-policies a{
  display:inline-flex;
  align-items:center;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--bb-pill);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: rgba(234,236,239,.90) !important;
  font-weight: 900;
  font-size: 13px;
  transition: transform var(--bb-ease), border-color var(--bb-ease), background var(--bb-ease), color var(--bb-ease);
}
.bb-site .bb-policies a:hover{
  transform: translateY(-1px);
  background: rgba(247,166,0,.10);
  border-color: rgba(247,166,0,.55);
  color: var(--bb-yellow2) !important;
}

/* ---------------------------------------------------------
   Sticky CTA (mobile only)
--------------------------------------------------------- */
.bb-site .bb-sticky{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 12px 0 14px;
  background: linear-gradient(to top, rgba(11,14,17,.92), rgba(11,14,17,.40), rgba(11,14,17,0));
  pointer-events: none;
}
.bb-site .bb-sticky__inner{
  width: min(var(--bb-container), calc(100% - 32px));
  margin: 0 auto;
  display:flex;
  justify-content:flex-end;
}
.bb-site .bb-sticky__btn{
  pointer-events: auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 54px;
  padding: 0 18px;
  border-radius: var(--bb-pill);
  background: var(--bb-yellow);
  color: #121212 !important;
  font-weight: 900;
  border: 2px solid transparent;
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
  transition: transform var(--bb-ease), background var(--bb-ease);
}
.bb-site .bb-sticky__btn:hover{
  background: var(--bb-yellow2);
  transform: translateY(-1px);
}
@media (min-width: 1020px){
  .bb-site .bb-sticky{ display:none; }
  .bb-site .bb-legal{ padding-bottom: 46px; }
}

/* Mobile tune */
@media (max-width: 720px){
  .bb-site{ padding: 22px 0 76px; }
  .bb-site .bb-h2{ font-size: 24px !important; }
  .bb-site .bb-sub{ font-size: 16px !important; }
  .bb-site .bb-sticky__inner{ justify-content:center; }
  .bb-site .bb-sticky__btn{ width: 100%; }
}

/* ---------------------------------------------------------
   START page tweaks (only START)
--------------------------------------------------------- */
.bb-site.bb-site--start .bb-kicker{
  font-size: 14px !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}
.bb-site.bb-site--start .bb-note{
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin-top: 10px !important;
  color: rgba(234,236,239,.72) !important;
}
@media (max-width: 720px){
  .bb-site.bb-site--start .bb-kicker{ font-size: 13px !important; }
  .bb-site.bb-site--start .bb-note{ font-size: 13px !important; }
}

/* ---------------------------------------------------------
   Reduce motion
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  .bb-site *, .bb-site *::before, .bb-site *::after{ transition:none !important; }
}
