/* ═══════════════════════════════════════════════
   TRITON Bio Base Dosage Calculator — Page-Specific Styles
   Global design system: ../global.css
   Calculator field patterns adapted from: infusion-dosage-calculator.css
   ═══════════════════════════════════════════════ */


/* ════════════════════════════════════════════════
   HERO — Compact static hero (tool page, no video)
   ════════════════════════════════════════════════ */
.hero-tool{
  min-height:60vh;height:auto;
  display:flex;flex-direction:column;justify-content:flex-end;
  background:
    radial-gradient(ellipse 70% 55% at 70% 35%, rgba(0,100,102,.3) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 15% 75%, rgba(3,47,79,.5) 0%, transparent 55%),
    var(--bp);
  padding-top:clamp(7rem,12vw,10rem)
}
.hero-tool .hero-ct{padding-bottom:clamp(4rem,6vw,6rem)}
.hero-tool .hero-t{font-size:clamp(2.8rem,6.5vw,5.5rem);max-width:18ch}
.hero-tool .hero-sub{max-width:60ch}

/* Hero layout — text + product 50/50 grid */
.hero-tool .hero-ct{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:end;
  gap:clamp(2rem,4vw,5rem)
}
.hero-tool-text{min-width:0;align-self:end}
.hero-tool-product{
  position:relative;z-index:2;
  align-self:center;justify-self:start
}
.hero-tool-product img{
  max-height:55vh;width:auto;
  object-fit:contain;
  filter:drop-shadow(0 20px 60px rgba(0,0,0,.5));
  transition:transform .6s cubic-bezier(.16,1,.3,1)
}
.hero-tool-product:hover img{transform:translateY(-8px)}


/* ════════════════════════════════════════════════
   TAB SYSTEM — Supplementation method selector
   ════════════════════════════════════════════════ */
.bb-tabs{
  display:flex;gap:0;
  border-bottom:2px solid rgba(133,255,199,.08);
  margin-bottom:clamp(2rem,4vw,3rem);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none
}
.bb-tabs::-webkit-scrollbar{display:none}

.bb-tab{
  font-family:var(--h);font-weight:700;
  font-size:clamp(.82rem,1vw,.92rem);
  letter-spacing:.08em;text-transform:uppercase;
  color:rgba(255,255,255,.45);
  padding:1rem 2rem;
  background:none;border:none;border-bottom:2px solid transparent;
  margin-bottom:-2px;cursor:pointer;
  white-space:nowrap;
  transition:all .35s cubic-bezier(.16,1,.3,1);
  position:relative
}
.bb-tab:hover{color:rgba(255,255,255,.75)}
.bb-tab.active{
  color:var(--aq);
  border-bottom-color:var(--aq)
}
.bb-tab.active::after{
  content:'';position:absolute;
  bottom:-2px;left:0;right:0;height:2px;
  background:var(--aq);
  box-shadow:0 0 12px rgba(133,255,199,.3)
}

/* Tab panels */
.bb-panel{display:none;animation:bbPanelIn .4s ease-out}
.bb-panel.active{display:block}
@keyframes bbPanelIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}


/* ════════════════════════════════════════════════
   CALCULATOR SHELL
   ════════════════════════════════════════════════ */
.bb-shell{
  max-width:720px;
  background:rgba(1,24,39,.75);
  border:1px solid rgba(133,255,199,.12);
  padding:clamp(2rem,4vw,3rem);
  position:relative;overflow:hidden
}
.bb-shell::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,transparent,var(--aq),transparent);
  opacity:.5
}
.bb-shell::after{
  content:'';position:absolute;bottom:0;right:0;
  width:180px;height:180px;
  background:radial-gradient(circle,rgba(133,255,199,.04) 0%,transparent 70%);
  pointer-events:none
}

/* Shell header */
.bb-header{
  display:flex;align-items:center;gap:1rem;
  margin-bottom:2rem;padding-bottom:1.2rem;
  border-bottom:1px solid rgba(133,255,199,.06)
}
.bb-header-icon{
  width:48px;height:48px;
  display:grid;place-items:center;
  background:rgba(133,255,199,.08);
  border:1px solid rgba(133,255,199,.15);
  flex-shrink:0
}
.bb-header-icon i{font-size:1.3rem;color:var(--aq)}
.bb-header-text h3{
  font-family:var(--h);font-weight:900;
  font-size:1.1rem;text-transform:uppercase;
  letter-spacing:.04em;line-height:1.2
}
.bb-header-text span{
  font-size:1rem;color:rgba(255,255,255,.45);
  margin-top:.15rem;display:block
}

