:root {
  --bg: #f4f8f9;
  --ink: #10211f;
  --muted: #4a6662;
  --line: #d2e2df;
  --card: #ffffff;
  --brand: #0a6f66;
  --brand-strong: #084f49;
  --warm: #f28b39;
  --shadow: 0 14px 40px rgba(16, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, #dcefee 0%, transparent 40%),
    linear-gradient(180deg, #f8fbfc 0%, #f3f8f8 55%, #ecf3f4 100%);
  line-height: 1.6;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1120px, calc(100% - 2.2rem));
  margin: 0 auto;
}

h1, h2, h3 {
  line-height: 1.18;
  margin: 0.2rem 0 0.6rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

figure { margin: 0; }

figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.42rem;
  text-align: center;
}

ol, ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

pre {
  white-space: pre-wrap;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  overflow-x: auto;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(248, 251, 252, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.72rem 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.site-header .brand {
  background: linear-gradient(90deg, #37718E, #4FBAB3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

.nav nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav nav a {
  font-size: 0.95rem;
}

.biomni-hero {
  padding: 80px 20px 60px 20px;
  background-color: transparent;
  display: flex;
  justify-content: center;
}

.biomni-container {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.biomni-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #37718E, #4FBAB3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.biomni-subtitle {
  font-size: 1.2rem;
  color: #333333;
  line-height: 1.6;
  max-width: 1000px;
  margin-bottom: 15px;
}

.biomni-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.biomni-badge {
  background: rgba(79, 186, 179, 0.1);
  color: #37718E;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 1.05rem;
  border: 1px solid rgba(79, 186, 179, 0.3);
  display: inline-block;
}

.biomni-badge strong {
  color: #0a6f66;
  font-weight: 700;
  font-size: 1.15rem;
}

.badge-dim {
  color: #718096;
  font-size: 0.95rem;
  font-weight: normal;
  margin-left: 4px;
}

.biomni-actions {
  display: flex;
  justify-content: center;
  gap: 16px; 
  margin-bottom: 16px; 
}

.biomni-btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.biomni-btn-outline {
  background-color: transparent;
  color: #333333 !important;
  border: 1px solid rgba(55, 113, 142, 0.3);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.biomni-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px; 
  justify-content: center;
  max-width: 600px; 
  margin: 16px auto 0 auto; 
}

.logo-card {
  background: transparent;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90px;
  width: 260px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.logo-card img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.section {
  padding: 2.7rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(10, 111, 102, 0.06), rgba(10, 111, 102, 0.03));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 { text-align: center; }
.section h2 + p { text-align: center; }
.section-intro { color: var(--muted); }

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: start;
}

.callout {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.2rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem;
}

.wide-figure {
  margin-top: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.3rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(10, 111, 102, 0.14);
  color: var(--brand-strong);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.78rem;
}

#overview .wrap {
  width: min(1280px, calc(100% - 2rem)); 
}

#overview .two-col {
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

#overview h2,
#overview p {
  text-align: left;
  max-width: 100%;
}

#overview h2 {
  margin-bottom: 1.2rem;
}

#overview .callout ol {
  padding-left: 1.2rem;
  margin-right: 0.5rem;
}

#overview .callout ol li {
  white-space: nowrap; 
}

.medbench-section {
  background:
    radial-gradient(circle at 100% 0, rgba(242, 139, 57, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(10, 111, 102, 0.09), rgba(10, 111, 102, 0.04));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.medbench-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-strong);
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.medbench-content {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.chip-grid {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f4fbfa);
  border-radius: 999px;
  padding: 0.26rem 0.68rem;
  font-size: 0.85rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(16, 33, 31, 0.06);
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.9rem;
}

.pdf-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
}

.pdf-card h3 { text-align: center; }

.pdf-frame {
  width: 100%;
  height: 680px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pdf-links {
  margin-top: 0.55rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
}

#results .result-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  justify-content: center;
}

