/* Brand + restored UX overrides */
:root{
  --primary-red:#c92932;
  --primary-red-bright:#e23a43;
  --primary-red-hover:#a82028;
  --grad-brand: linear-gradient(135deg, #c92932 0%, #e23a43 55%, #a82028 100%);
}

/* Header upper line — solid brand red */
.top-notice-bar{
  background:#c92932!important;
  background-image:none!important;
  animation:none!important;
  color:#fff!important;
}

/* Keep designed right-panel hero photo (do not flatten to full-width crop) */
.hero-photograph{
  position:absolute!important;
  inset:var(--header-h) 0 0 41%!important;
  z-index:-1!important;
  margin:0!important;
  width:auto!important;
}
.hero-photograph picture,
.hero-photograph img{
  display:block!important;
  width:100%!important;
  height:100%!important;
}
.hero-photograph img{
  object-fit:cover!important;
  object-position:78% 42%!important;
  filter:saturate(.8)!important;
}

/* Library tiles */
#library .library-grid img,
#library picture img{
  width:100%;height:100%;object-fit:cover;border-radius:12px;display:block;
}

/* Footer Secure Payment — fills must beat global svg{fill:none} */
.footer-payments{margin-top:1.35rem;}
.footer-payments-label{
  margin:0 0 .75rem;font-family:var(--font-heading),inherit;font-size:.78rem;font-weight:800;
  letter-spacing:.12em;text-transform:uppercase;color:#fff;
}
.secure-pay-panel{
  display:flex;flex-direction:column;gap:.7rem;padding:1rem 1.05rem 1.05rem;
  border:1px solid rgba(255,255,255,.12);border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  max-width:340px;
}
.secure-pay-paypal{
  display:inline-flex;align-items:center;gap:.55rem;align-self:flex-start;
  padding:.45rem .8rem;border-radius:999px;background:#ffc439;color:#003087;
  font-weight:800;font-size:.92rem;letter-spacing:.02em;
}
.secure-pay-paypal .pp-mark{width:1.15rem;height:1.15rem;}
.secure-pay-row{display:flex;flex-wrap:wrap;gap:.45rem;}
.secure-pay-card{
  display:inline-flex;width:4.35rem;height:2.85rem;border-radius:8px;overflow:hidden;
  box-shadow:0 8px 18px -12px rgba(0,0,0,.8);background:#111;
}
.secure-pay-card svg{width:100%;height:100%;display:block;}
.secure-pay-extra{display:flex;flex-wrap:wrap;gap:.4rem;}
.secure-pay-chip{
  display:inline-flex;align-items:center;gap:.35rem;padding:.38rem .65rem;border-radius:999px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);
  color:#e8e8e8;font-size:.72rem;font-weight:700;letter-spacing:.02em;
}
.secure-pay-chip svg{width:.95rem;height:.95rem;}
.footer-payments svg path,
.footer-payments svg rect,
.footer-payments svg circle{fill:unset;}
.footer-payments .sp-fill-pp1{fill:#003087!important;}
.footer-payments .sp-fill-pp2{fill:#009cde!important;}
.footer-payments .sp-fill-white{fill:#fff!important;}
.footer-payments .sp-fill-mc-red{fill:#eb001b!important;}
.footer-payments .sp-fill-mc-orange{fill:#f79e1b!important;}
.footer-payments .sp-fill-mae-blue{fill:#0099df!important;}
.footer-payments .sp-fill-mae-red{fill:#ed0006!important;}
.footer-payments .sp-fill-amex{fill:#2e77bb!important;}
.footer-payments .sp-fill-green{fill:#00d64f!important;}
.footer-payments .sp-fill-btc{fill:#f7931a!important;}
.footer-payments .t-visa{fill:#1a1f71!important;}
.footer-payments .t-white{fill:#fff!important;}
.footer-payments .t-dark{fill:#111!important;}

.under-hero-stats-bar{
  background:linear-gradient(180deg,rgba(201,41,50,.16),rgba(12,12,16,.92));
}

@media (max-width: 900px){
  .hero-photograph{
    inset:var(--header-h) 0 0 0!important;
    opacity:.45;
  }
  .hero-photograph img{object-position:78% 42%!important;}
}

/* Full-width hero on phone/tablet (fixes ~208px shrink) */
.hero{
  display:block!important;
  width:100%!important;
}
.hero-content.container,
.hero .hero-content{
  display:grid!important;
  width:100%!important;
  max-width:1280px!important;
  grid-template-columns:minmax(0,1fr)!important;
  justify-items:stretch!important;
  box-sizing:border-box!important;
}
.hero-text{
  width:100%!important;
  max-width:36rem!important;
  min-width:0!important;
}
.hero-desc{max-width:36rem!important;}
.hero-ctas{width:100%!important;max-width:28rem!important;}

/* Phone + tablet layout comfort */
@media (max-width: 1024px){
  .secure-pay-panel{max-width:100%!important;}
  .footer-payments{max-width:100%;}
  #connection-tabs.pricing-tabs,
  .pricing-tabs{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:.4rem!important;
    width:100%!important;
  }
  .pricing-tabs .conn-tab-btn{
    min-height:4.25rem!important;
    padding:.65rem .25rem .55rem!important;
    gap:.25rem!important;
  }
  .pricing-tabs .conn-tab-btn .tab-num{font-size:1.35rem!important;}
}

/* Always hide "Connection(s)" under tab numbers — numbers + aria-label are enough */
#connection-tabs .tab-device-label,
.pricing-tabs .conn-tab-btn .tab-device-label,
.pricing-tab-btn .tab-device-label,
.pricing-conn-btn .tab-device-label{
  display:none!important;
  visibility:hidden!important;
  font-size:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}

/* Red hover / focus on pricing plan cards */
#pricing .pricing-card,
.pricing-grid .pricing-card{
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease!important;
}
#pricing .pricing-card:hover,
#pricing .pricing-card:focus-within,
.pricing-grid .pricing-card:hover,
.pricing-grid .pricing-card:focus-within{
  border-color:#c92932!important;
  box-shadow:0 0 0 1px #c92932, 0 12px 28px rgba(201,41,50,.28)!important;
  transform:translateY(-3px)!important;
}
#pricing .pricing-card.popular:hover,
#pricing .pricing-card.popular:focus-within,
.pricing-grid .pricing-card.popular:hover{
  border-color:#e23a43!important;
  box-shadow:0 0 0 1px #e23a43, 0 14px 32px rgba(201,41,50,.38)!important;
}

@media (max-width: 768px){
  .hero{
    min-height:0!important;
    padding-bottom:2.5rem!important;
  }
  .hero-photograph{
    inset:42% 0 0 0!important;
    opacity:.38;
  }
  .hero-photo-caption,
  .hero-quality-note{
    position:static!important;
    margin:.85rem 0 0!important;
    right:auto!important;
    left:auto!important;
    bottom:auto!important;
    letter-spacing:.08em!important;
    white-space:normal!important;
  }
  .under-hero-stats-bar{padding-block:1.25rem!important;}
  .pricing-information ul{
    grid-template-columns:1fr!important;
    gap:1rem!important;
  }
  .pricing-tabs .conn-tab-btn{
    min-height:3.75rem!important;
    padding:.55rem .15rem .45rem!important;
  }
  .pricing-tabs .conn-tab-btn .tab-screens{display:none!important;}
  /* Compact connection tabs on phone */
  .pricing-tabs .conn-tab-btn{
    min-height:3.25rem!important;
  }
}
@media (max-width: 600px){
  .top-notice-bar{
    font-size:.7rem!important;
    line-height:1.4!important;
    white-space:normal!important;
    height:auto!important;
    min-height:2rem!important;
    padding:.35rem .65rem!important;
  }
  .hero-ctas{
    max-width:none!important;
    flex-direction:column!important;
  }
  .hero-ctas .btn{
    width:100%!important;
    font-size:.95rem!important;
    min-height:48px!important;
  }
  .device-card-mini span{font-size:.8rem!important;}
  .pricing-tabs .conn-tab-btn{
    min-height:3.5rem!important;
    border-radius:10px!important;
  }
  .pricing-tabs .conn-tab-btn .tab-num{font-size:1.2rem!important;}
}