/* Product images inside calculator */
.bb-products{
  display:flex;align-items:center;justify-content:center;
  gap:clamp(1.5rem,3vw,2.5rem);
  margin-bottom:2rem;
  padding:1.5rem;
  background:rgba(0,100,102,.06);
  border:1px solid rgba(133,255,199,.06)
}
.bb-products-single{justify-content:flex-start}
.bb-product-card{
  display:flex;flex-direction:column;align-items:center;gap:.6rem;
  text-align:center
}
.bb-product-card img{
  width:120px;height:120px;
  object-fit:contain;
  filter:drop-shadow(0 6px 16px rgba(0,0,0,.3));
  transition:transform .4s cubic-bezier(.16,1,.3,1)
}
.bb-product-card:hover img{transform:scale(1.05)}
.bb-product-card span{
  font-family:var(--h);font-weight:700;
  font-size:.72rem;letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,.5)
}
.bb-product-arrow{
  color:var(--aq);font-size:1.2rem;
  opacity:.4;flex-shrink:0
}

/* Input form layout */
.bb-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.5rem;
  margin-bottom:2rem
}

/* Field styling */
.bb-field label{
  display:block;
  font-family:var(--h);font-weight:700;
  font-size:.72rem;letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.85);
  margin-bottom:.5rem
}
.bb-field input{
  width:100%;padding:.9rem 1rem;
  background:rgba(1,24,39,.8);
  border:1px solid rgba(133,255,199,.12);
  color:var(--w);font-family:var(--h);
  font-size:1.2rem;font-weight:700;
  letter-spacing:.02em;
  transition:border-color .3s,box-shadow .3s;
  -moz-appearance:textfield
}
.bb-field input::-webkit-outer-spin-button,
.bb-field input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.bb-field input::placeholder{color:rgba(255,255,255,.45)}
.bb-field input:focus{
  outline:none;
  border-color:var(--aq);
  box-shadow:0 0 20px rgba(133,255,199,.08)
}
.bb-field input.invalid{
  border-color:#ff5555;
  box-shadow:0 0 12px rgba(255,85,85,.12)
}
.bb-field .bb-hint{
  font-size:1rem;color:rgba(255,255,255,.6);
  margin-top:.4rem;line-height:1.4
}

/* Result display */
.bb-result{
  display:flex;align-items:center;
  gap:1.5rem;
  padding:1.5rem 1.8rem;
  background:rgba(0,100,102,.12);
  border:1px solid rgba(133,255,199,.18);
  position:relative
}
.bb-result::before{
  content:'';position:absolute;left:0;top:0;bottom:0;
  width:3px;background:var(--aq)
}
.bb-result-label{
  font-family:var(--h);font-weight:700;
  font-size:.72rem;letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.85);
  white-space:nowrap
}
.bb-result-value{
  font-family:var(--h);font-weight:900;
  font-size:clamp(1.8rem,3vw,2.4rem);
  color:var(--aq);letter-spacing:-.01em;
  line-height:1
}
.bb-result-unit{
  font-size:1rem;color:rgba(255,255,255,.7);
  font-weight:400;margin-left:.3rem
}

/* Max note below result */
.bb-max-note{
  display:flex;align-items:flex-start;gap:.8rem;
  margin-top:1.2rem;
  padding:.8rem 1.2rem;
  background:rgba(0,100,102,.06);
  border-left:2px solid rgba(133,255,199,.2)
}
.bb-max-note i{
  flex-shrink:0;color:var(--aq);
  opacity:.6;margin-top:.15rem;font-size:.9rem
}
.bb-max-note p{
  font-size:1rem;line-height:1.5;
  color:rgba(255,255,255,.6)
}


/* ════════════════════════════════════════════════
   PRODUCT INFO — What is Bio Base?
   ════════════════════════════════════════════════ */