#results .result-tab {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

#results .result-tab.is-active {
  border-color: var(--brand-strong);
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: #ffffff;
}

#results .result-panel { display: none; }
#results .result-panel.is-active { display: block; }

#results figure.result-panel {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

#results .result-note {
  max-width: 80%;
  margin: 0.8rem auto 0;
  color: var(--muted);
  text-align: center;
}

.resource-list { padding-left: 1rem; }

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
  text-align: center;
  animation: fade 0.5s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  width: 44px; 
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
  padding: 0; 
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.carousel-btn::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2px solid white;  
  border-right: 2px solid white;
}

.prev-btn::after {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.next-btn::after {
  transform: rotate(45deg);
  margin-right: 4px;
}

.site-footer {
  background-color: #f8fafc;
  padding: 60px 0 30px 0;
  border-top: 1px solid #e2e8f0;
  color: #4a5568;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand .brand-title {
  color: #2d3748;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.footer-brand .brand-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: #718096;
}

.footer-links h3, .footer-contact h3 {
  color: #2d3748;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  text-decoration: none;
  color: #4a5568;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #3182ce;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.btn-message {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #3e7491;
  color: white !important;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-message:hover {
  background-color: #2c5269;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.9rem;
  color: #a0aec0;
}

@media (max-width: 980px) {
  .two-col,
  .medbench-metrics,
  .medbench-content,
  .cards,
  .pdf-grid,
  .biomni-logos {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  #results figure.result-panel {
    width: 100%;
  }

  .pdf-frame {
    height: 520px;
  }

  #overview .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  #overview .callout ol li {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-item {
    justify-content: center;
  }
}

.evidence-intro {
  max-width: 76ch;
  margin: 0 auto 1.2rem;
}
.evidence-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 0.95rem;
}
.evidence-tab {
  border: 1px solid var(--line, #d2e2df);
  background: #ffffff;
  color: var(--ink, #10211f);
  padding: 0.58rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.evidence-tab.is-active {
  border-color: var(--brand-strong, #084f49);
  background: linear-gradient(180deg, var(--brand, #0a6f66), var(--brand-strong, #084f49));
  color: #ffffff;
}
.evidence-grid {
  display: grid;
  gap: 1rem;
}
.evidence-case {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line, #d2e2df);
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 14px 40px rgba(16, 33, 31, 0.12);
}
.evidence-panel {
  display: none;
}
.evidence-panel.is-active {
  display: block;
}
.evidence-case-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.9rem;
}
.evidence-task {
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand-strong, #084f49);
}
.evidence-score {
  margin: 0;
  white-space: nowrap;
  background: rgba(10, 111, 102, 0.08);
  border: 1px solid rgba(10, 111, 102, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-strong, #084f49);
}
.evidence-columns {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 0.9rem;
}
.evidence-block,
.outcome-card {
  background: #ffffff;
  border: 1px solid var(--line, #d2e2df);
  border-radius: 12px;
  padding: 1rem;
}
.evidence-block h4,
.outcome-card h4 {
  margin-top: 0;
}
.baseline-stack {
  display: grid;
  gap: 0.7rem;
}
.baseline-card {
  border: 1px solid var(--line, #d2e2df);
  background: linear-gradient(180deg, #fbfdfd, #f3f8f8);
  border-radius: 10px;
  padding: 0.8rem;
}
.baseline-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(242, 139, 57, 0.15);
  color: #9a5318;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.evidence-list,
.benefit-list {
  margin-top: 0.55rem;
}
.evidence-list li,
.benefit-list li {
  margin-bottom: 0.55rem;
}
.evidence-outcome {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

@media (max-width: 980px) {
  .evidence-columns,
  .evidence-outcome {
    grid-template-columns: 1fr;
  }
  .evidence-case-head {
    flex-direction: column;
  }
  .evidence-score {
    white-space: normal;
  }
}