/* ============================================================
   VapoCept — "Biotech Clinical Tech & Emerald Apothecary"
   Family 20: Official Clinical Store & Biotech Flagship
   Mobile-First · Zero Horizontal Scroll · Strict Viewport Containment
   ============================================================ */

:root {
  --bg-white: #FFFFFF;
  --bg-tint: #F8FAFC;
  --bg-dark: #0B0F19;
  --bg-dark-card: #151D2C;
  --text-dark: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --text-light-muted: #94A3B8;
  --border-light: #E2E8F0;
  --border-dark: #1E293B;
  --accent: #0284C7;
  --accent-hover: #0369A1;
  --accent-tint: #E0F2FE;
  --cyan: #38BDF8;
  --emerald: #10B981;
  --emerald-hover: #059669;
  --emerald-tint: #ECFDF5;
  --amber: #D97706;
  --amber-tint: #FEF3C7;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

section, header, footer, main, nav, .wrap, .band {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  section, .band { overflow-x: hidden; }
}

h1, h2, h3, h4, h5, h6, p, span, a, li, td, th {
  overflow-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 14px 0;
}

p {
  margin: 0 0 16px 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

img, svg, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 14px;
  }
}

.tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  display: block;
  box-sizing: border-box;
  touch-action: pan-x pan-y;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

/* 0. Top Notice Bar */
.top-notice {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.notice-pill {
  background: rgba(2, 132, 199, 0.2);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* 0b. Header & Navigation */
.hdr {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
}

.logo b {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.1;
  color: var(--text-dark);
}

.logo small {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav a:hover, .nav a[aria-current="page"] {
  color: var(--accent);
}

/* Defensive CSS reset for header list */
.nav ul, .nav-links, ul.nav-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

.nav ul li, .nav-links li, ul.nav-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  margin: 4px 0;
  transition: transform 0.2s ease;
}

@media (max-width: 999px) {
  .nav {
    display: none;
  }
  .burger {
    display: block;
  }
}

/* Mobile Drawer */
.drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 2px solid var(--accent);
  padding: 16px 20px 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

.drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 9999px;
  padding: 12px 24px;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #0369A1 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.btn--secondary {
  background: var(--bg-tint);
  color: var(--text-dark) !important;
  border: 1px solid var(--border-light);
}

.btn--secondary:hover {
  background: #E2E8F0;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

/* 1. Hero Section */
.hero {
  padding: 48px 0 64px 0;
  background: radial-gradient(circle at 75% 25%, var(--accent-tint) 0%, var(--bg-white) 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-tint);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.med-byline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.med-byline b {
  color: var(--text-dark);
}

.med-pill {
  background: var(--emerald-tint);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Stage & Bottle & .mlcard rule - ZERO OVERLAP */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
}

.stage-bottle {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-light);
  background: #ffffff;
}

.stage-bottle img {
  width: 100%;
  height: auto;
  display: block;
}

.mlcard {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  z-index: 2;
}

.mlcard-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.ml-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid #F1F5F9;
  font-variant-numeric: tabular-nums;
}

.ml-row b {
  color: var(--text-dark);
}

@media (max-width: 999px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stage-bottle {
    max-width: 360px;
  }
  .mlcard {
    max-width: 360px !important;
  }
}

/* Bands & Sections */
.band {
  padding: 64px 0;
}

.band--tint {
  background-color: var(--bg-tint);
}

.band--dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.band--dark h1, .band--dark h2 {
  color: #FFFFFF !important;
}

.band--dark h3, .band--dark h4 {
  color: var(--cyan) !important;
}

.band--dark p, .band--dark li {
  color: #E2E8F0 !important;
}

.sec-head {
  margin-bottom: 36px;
}

.sec-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
}

.sec-head p {
  font-size: 16.5px;
  color: var(--text-muted);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card-num {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14.5px;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Biotech Dark Card */
.biotech-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 24px;
}

/* Pricing Grid */
.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.pack {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pack--highlight {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 36px rgba(2, 132, 199, 0.15);
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .pack--highlight {
    transform: none;
  }
}

.pack-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 9999px;
}

.pack-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pack-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.pack-price {
  font-size: 48px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.pack-price small {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.pack-total {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.pack-save {
  background: var(--emerald-tint);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 18px;
}

/* PAA Search Queries */
.sq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.sq {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 22px;
}

.sq h3 {
  font-size: 17px;
  color: var(--cyan) !important;
  margin-bottom: 10px;
}

.sq p {
  font-size: 14px;
  color: #E2E8F0 !important;
  margin-bottom: 0;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 22px;
}

.faq-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.faq-item p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0;
}

/* Medical References */
.refs-list ol {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.refs-list li {
  margin-bottom: 10px;
}

.refs-list a {
  color: var(--accent);
  word-break: break-all;
}

/* 7b. Institutional Compliance Footer */
.ftr {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  padding: 64px 0 32px 0;
  border-top: 1px solid var(--border-dark);
}

.ftr a {
  color: var(--text-light-muted);
}

.ftr a:hover {
  color: #FFFFFF;
}

.ftr-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.ftr-col h4 {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.ftr-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ftr-col li {
  margin-bottom: 9px;
  font-size: 13.5px;
}

/* Safety Cards (4 columns) */
.ftr-safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 999px) {
  .ftr-safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ftr-safety-grid {
    grid-template-columns: 1fr;
  }
}

.ftr-safety-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
}

.ftr-safety-card h5 {
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.ftr-safety-card p {
  font-size: 12px;
  color: #CBD5E1;
  margin: 0;
  line-height: 1.5;
}

/* Trust row & Seals */
.ftr-trust-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ftr-seals {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ftr-seal-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #E2E8F0;
}

.ftr-cards-img {
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: 6px;
  height: 28px;
  width: auto;
}

/* Label notes 2 cols */
.ftr-notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  margin-bottom: 40px;
  font-size: 11.5px;
  color: #94A3B8;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .ftr-notes-grid {
    grid-template-columns: 1fr;
  }
}

.ftr-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #64748B;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ftr-legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 7c. Sticky Buy Bar */
.sticky-buybar {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
}

.sticky-buybar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.sbb-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  white-space: nowrap !important;
}

.sbb-thumb img {
  width: 36px;
  height: 44px;
  object-fit: contain;
}

.sbb-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sbb-title {
  font-size: 14px;
  color: #FFFFFF;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.sbb-title strong {
  font-weight: 800;
}

.sbb-title span {
  color: var(--cyan);
  font-weight: 700;
}

.sbb-sub {
  font-size: 11px;
  color: #94A3B8;
}

.sbb-btn {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
}

@media (max-width: 480px) {
  .sbb-sub {
    display: none;
  }
  .sbb-wrap {
    padding: 6px 12px !important;
    gap: 8px !important;
  }
  .sbb-title {
    font-size: 12.5px !important;
  }
  .sbb-btn {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }
}

/* Page Hero Infographic Showcase */
.page-infographic-showcase {
  margin-bottom: 36px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.page-infographic-caption {
  background: var(--bg-tint);
  padding: 14px 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.badge-verified {
  background: var(--emerald);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 600;
}