.bb-about-grid{
  display:grid;
  grid-template-columns:1fr 300px;
  gap:clamp(3rem,6vw,5rem);
  align-items:center
}
.bb-about-product{
  position:relative
}
.bb-about-product img{
  width:100%;height:auto;
  filter:drop-shadow(0 15px 40px rgba(0,0,0,.4));
  transition:transform .6s cubic-bezier(.16,1,.3,1)
}
.bb-about-product:hover img{transform:translateY(-8px)}
.bb-about-facts{
  display:grid;gap:1rem;
  margin-top:2rem
}
.bb-fact{
  display:flex;align-items:flex-start;gap:1rem;
  padding:1rem 1.4rem;
  background:rgba(0,100,102,.08);
  border-left:3px solid rgba(133,255,199,.25)
}
.bb-fact i{
  flex-shrink:0;font-size:1.1rem;
  color:var(--aq);margin-top:.15rem
}
.bb-fact p{
  font-size:1rem;line-height:1.6;
  color:rgba(255,255,255,.75)
}
.bb-fact strong{color:var(--w)}


/* ════════════════════════════════════════════════
   EXPERT QUOTE — Below calculator
   ════════════════════════════════════════════════ */
.bb-quote{margin-top:clamp(2.5rem,5vw,3.5rem);max-width:720px}


/* ════════════════════════════════════════════════
   TIPS SECTION — Practical guidance
   ════════════════════════════════════════════════ */
.bb-tips-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem
}
.bb-tip-icon{color:var(--aq);margin-right:.5rem}
.bb-tip-p{margin-top:.8rem}
.bb-tip-list{margin-top:.8rem}


/* ════════════════════════════════════════════════
   CTA — Final conversion section
   ════════════════════════════════════════════════ */
.bb-cta{
  background:linear-gradient(180deg,var(--bp) 0%,rgba(0,100,102,.25) 50%,var(--bp) 100%);
  text-align:center;
  position:relative
}
.bb-cta::before{
  content:'';position:absolute;inset:0;pointer-events:none;opacity:.03;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 1l27 15.5v31L28 63 1 47.5v-31z' fill='none' stroke='%2385FFC7' stroke-width='.4'/%3E%3C/svg%3E");
  background-size:56px 97px
}
.bb-cta .section-h{margin-bottom:1rem}
.bb-cta .s-sub{margin-bottom:clamp(2rem,4vw,3rem)}
.bb-cta-btns{
  display:flex;gap:1.2rem;
  justify-content:center;flex-wrap:wrap
}
.bb-cta-sub{max-width:50ch;margin-left:auto;margin-right:auto}


/* ════════════════════════════════════════════════
   RESPONSIVE — Tablet (<=1024px)
   ════════════════════════════════════════════════ */
@media(max-width:1024px){
  .hero-tool .hero-ct{grid-template-columns:1fr}
  .hero-tool-product{justify-self:start;order:-1;margin-bottom:1.5rem}
  .hero-tool-product img{max-height:none;width:min(50vw,240px);height:auto}

  .bb-about-grid{grid-template-columns:1fr;text-align:center}
  .bb-about-product{max-width:200px;margin:0 auto}

  .bb-tips-grid{grid-template-columns:1fr 1fr}
}

/* ════════════════════════════════════════════════
   RESPONSIVE — Mobile (<=768px)
   ════════════════════════════════════════════════ */
@media(max-width:768px){
  .hero-tool{min-height:auto;padding-top:clamp(6rem,10vw,8rem)}
  .hero-tool .hero-ct{padding-bottom:clamp(3rem,5vw,4rem)}
  .hero-tool-product img{width:min(50vw,220px)}

  .bb-tabs{gap:0}
  .bb-tab{padding:.8rem 1.2rem;font-size:.78rem}

  .bb-products{gap:1rem;padding:1rem}
  .bb-product-card img{width:90px;height:90px}

  .bb-form{grid-template-columns:1fr}

  .bb-result{flex-direction:column;align-items:flex-start;gap:.8rem}

  .bb-about-grid{gap:2rem}
  .bb-about-facts{gap:.8rem}

  .bb-tips-grid{grid-template-columns:1fr}

  .bb-cta-btns{flex-direction:column;align-items:center}
  .bb-cta-btns .btn{width:100%}
}

/* ════════════════════════════════════════════════
   RESPONSIVE — Small mobile (<=480px)
   ════════════════════════════════════════════════ */
@media(max-width:480px){
  .bb-shell{padding:1.5rem}
  .bb-header{flex-direction:column;align-items:flex-start;gap:.8rem}
  .bb-tab{padding:.7rem 1rem;font-size:.72rem;letter-spacing:.06em}
}
