/* =========================================================================
   Biostrap case study — MindInventory
   Figma: Case study - BioStrap (node 1:2), 1920px desktop frame
   ========================================================================= */

/* ---------- Local Web Fonts ---------- */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/karla-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/karla-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.woff2') format('woff2');
}

/* ---------- 1. Tokens ---------- */
:root {
  /* colour */
  --orange: #ff7140;
  --orange-deep: #d85a2e;
  --cream: #ffe0c0;
  --cream-line: rgba(255, 224, 192, 0.2);
  --beige: #ebe4dc;
  --shell: #f7f3f0;
  --ink: #1c1b1a;
  --brown: #4b3f37;
  --white: #fff;
  --black: #000;
  --text-900: #222;
  --text-600: #444;
  --hairline: rgba(0, 0, 0, 0.1);
  --hairline-soft: rgba(0, 0, 0, 0.08);
  --white-line: rgba(255, 255, 255, 0.25);

  --grad: linear-gradient(270deg, #ff7140 0%, #d85a2e 100%);

  /* type */
  --font-display: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-ui: 'Karla', 'Segoe UI', Arial, sans-serif;

  --fs-h1: clamp(32px, 3.542vw, 68px);
  /* 68 @1920 */
  --fs-h2: clamp(26px, 2.813vw, 54px);
  /* 54 */
  --fs-cta: clamp(28px, 3.125vw, 60px);
  /* 60 */
  --fs-lead: clamp(18px, 1.563vw, 30px);
  /* 30 */
  --fs-body-lg: clamp(16px, 1.354vw, 26px);
  /* 26 */
  --fs-24: clamp(16px, 1.25vw, 24px);
  /* 24 */
  --fs-body: clamp(15px, 1.146vw, 22px);
  /* 22 */
  --fs-sm: clamp(14px, 1.042vw, 20px);
  /* 20 */
  --fs-32: clamp(20px, 1.667vw, 32px);
  /* 32 */

  /* layout */
  --wrap: 1760px;
  /* 1920 - 80*2 */
  --wrap-nar: 1315px;
  /* 1920 - 303 - 302 */
  --gutter: clamp(20px, 4.167vw, 80px);
  /* 80 */
  --gutter-nar: clamp(20px, 15.73vw, 302px);
  /* 302 */
  --pad-y: clamp(48px, 5.208vw, 100px);
  /* 100 */

  --r-30: clamp(18px, 1.563vw, 30px);
  --r-20: clamp(14px, 1.042vw, 20px);
  --r-16: 16px;

  --pad-card: clamp(20px, 1.563vw, 30px);
  /* 30 */
}

/* ---------- 2. Reset & Scoping ---------- */
main:has(.biostrap-page) {
  padding-top: 0 !important;
}

.biostrap-page *,
.biostrap-page *::before,
.biostrap-page *::after {
  box-sizing: border-box;
}

.biostrap-page {
  margin: 0;
  overflow-x: clip;
  background: var(--shell);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@supports not (selector(:has(*))) {
  @media (min-width: 992px) {
    .biostrap-page {
      margin-top: -4.5rem;
    }
  }
}

.biostrap-page img {
  display: block;
  max-width: 100%;
  border: 0;
}

.biostrap-page h1,
.biostrap-page h2,
.biostrap-page h3,
.biostrap-page p,
.biostrap-page figure,
.biostrap-page blockquote {
  margin: 0;
}

.biostrap-page ul,
.biostrap-page ol,
.biostrap-page dl,
.biostrap-page dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

.biostrap-page a {
  color: inherit;
  text-decoration: none;
}

.biostrap-page strong,
.biostrap-page b {
  font-weight: 700;
}

.biostrap-page :focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.biostrap-page ::selection {
  background: var(--orange);
  color: #fff;
}

/* ---------- 3. Shared helpers ---------- */
.biostrap-page .wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.biostrap-page .wrap--narrow {
  max-width: calc(var(--wrap-nar) + var(--gutter-nar) * 2);
  padding-inline: var(--gutter-nar);
}

.biostrap-page .section-title {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.315;
  color: var(--black);
}

.biostrap-page .section-title--center {
  text-align: center;
}

.biostrap-page .grad-text {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.biostrap-page .accent {
  color: var(--orange);
}

.biostrap-page .accent a,
.biostrap-page a.accent {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* icons */
.biostrap-page .icon-arrow-sm {
  width: 14px;
  height: 38px;
  flex: 0 0 14px;
}

.biostrap-page .icon-check-sm {
  width: 14px;
  height: 30px;
  flex: 0 0 14px;
}

.biostrap-page .icon-arrow-md {
  width: 16px;
  height: 45px;
  flex: 0 0 16px;
}

.biostrap-page .icon-arrow-lg {
  width: 20px;
  height: 45px;
  flex: 0 0 20px;
}

.biostrap-page .icon-mark {
  width: 16px;
  height: 30px;
  flex: 0 0 16px;
}

.biostrap-page .icon-30 {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

/* =========================================================================
   4. HERO
   ========================================================================= */
.biostrap-page .hero {
  position: relative;
  height: clamp(480px, 50vw, 960px);
  overflow: hidden;
  background: linear-gradient(-61.847deg, #ff7140 0%, #d85a2e 84.019%);
}

.biostrap-page .hero__wave {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: clamp(200px, 26.15vw, 502px);
  filter: blur(45px);
  -webkit-filter: blur(45px);
  opacity: 0.65;
  pointer-events: none;
}

.biostrap-page .hero__wave img {
  position: absolute;
  inset: -27.89% -7.29%;
  width: 114.58%;
  height: 155.78%;
  max-width: none;
}

.biostrap-page .hero__logo {
  position: absolute;
  left: 50%;
  top: clamp(80px, 5.5vw, 110px);
  transform: translateX(-50%);
  z-index: 2;
  background: var(--white);
  border-radius: 999px;
  padding: clamp(10px, 0.94vw, 18px) clamp(16px, 1.35vw, 26px);
}

.biostrap-page .hero__logo-mark {
  width: clamp(150px, 14.06vw, 270px);
  height: auto;
  aspect-ratio: 270 / 49.456;
}

.biostrap-page .hero__device {
  position: absolute;
  left: 50%;
  bottom: max(-90px, -4.5vw);
  transform: translateX(-50%);
  width: clamp(340px, 68vw, 1300px);
  height: auto;
  max-width: none;
}

/* =========================================================================
   5. INTRO
   ========================================================================= */
.biostrap-page .intro {
  padding-block: var(--pad-y);
}

.biostrap-page .intro__title {
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.382;
  color: var(--black);
  margin-bottom: 40px;
}

.biostrap-page .intro__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--text-600);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.biostrap-page .intro__body strong {
  color: var(--black);
}

.biostrap-page .intro__body .accent {
  color: var(--orange);
}

/* =========================================================================
   6. KEY TAKEAWAYS
   ========================================================================= */
.biostrap-page .takeaways {
  background: var(--ink);
  padding-top: var(--pad-y);
  overflow: hidden;
  padding-bottom: 0px;
}

.biostrap-page .takeaways__grid {
  display: grid;
  grid-template-columns: 494px minmax(0, 1fr);
  align-items: start;
}

.biostrap-page .takeaways__title {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
}

.biostrap-page .takeaways__list {
  border: 1px solid var(--cream-line);
  border-bottom: 0;
  border-radius: var(--r-20) var(--r-20) 0 0;
}

.biostrap-page .takeaways__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: var(--pad-card);
  border-bottom: 1px solid var(--cream-line);
}

.biostrap-page .takeaways__item--last {
  border-bottom: 0;
  padding-bottom: clamp(48px, 4.17vw, 80px);
}

.biostrap-page .takeaways__item p {
  color: var(--shell);
  font-size: var(--fs-body-lg);
  line-height: 1.462;
}

/* =========================================================================
   7. AT A GLANCE
   ========================================================================= */
.biostrap-page .glance {
  padding-top: clamp(20px, 2.5vw, 40px);
  padding-bottom: var(--pad-y);
}

/* sticky navigation tabs section */
.biostrap-page .tabs-section {
  position: -webkit-sticky;
  position: sticky;
  top: 72px;
  z-index: 1000;
  padding-top: 16px;
  padding-bottom: 16px;
  background: var(--shell);
  transition: top 0.2s ease, background-color 0.2s ease;
}

@media (max-width: 991.98px) {
  .biostrap-page .tabs-section {
    top: 0px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (max-width: 575.98px) {
  .biostrap-page .tabs-section {
    top: 0px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* tab bar */
.biostrap-page .tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: 100px;
  padding: 8px 12px;
  box-shadow: 0 4px 7.5px rgba(0, 0, 0, 0.06);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.biostrap-page .tabs::-webkit-scrollbar {
  display: none;
}

.biostrap-page .tabs__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px clamp(12px, 1.4vw, 24px);
  border-radius: 50px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--fs-sm);
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-600);
  transition: color 0.2s ease, background-color 0.2s ease;
}

@media (max-width: 991.98px) {
  .biostrap-page .tabs {
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
  }

  .biostrap-page .tabs__item {
    padding: 10px 18px;
    font-size: 13px;
  }
}

.biostrap-page .tabs__item:hover {
  color: var(--black);
}

.biostrap-page .tabs__item.is-active {
  background: var(--grad);
  color: var(--white);
  font-weight: 600;
}

.biostrap-page .tabs__item.is-active:hover {
  color: var(--white);
}

.biostrap-page .glance__row {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.biostrap-page .glance__title {
  flex: 0 0 auto;
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.biostrap-page .facts {
  flex: 1 1 0;
  min-width: 0;
  background: var(--beige);
  border-radius: var(--r-30);
  padding: clamp(24px, 2.08vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.08vw, 40px);
}

.biostrap-page .facts__row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.biostrap-page .facts__label {
  flex: 0 0 240px;
  max-width: 240px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.5;
  color: var(--black);
}

.biostrap-page .facts__value {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--text-900);
}

.biostrap-page .facts__value--client {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.biostrap-page .client-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.biostrap-page .client-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid #ffc890;
  border-radius: 60px;
  padding: 6px 14px;
  font-size: var(--fs-sm);
}

.biostrap-page .client-pill__sub {
  color: var(--text-600);
  white-space: nowrap;
}

.biostrap-page .client-pill__main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.biostrap-page .client-pill strong {
  font-weight: 600;
  color: var(--black);
}

.biostrap-page .facts__value--founder {
  display: flex;
  align-items: center;
  gap: 10px;
}

.biostrap-page .founder__avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  object-fit: cover;
}

.biostrap-page .founder__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.biostrap-page .founder__name {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--black);
}

.biostrap-page .founder__role {
  font-size: var(--fs-sm);
  color: var(--text-900);
}

.biostrap-page .facts__value--tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.biostrap-page .tag {
  background: var(--shell);
  border-radius: 60px;
  padding: 6px 16px;
  font-size: var(--fs-body);
  color: var(--text-900);
}

.biostrap-page .facts__value--stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.biostrap-page .facts__line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* =========================================================================
   8. STATS STRIP
   ========================================================================= */
.biostrap-page .stats {
  padding-block: 0;
}

.biostrap-page .stats__grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.biostrap-page .stats__card {
  background: var(--brown);
  border-radius: var(--r-30);
  padding: var(--pad-card);
}

.biostrap-page .stats__card--clients {
  flex: 1 1 648px;
  min-width: 0;
  min-height: 354px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.biostrap-page .clients__title {
  font-size: var(--fs-32);
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  text-align: center;
}

.biostrap-page .clients__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.biostrap-page .logo-chip {
  background: var(--shell);
  border-radius: var(--r-16);
  height: 90px;
  padding: 8px clamp(14px, 1.82vw, 35px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.biostrap-page .logo-chip__art {
  position: relative;
  display: block;
  width: var(--art-w);
  height: var(--art-h);
  overflow: hidden;
}

.biostrap-page .logo-chip__img--fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.biostrap-page .logo-chip__img--stanford {
  position: absolute;
  top: 0.45%;
  right: 19.01%;
  bottom: 0.35%;
  left: 19.55%;
  width: auto;
  height: auto;
}

.biostrap-page .logo-chip__img--nasa {
  position: absolute;
  top: 5.28%;
  right: 2.64%;
  bottom: 7.46%;
  left: 0;
  width: auto;
  height: auto;
}

.biostrap-page .logo-chip__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  white-space: nowrap;
}

.biostrap-page .stats__col {
  flex: 0 1 425px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.biostrap-page .stats__col .stat {
  flex: 1 1 auto;
}

.biostrap-page .stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.biostrap-page .stat__value {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--orange);
}

.biostrap-page .stat__value--two-line {
  line-height: 1.278;
}

.biostrap-page .stat__value--sm {
  font-size: clamp(18px, 1.458vw, 28px);
  line-height: 1.25;
}

.biostrap-page .stat__label {
  font-size: var(--fs-24);
  font-weight: 500;
  line-height: 1.3;
  color: var(--white);
}

.biostrap-page .stats__card--hipaa {
  position: relative;
  flex: 1 1 647px;
  min-width: 0;
  min-height: 354px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.biostrap-page .hipaa__art {
  position: absolute;
  top: var(--pad-card);
  right: var(--pad-card);
  width: clamp(180px, 18.75vw, 360px);
  height: auto;
  aspect-ratio: 360 / 150;
  pointer-events: none;
}

.biostrap-page .stats__card--hipaa .stat__value {
  position: relative;
  z-index: 1;
}

/* =========================================================================
   9. WHY THIS HAD TO BE BUILT
   ========================================================================= */
.biostrap-page .why {
  padding-block: var(--pad-y);
}

.biostrap-page .why .section-title {
  margin-bottom: 40px;
}

.biostrap-page .why__grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.biostrap-page .why__quote {
  flex: 0 1 648px;
  min-width: 0;
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.biostrap-page .why__bar {
  flex: 0 0 8px;
  width: 8px;
  border-radius: 20px;
  background: var(--grad);
}

.biostrap-page .why__quote p {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.5;
  color: var(--black);
}

.biostrap-page .why__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: var(--fs-body-lg);
  line-height: 1.462;
  color: var(--text-600);
}

/* =========================================================================
   10. THE CHALLENGE
   ========================================================================= */
.biostrap-page .challenge {
  background: var(--beige);
  padding-block: var(--pad-y);
}

.biostrap-page .challenge__grid {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.biostrap-page .challenge__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.biostrap-page .challenge__col--left {
  align-self: stretch;
}

.biostrap-page .challenge__title {
  margin-bottom: auto;
}

.biostrap-page .challenge-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-30);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.biostrap-page .challenge-card__head,
.biostrap-page .decision-card__head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.5;
  color: var(--black);
}

.biostrap-page .challenge-card p,
.biostrap-page .decision-card p {
  font-size: var(--fs-body);
  line-height: 1.455;
  color: var(--text-600);
}

/* =========================================================================
   11. HOW THE PLATFORM WORKS
   ========================================================================= */
.biostrap-page .flow {
  background: var(--ink);
  padding-block: var(--pad-y);
}

.biostrap-page .flow__title {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.315;
  color: var(--cream);
  text-align: center;
  margin-bottom: 40px;
}

.biostrap-page .flow__title strong {
  font-weight: 700;
}

.biostrap-page .flow__list {
  max-width: var(--wrap-nar);
  margin-inline: auto;
  border: 1px solid var(--cream-line);
  border-radius: var(--r-30);
  overflow: hidden;
}

.biostrap-page .flow__step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: var(--pad-card);
  border-bottom: 1px solid var(--cream-line);
}

.biostrap-page .flow__step:last-child {
  border-bottom: 0;
}

.biostrap-page .flow__head {
  flex: 0 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
}

.biostrap-page .flow__num {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: block;
}

.biostrap-page .flow__num img {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
}

.biostrap-page .flow__num b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--white);
}

.biostrap-page .flow__head h3 {
  width: 250px;
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.5;
  color: var(--white);
}

.biostrap-page .flow__step > p {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--fs-body);
  line-height: 1.455;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================================
   12. ENGINEERING DECISIONS
   ========================================================================= */
.biostrap-page .decisions {
  padding-block: var(--pad-y);
}

.biostrap-page .decisions .section-title {
  margin-bottom: 40px;
}

.biostrap-page .decisions__rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.biostrap-page .decisions__row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.biostrap-page .decision-card {
  background: var(--white);
  border-radius: var(--r-30);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.biostrap-page .decisions__row--two .decision-card {
  flex: 1 1 0;
  min-width: 0;
}

.biostrap-page .decision-card--w690 {
  flex: 1 1 690px;
  min-width: 0;
}

.biostrap-page .decision-card--w590 {
  flex: 1 1 590px;
  min-width: 0;
}

.biostrap-page .decision-card--fill {
  flex: 1 1 440px;
  min-width: 0;
}

/* =========================================================================
   13. BUILT FOR RESEARCH GRADE TRUST
   ========================================================================= */
.biostrap-page .trust {
  padding-top: 0px;
  padding-bottom: var(--pad-y);
}

.biostrap-page .trust .section-title {
  margin-bottom: 40px;
}

.biostrap-page .trust__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: var(--fs-body-lg);
  line-height: 1.462;
  color: var(--text-600);
}

/* =========================================================================
   14. RESULTS
   ========================================================================= */
.biostrap-page .results {
  padding-top: 0px;
  padding-bottom: 0px;
}

.biostrap-page .results__split {
  display: flex;
  align-items: stretch;
}

.biostrap-page .results__panel {
  flex: 1 1 50%;
  min-width: 0;
  background: var(--ink);
  padding: clamp(32px, 4.17vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 996px;
}

.biostrap-page .results__title {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.315;
  color: var(--cream);
}

.biostrap-page .results__table {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.biostrap-page .results__head {
  display: flex;
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.5);
}

.biostrap-page .results__head .results__meaning {
  color: inherit;
  line-height: 1.4;
}

.biostrap-page .results__row {
  display: flex;
  align-items: flex-start;
}

.biostrap-page .results__metric {
  flex: 0 0 51.25%;
  max-width: 51.25%;
  min-width: 0;
}

.biostrap-page .results__meaning {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--fs-body);
  line-height: 1.455;
  color: rgba(255, 255, 255, 0.8);
}

.biostrap-page .results__row .stat__label {
  margin-top: -4px;
}

.biostrap-page .results__rule {
  width: 100%;
  height: 1px;
}

.biostrap-page .results__media {
  flex: 1 1 50%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  min-height: 996px;
}

.biostrap-page .results__media img {
  position: absolute;
  top: -46.18%;
  left: -82.17%;
  width: 232.32%;
  height: 149.3%;
  max-width: none;
  object-fit: cover;
}

.biostrap-page .results__bar {
  height: 10px;
  background: var(--grad);
}

/* =========================================================================
   15. COMPARISON TABLE
   ========================================================================= */
.biostrap-page .compare {
  padding-block: var(--pad-y);
}

.biostrap-page .compare .section-title {
  margin-bottom: 40px;
}

.biostrap-page .compare__table {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 0;
  align-items: stretch;
}

.biostrap-page .cell {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: var(--pad-card);
  font-size: var(--fs-body);
  line-height: 1.4;
}

.biostrap-page .cell--head {
  padding: 20px var(--pad-card);
  align-items: center;
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.biostrap-page .cell--matrix {
  background: var(--white);
  border-bottom: 1px solid var(--hairline-soft);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--black);
}

.biostrap-page .cell--matrix.cell--head {
  color: var(--text-900);
}

.biostrap-page .cell--consumer {
  background: var(--cream);
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--black);
}

.biostrap-page .cell--consumer.cell--head {
  color: var(--text-900);
}

.biostrap-page .cell--biostrap {
  background: var(--grad);
  border-bottom: 1px solid var(--white-line);
  color: var(--white);
  font-weight: 500;
}

.biostrap-page .cell--last {
  border-bottom: 0;
}

.biostrap-page .compare__table > .cell--head {
  border-radius: var(--r-20) var(--r-20) 0 0;
}

.biostrap-page .compare__table > .cell--last {
  border-radius: 0 0 var(--r-20) var(--r-20);
}

.biostrap-page .cell__icon--consumer {
  position: relative;
  flex: 0 0 41px;
  width: 41px;
  height: 41px;
  display: block;
  overflow: hidden;
}

.biostrap-page .cell__icon--consumer img {
  position: absolute;
  top: 0;
  right: 19.64%;
  bottom: 0;
  left: 19.64%;
  width: auto;
  height: auto;
}

.biostrap-page .cell__logo {
  flex: 0 0 auto;
  width: 50.989px;
  height: 41px;
}

/* =========================================================================
   16. WHAT IS NEXT
   ========================================================================= */
.biostrap-page .next {
  background: var(--brown);
  padding-block: var(--pad-y);
}

.biostrap-page .next__grid {
  display: grid;
  grid-template-columns: 780px minmax(0, 1fr);
  align-items: start;
}

.biostrap-page .next__title {
  max-width: 648px;
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.315;
  color: var(--white);
}

.biostrap-page .next__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.biostrap-page .next__spine {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 295px;
  max-width: none;
}

.biostrap-page .next__item {
  position: relative;
  display: flex;
  gap: 30px;
  align-items: center;
}

.biostrap-page .next__card {
  flex: 1 1 0;
  min-width: 0;
  background: var(--white);
  border-radius: var(--r-20);
  padding: var(--pad-card);
  font-size: var(--fs-body-lg);
  line-height: 1.462;
  color: var(--black);
}

/* =========================================================================
   17. FAQ ACCORDION (SMOOTH ANIMATION & SINGLE OPEN)
   ========================================================================= */
.biostrap-page .faq {
  padding-block: var(--pad-y);
}

.biostrap-page .faq .section-title {
  margin-bottom: 40px;
}

.biostrap-page .faq__list {
  border-radius: var(--r-20);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.biostrap-page .faq__item {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.3s ease;
}

.biostrap-page .faq__item:last-child {
  border-bottom: 0;
}

.biostrap-page .faq__q {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: var(--pad-card);
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-size: var(--fs-24);
  font-weight: 600;
  line-height: 1.35;
  color: var(--black);
  position: relative;
  transition: color 0.3s ease;
}

.biostrap-page .faq__q::-webkit-details-marker {
  display: none;
}

.biostrap-page .faq__q::marker {
  content: '';
}

.biostrap-page .faq__q > span,
.biostrap-page .faq__q > h3,
.biostrap-page .faq__title {
  flex: 1 1 0;
  min-width: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
}

.biostrap-page .faq__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.biostrap-page .faq__item .faq__icon--minus {
  display: block;
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
  position: absolute;
  right: var(--pad-card);
}

.biostrap-page .faq__item .faq__icon--plus {
  display: block;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.biostrap-page .faq__item[open] .faq__icon--minus {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.biostrap-page .faq__item[open] .faq__icon--plus {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

.biostrap-page .faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.biostrap-page .faq__item[open] .faq__body {
  grid-template-rows: 1fr;
}

.biostrap-page .faq__a {
  min-height: 0;
  overflow: hidden;
  padding: 0 var(--pad-card) var(--pad-card);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-600);
  opacity: 0;
  transition: opacity 0.3s ease 0.05s;
}

.biostrap-page .faq__item[open] .faq__a {
  opacity: 1;
}

.biostrap-page .faq__a a {
  color: #ff7140;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.biostrap-page .faq__a a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* =========================================================================
   18. CTA
   ========================================================================= */
.biostrap-page .cta {
  position: relative;
  padding-top: 70px;
  padding-bottom: 0px;
}

.biostrap-page .cta__band {
  position: relative;
  overflow: visible;
  min-height: 476px;
  display: flex;
  align-items: center;
  padding: var(--pad-y) 0;
  background: var(--grad);
}

.biostrap-page .cta__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 156.609px;
  overflow: hidden;
  filter: blur(45px);
  -webkit-filter: blur(45px);
  opacity: 0.65;
  pointer-events: none;
}

.biostrap-page .cta__wave img {
  position: absolute;
  inset: -38.31% -3.13%;
  width: 106.26%;
  height: 176.62%;
  max-width: none;
}

.biostrap-page .cta__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.biostrap-page .cta__title {
  max-width: clamp(340px, 54vw, 680px);
  font-size: var(--fs-cta);
  font-weight: 400;
  line-height: 1.25;
  color: var(--white);
}

.biostrap-page .cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  border-radius: 100px;
  padding: 20px 30px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--fs-24);
  line-height: normal;
  text-transform: uppercase;
  color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.biostrap-page .cta__btn:hover {
  background: var(--white);
  color: var(--orange-deep);
}

.biostrap-page .cta__photo {
  position: absolute;
  right: clamp(10px, 4vw, 80px);
  bottom: 0;
  top: -75px;
  height: calc(100% + 75px);
  width: auto;
  pointer-events: none;
  z-index: 0;
}

.biostrap-page .cta__photo img {
  position: relative;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
}

/* =========================================================================
   19. RESPONSIVE
   ========================================================================= */
@media (max-width: 991.98px) {
  .biostrap-page .hero {
    height: 440px;
  }

  .biostrap-page .hero__logo {
    top: 75px;
    padding: 8px 18px;
  }

  .biostrap-page .hero__logo-mark {
    width: 145px;
  }

  .biostrap-page .hero__device {
    width: 78%;
    max-width: 540px;
    bottom: -25px;
  }

  .biostrap-page .stats__grid {
    gap: 20px;
  }

  .biostrap-page .stats__col {
    gap: 20px;
  }

  .biostrap-page .stats__card--clients,
  .biostrap-page .stats__card--hipaa {
    min-height: 0;
    justify-content: flex-start;
    gap: 20px;
  }
}

@media (max-width: 575.98px) {
  .biostrap-page .hero {
    height: 380px;
  }

  .biostrap-page .hero__logo {
    top: 70px;
    padding: 7px 14px;
  }

  .biostrap-page .hero__logo-mark {
    width: 125px;
  }

  .biostrap-page .hero__device {
    width: 86%;
    max-width: 420px;
    bottom: -20px;
  }

  .biostrap-page .stats__grid {
    gap: 20px;
  }

  .biostrap-page .stats__col {
    gap: 20px;
  }

  .biostrap-page .stats__card--clients,
  .biostrap-page .stats__card--hipaa {
    min-height: 0;
    justify-content: flex-start;
    gap: 20px;
  }

  .biostrap-page .facts__value--client {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .biostrap-page .client-pill {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-radius: 16px;
    padding: 8px 14px;
    width: 100%;
  }

  .biostrap-page .client-pill__sub {
    font-size: 13px;
  }

  .biostrap-page .client-pill__main {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1280px) {
  :root {
    --gutter-nar: clamp(20px, 8vw, 120px);
  }
}

@media (max-width: 900px) {
  :root {
    --gutter-nar: var(--gutter);
  }
}

@media (max-width: 1600px) {
  .biostrap-page .takeaways__grid {
    grid-template-columns: minmax(240px, 28%) minmax(0, 1fr);
  }

  .biostrap-page .next__grid {
    grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
    gap: 40px;
  }

  .biostrap-page .glance__row {
    gap: 40px;
  }

  .biostrap-page .facts__label {
    flex-basis: 200px;
    max-width: 200px;
  }
}

@media (max-width: 1280px) {
  .biostrap-page .decisions__row--three {
    flex-wrap: wrap;
  }

  .biostrap-page .decision-card--w690,
  .biostrap-page .decision-card--w590 {
    flex: 1 1 380px;
  }

  .biostrap-page .decision-card--fill {
    flex: 1 1 100%;
  }

  .biostrap-page .flow__head h3 {
    width: 180px;
  }

  .biostrap-page .cta__title {
    max-width: 60%;
  }
}

@media (max-width: 1100px) {
  .biostrap-page .takeaways__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .biostrap-page .glance__row {
    flex-direction: column;
    gap: 32px;
  }

  .biostrap-page .glance__title {
    white-space: normal;
  }

  .biostrap-page .stats__grid {
    flex-wrap: wrap;
  }

  .biostrap-page .stats__card--clients {
    flex: 1 1 100%;
    min-height: 0;
    justify-content: flex-start;
    gap: 20px;
  }

  .biostrap-page .stats__col {
    flex: 1 1 300px;
  }

  .biostrap-page .stats__card--hipaa {
    flex: 1 1 380px;
    min-height: 0;
    justify-content: flex-start;
    gap: 20px;
  }

  .biostrap-page .hipaa__art {
    width: clamp(120px, 22vw, 220px);
  }

  .biostrap-page .stats__card--hipaa .stat__value {
    padding-right: clamp(132px, 24vw, 240px);
  }

  .biostrap-page .why__grid {
    flex-direction: column;
    gap: 32px;
  }

  .biostrap-page .why__quote {
    flex: 1 1 auto;
    width: 100%;
  }

  .biostrap-page .challenge__grid {
    flex-direction: column;
    align-items: stretch;
  }

  .biostrap-page .challenge__col--left {
    align-self: auto;
  }

  .biostrap-page .challenge__title {
    margin-bottom: 12px;
  }

  .biostrap-page .decisions__row--two {
    flex-wrap: wrap;
  }

  .biostrap-page .decisions__row--two .decision-card {
    flex: 1 1 100%;
  }

  .biostrap-page .results__split {
    flex-direction: column;
  }

  .biostrap-page .results__panel {
    min-height: 0;
  }

  .biostrap-page .results__media {
    min-height: clamp(320px, 48vw, 560px);
  }

  .biostrap-page .next__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .biostrap-page .next__title {
    max-width: none;
  }

  .biostrap-page .cta__photo {
    display: none;
  }

  .biostrap-page .cta__title {
    max-width: none;
  }

  .biostrap-page .cta__band {
    min-height: 0;
  }
}

@media (max-width: 1024px) {
  .biostrap-page .compare__table {
    grid-template-columns: clamp(140px, 22vw, 220px) minmax(0, 1fr) minmax(
        0,
        1fr
      );
  }
}

@media (max-width: 768px) {
  .biostrap-page .facts__row {
    flex-direction: column;
    gap: 8px;
  }

  .biostrap-page .facts__label {
    flex: 0 0 auto;
    max-width: none;
  }

  .biostrap-page .flow__step {
    flex-direction: column;
    gap: 14px;
  }

  .biostrap-page .flow__head h3 {
    width: auto;
  }

  .biostrap-page .results__row {
    flex-direction: column;
    gap: 8px;
  }

  .biostrap-page .results__metric {
    flex: 1 1 auto;
    max-width: none;
  }

  .biostrap-page .results__head {
    display: none;
  }

  .biostrap-page .next__item {
    gap: 0;
  }

  .biostrap-page .next__spine,
  .biostrap-page .icon-arrow-lg {
    display: none;
  }

  .biostrap-page .cta__btn {
    padding: 16px 24px;
  }

  .biostrap-page .logo-chip {
    height: auto;
    padding: 12px 18px;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .biostrap-page .compare__table {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .biostrap-page .compare__table > .cell--matrix {
    padding: 22px 0 10px;
  }

  .biostrap-page .compare__table > .cell--consumer,
  .biostrap-page .compare__table > .cell--biostrap {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--r-20);
    margin-bottom: 10px;
  }

  .biostrap-page .compare__table > .cell--consumer[data-col]::before,
  .biostrap-page .compare__table > .cell--biostrap[data-col]::before {
    content: attr(data-col);
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
  }

  .biostrap-page .compare__table .icon-mark {
    grid-column: 1;
    margin-top: 3px;
  }

  .biostrap-page .compare__table > .cell > span {
    grid-column: 2;
  }

  .biostrap-page .compare__table > .cell--head:nth-child(2),
  .biostrap-page .compare__table > .cell--head:nth-child(3) {
    display: none;
  }

  .biostrap-page .intro__title {
    margin-bottom: 24px;
  }

  .biostrap-page .why .section-title,
  .biostrap-page .decisions .section-title,
  .biostrap-page .trust .section-title,
  .biostrap-page .compare .section-title,
  .biostrap-page .faq .section-title {
    margin-bottom: 24px;
  }

  .biostrap-page .flow__title {
    margin-bottom: 24px;
  }

  .biostrap-page .icon-arrow-sm {
    width: 10px;
    height: 27px;
    flex: 0 0 10px;
  }

  .biostrap-page .icon-arrow-md {
    width: 12px;
    height: 34px;
    flex: 0 0 12px;
  }

  .biostrap-page .icon-arrow-lg {
    width: 14px;
    height: 32px;
    flex: 0 0 14px;
  }

  .biostrap-page .icon-check-sm {
    width: 11px;
    height: 24px;
    flex: 0 0 11px;
  }

  .biostrap-page .icon-mark {
    width: 13px;
    height: 24px;
    flex: 0 0 13px;
  }

  .biostrap-page .faq__icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
  }

  .biostrap-page .cta__inner {
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .biostrap-page .hipaa__art {
    position: static;
    width: min(240px, 72%);
    margin-bottom: 0;
  }

  .biostrap-page .stats__card--hipaa .stat__value {
    padding-right: 0;
  }
}

@media (max-width: 420px) {
  .biostrap-page .client-pill {
    padding: 6px 12px;
  }

  .biostrap-page .founder__avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .biostrap-page .logo-chip {
    padding: 10px 14px;
  }

  .biostrap-page .tabs {
    padding: 6px;
  }

  .biostrap-page .tabs__item {
    padding: 12px 18px;
  }

  .biostrap-page .cta__btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .biostrap-page * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
