/* ==========================================================================
   BioStem (BSEM) — design tokens
   Palette keeps BioStem's own brand green + blue (from the company logo),
   refined and given a warm paper ground instead of stock neon/white.
   ========================================================================== */
:root {
    --ink: #12283A;          /* deep clinical navy — dark sections, headings */
    --ink-soft: #4A5A64;     /* muted body copy on paper */
    --paper: #edfff5;        /* warm clinical paper — page ground */
    --paper-card: #fff;   /* card fill on paper */
    --paper-alt: #fff;    /* sage-tinted paper for zebra sections */
    --regen: #009b50;        /* refined brand green — growth / regeneration */
    --regen-soft: #E3EFE6;   /* pale tint of regen */
    --clinical-blue: #002851;/* refined brand blue */
    --bell: #00a59f;         /* brass accent — reserved for milestone moments */
    --line: rgba(0, 52, 94, 0.14);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', SFMono-Regular, Menlo, monospace;
}

body.bsem {
    font-family: var(--font-body);
    color: var(--ink-soft);
    background-color: var(--paper);
}

body {
    color: var(--ink-soft);
}

li {
    margin-top: 20px;
}

p {
    line-height: 1.7;
    margin-bottom: 1.5rem !important;
}

p.fs-1 {
    line-height: 1.5;
}

p.fs-2 {
    line-height: 1.45;
}

p.fs-3, p.fs-4 {
    line-height: 1.45;
}

/* Headings carry the page's personality */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1.text-decoration-underline,
.text-decoration-underline {
    text-decoration: none !important;
    position: relative;
    padding-bottom: 0.6rem;
}

h1.text-decoration-underline::after,
.text-decoration-underline::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: var(--bell);
    border-radius: 2px;
}

h1.text-lg-start.text-decoration-underline::after {
    left: 0;
    transform: none;
}

.logos {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logos a {
    text-decoration: none;
    display: inline-block;
    min-width: 0;
    max-width: 100%;
}

.logos img {
    min-width: 0;
}

.logos .logos_separator {
    margin: 0 30px;
    display: inline-block;
    width: 8px;
    background-color: black;
    height: 55px;
    transform: rotate(20deg);
}

.logoGame {
    max-width: 250px;
}

.container-fluid {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.logoGame img {
    max-height: 62px;
}

.ticker {
    color: #fff;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    height: 800px;
    font-weight: bold;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right bottom;
    background-color: var(--ink);
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 32, 48, .58) 0%, rgba(15, 32, 48, .8) 100%);
    z-index: 1;
}

/* .hero is a flex row, so its .container child otherwise refuses to
   shrink below its text's natural width and overflows narrow viewports */
.hero > .container {
    min-width: 0;
    width: 100%;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 50px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero h4 {
    font-family: var(--font-body);
    font-weight: 500 !important;
    letter-spacing: 0.02em;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bell);
    margin-bottom: 18px;
}

.hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bell);
}

span.text-1 {
    font-weight: bold;
    color: var(--regen);
}

.bg1 {
    background-color: var(--paper-card);
}

.bg2 {
    background-color: var(--ink);
    color: #fff;
}

.bg3 {
    background-color: var(--regen);
    color: #fff;
}

.bg4 {
    background-color: var(--paper-alt);
}

.bg5 {
    background-color: var(--ink);
}

.bg3 *, .bg2 * {
    color: #fff;
}

/* Brand-colored text utilities must yield to white on dark/green fills —
   otherwise a green .text-1 span vanishes on the green .bg3 background */
.bg2 .text-1, .bg3 .text-1,
.bg2 .text-2, .bg3 .text-2,
.bg2 .text-3, .bg3 .text-3,
.bg5 .text-1, .bg5 .text-2, .bg5 .text-3 {
    color: #fff !important;
}

.bg-cover {
    background-size: cover;
    background-position: center;
}

.bg-shadow {
    position: relative;
}

.bg-shadow::after {
    z-index: 0;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 32, 48, .45) 0%, rgba(15, 32, 48, .72) 100%);
}

.bg-shadow .container {
    position: relative;
    z-index: 1;
}

.highlight {
    color: var(--clinical-blue);
}

.highlight2 {
    color: var(--regen);
}

.col-5 {
  flex: 0 0 calc(100% / 5);
  max-width: calc(100% / 5);
}
@media (max-width: 768px) {
  .col-5 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .col-55 {
    flex: 0 0 50%;
    max-width: 100%;
  }
}

a {
    color: var(--regen);
}

section {
    overflow: hidden;
}

h3.title {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: center;
    color: var(--regen);
}

/* ==========================================================================
   Cards — quiet neutral surface, hairline border, no colored glow
   ========================================================================== */
.card {
    display: block;
    border: none !important;
    background-color: var(--paper-card);
}

/* Compound selectors so cards that also carry a bg utility keep their
   intended fill instead of falling back to the neutral card surface */
.card.bg1 { background-color: var(--paper-card); }
.card.bg2 { background-color: var(--ink); }
.card.bg3 { background-color: var(--regen); }
.card.bg4 { background-color: var(--paper-alt); }
.card.bg5 { background-color: var(--ink); }

.signup {
    background-color: #000000;
    background-image: url('../images/stones.png');
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: right center;
    min-height: 500px;
}

.signup input[type=email], .signup input[type=phone] {
    border: solid 3px var(--regen);
    padding: 5px 5px 5px 20px;
    color: #000;
    border-radius: 0px;
}

.signup input[type=submit] {
    border: solid 3px var(--regen);
    background-color: var(--regen);
    padding: 5px;
    color: #fff;
    border-radius: 0px;
    font-weight: bold;
    padding: 5px 20px;
}

header {
    position: absolute;
    background-color: transparent;
    top: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    z-index: 1000;
    padding: 10px;
}

header .container {
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(18, 40, 58, .08);
}

.header_ticker {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background-color: var(--regen);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: max-content;
    color: #000;
}

.header_ticker2 {
    position: absolute;
    right: 0;
    z-index: 10;
    top: 0;
    height: 100%;
    background-color: var(--regen);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: max-content;
    color: #000;
    font-size: 15px;
}

.header_ticker a {
    text-decoration: none;
    color: #000;
    padding: 0px 20px;
    font-weight: bold;
}

.disclaimer p {
    font-size: 15px !important;
}

@media (max-width: 768px) {
    body::before {
        display: none !important;
    }

    .header_ticker2::before {
        width: auto;
        height: auto;
        background-color: #ccc;
        position: absolute;
        display: block;
        content: "Sponsored content";
        top: 0;
        right: 36%;
        padding: 0 10px;
        border-radius: 0 0 10px 10px;
        font-size: 11px;
        font-family: var(--font-body);
        z-index: 10000;
    }

    .header_ticker {
        right: 0px !important;
    }

    .header_ticker2 {
        right: 0px !important;
        max-width: 100% !important;
        width: 100%;
        top: 72px;
        height: 100px;
        border-radius: 0 0 10px 10px;
    }
}

.text-1 {
    color: var(--regen) !important;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.text-2 {
    color: var(--clinical-blue) !important;
}

.text-white {
    color: #FFFFFF !important;
}

.text-3 {
    color: #453828 !important;
}

.text-dark {
    color: #1D1D1D !important;
}

/* Quiet neutral elevation instead of colored glow halos */
.box-shadow {
    box-shadow: 0 1px 2px rgba(18, 40, 58, .05), 0 12px 28px rgba(18, 40, 58, .08);
    border: 1px solid var(--line);
}

.box-shadow-1 {
    box-shadow: 0 1px 2px rgba(18, 40, 58, .05), 0 12px 28px rgba(18, 40, 58, .08);
    border: 1px solid var(--line);
    border-top: 3px solid var(--regen);
}

.box-shadow-2 {
    box-shadow: 0 1px 2px rgba(18, 40, 58, .05), 0 12px 28px rgba(18, 40, 58, .08);
    border: 1px solid var(--line);
    border-top: 3px solid var(--clinical-blue);
}

body.bsem .btn-primary {
    background: var(--regen);
    color: #fff;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    border-radius: 100px;
    padding: 18px 52px;
    border: none;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.bsem .btn-primary:hover {
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

body.bsem .cta {
    background-color: var(--regen);
    border-radius: 100px;
    padding: 20px 28px;
    font-family: var(--font-body);
    font-weight: 700;
}

.rounded-more {
    border-radius: 18px !important;
}

/* ==========================================================================
   Signature element — clinical-trial comparison bar
   ========================================================================== */
.stat-compare {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    padding: 2.25rem 2rem 1.75rem;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.stat-compare-row {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat-compare-item {
    flex: 1 1 200px;
}

.stat-compare-label {
    display: block;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .4rem;
}

.stat-compare-value {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.75rem;
    line-height: 1;
    color: var(--ink);
    margin-bottom: .7rem;
}

.stat-compare-item--lead .stat-compare-value {
    color: var(--regen);
}

.stat-compare-bar {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: var(--line);
    overflow: hidden;
}

.stat-compare-fill {
    display: block;
    height: 100%;
    background: var(--regen);
    border-radius: 3px;
}

.stat-compare-fill--muted {
    background: var(--ink-soft);
    opacity: .45;
}

.stat-compare-caption {
    margin: 1.4rem 0 0 !important;
    font-size: .85rem !important;
    color: var(--ink-soft);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .hero {
        position: relative;
    }
    .hero::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(15, 32, 48, .58) 0%, rgba(15, 32, 48, .82) 100%);
        z-index: 0;
    }
    .hero .container {
        position: relative;
        z-index: 1;
    }
    .hero h1 {
        font-size: 32px;
        line-height: 1.2 !important;
    }

    .hero h2 {
        font-size: 30px;
        line-height: 50px !important;
    }

    .signup {
        background-image: none;
    }

    body.bsem .btn-primary {
        font-size: 17px;
        padding: 16px 36px;
    }
    h3.title {
        font-size: 24px;
    }
    .stat-compare-row {
        gap: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    /* The logo + ticker-badge row must wrap on narrow phones — otherwise
       it refuses to shrink and stretches the whole page horizontally,
       clipping the hero headline off-screen. */
    header .d-flex.justify-content-end {
        flex-wrap: wrap;
        justify-content: center !important;
        row-gap: 8px;
    }
    header .bg3.fs-3 {
        font-size: 1rem !important;
        padding-left: .9rem !important;
        padding-right: .9rem !important;
    }
    header img[alt="Logo BSEM"] {
        max-width: 130px;
    }
}
