/* ==========================================================================
   Healthfort v5.2 — Core Landing Layout & Interactions
   Master 5-color palette lives in css/legal-theme.css (imported by v3-nav-footer.css).
   ========================================================================== */

:root {
    --font-display: var(--hf-font-logo);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body.hf-v5 {
    margin: 0;
    font-family: var(--hf-font-body);
    font-size: var(--hf-text-body);
    background: var(--hf-ground);
    color: var(--hf-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.hf-v5 section[id],
body.hf-v5 footer[id] {
    scroll-margin-top: 4.75rem;
}

body.hf-v5 a:focus-visible,
body.hf-v5 button:focus-visible,
body.hf-v5 input:focus-visible,
body.hf-v5 textarea:focus-visible {
    outline: 2px solid var(--hf-sage);
    outline-offset: 2px;
}

.hf-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--hf-slate);
    color: #fff;
    padding: 0.65rem 1.1rem;
    font-size: var(--hf-text-sm);
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
}

.hf-skip-link:focus {
    left: 0;
}

.hf-wrap {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3.2vw, 2.5rem);
}

/* ==========================================================================
   NAVBAR — BRAND KIT OPTION B BOLD MARK + BORDERLESS SCROLL HAIRLINE
   ========================================================================== */
body.hf-v5 .navbar {
    --nav-content-max: 1380px;
    position: sticky !important;
    top: 0;
    z-index: 100;
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    padding: 0.85rem clamp(1.25rem, 3.2vw, 2.5rem);
    transition: border-color 0.2s var(--hf-ease);
}

body.hf-v5 .navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(253, 248, 243, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    transition: background-color 0.2s var(--hf-ease), backdrop-filter 0.2s var(--hf-ease);
}

body.hf-v5 .navbar.is-scrolled {
    border-bottom-color: var(--hf-line);
}

body.hf-v5 .navbar.is-scrolled::before {
    background: rgba(253, 248, 243, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 1440px) {
    body.hf-v5 .navbar {
        padding-left: calc((100% - 1300px) / 2);
        padding-right: calc((100% - 1300px) / 2);
    }
}

body.hf-v5 .footer-inner {
    max-width: 1380px;
    padding-left: clamp(1.25rem, 3.2vw, 2.5rem);
    padding-right: clamp(1.25rem, 3.2vw, 2.5rem);
}

body.hf-v5 #blogs .container {
    max-width: 1380px;
    padding-left: clamp(1.25rem, 3.2vw, 2.5rem);
    padding-right: clamp(1.25rem, 3.2vw, 2.5rem);
}

/* Shared Illustrated Blog Cards across Inner Pages (matches Homepage #blogs) */
.hf-blog-strip {
    margin-top: clamp(3.5rem, 6vw, 4.75rem);
    padding-top: clamp(2.5rem, 4.5vw, 3.5rem);
    border-top: 1px solid var(--hf-line);
}

.hf-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.hf-blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: var(--hf-surface);
    border: 1px solid var(--hf-line);
    text-decoration: none;
    transition: border-color 0.2s var(--hf-ease), transform 0.2s var(--hf-ease), box-shadow 0.2s var(--hf-ease);
}

.hf-blog-card:hover {
    border-color: var(--hf-sage);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(45, 58, 58, 0.07);
}

.hf-blog-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--hf-paper);
}

.hf-blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s var(--hf-ease);
}

.hf-blog-card:hover .hf-blog-card-media img {
    transform: scale(1.03);
}

.hf-blog-card-body {
    padding: 1.05rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hf-blog-card-body strong {
    display: block;
    font-family: var(--hf-font-display);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hf-slate);
    margin-bottom: 0.45rem;
}

.hf-blog-card-body p {
    margin: 0 0 0.9rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--hf-ink-soft);
}

.hf-blog-card-link {
    margin-top: auto;
    font-family: var(--hf-font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--hf-sage-text);
}

@media (max-width: 1120px) {
    .hf-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hf-blog-grid {
        grid-template-columns: 1fr;
    }
}

body.hf-v5 .logo--brand {
    font-family: var(--hf-font-logo);
    color: var(--hf-slate);
    gap: 0.42rem;
}

body.hf-v5 .logo--brand .logo-mark {
    width: auto;
    height: 27px;
    display: block;
}

body.hf-v5 .logo--brand .logo-wordmark {
    font-family: var(--hf-font-logo);
    font-size: 1.45rem !important;
    font-weight: 600;
    letter-spacing: -0.018em;
    color: var(--hf-slate);
}

body.hf-v5 .nav-links > li > a {
    font-family: var(--hf-font-body);
    font-size: var(--hf-text-sm);
    font-weight: 500;
    color: var(--hf-ink-soft);
}

body.hf-v5 .nav-links > li > a:hover {
    color: var(--hf-slate);
}

body.hf-v5 .nav-cta {
    background: var(--hf-slate);
    color: var(--hf-on-dark) !important;
    font-size: var(--hf-text-sm);
    font-weight: 600;
    box-shadow: none;
}

body.hf-v5 .nav-cta:hover {
    background: var(--hf-sage);
}

body.hf-v5 .nav-login {
    border-color: var(--hf-line-strong);
    color: var(--hf-slate) !important;
    font-size: var(--hf-text-sm);
    font-weight: 500;
}

/* ==========================================================================
   SHARED TYPOGRAPHY & BUTTONS
   ========================================================================== */

.hf-h2 {
    font-family: var(--hf-font-display);
    font-size: var(--hf-text-heading);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.032em;
    color: var(--hf-slate);
    margin: 0 0 0.85rem;
}

.hf-sub {
    font-size: var(--hf-text-body);
    line-height: 1.62;
    color: var(--hf-ink-soft);
    margin: 0;
}

.hf-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.65rem;
    background: var(--hf-slate);
    color: var(--hf-on-dark);
    border: 1px solid var(--hf-slate);
    border-radius: 999px;
    font-family: var(--hf-font-body);
    font-size: var(--hf-text-body);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--hf-ease), background-color 0.18s var(--hf-ease), border-color 0.18s var(--hf-ease);
}

.hf-btn-primary:hover {
    background: var(--hf-sage);
    border-color: var(--hf-sage);
    color: #fff;
    transform: translateY(-1px);
}

.hf-link-quiet {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--hf-text-body);
    font-weight: 600;
    color: var(--hf-slate);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--hf-line-strong);
    transition: color 0.18s var(--hf-ease), border-color 0.18s var(--hf-ease);
}

.hf-link-quiet:hover {
    color: var(--hf-sage);
    border-bottom-color: var(--hf-sage);
}

.hf-inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--hf-text-body);
    font-weight: 600;
    color: var(--hf-slate);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1.5px solid var(--hf-slate);
    transition: color 0.18s var(--hf-ease), border-color 0.18s var(--hf-ease);
}

.hf-inline-cta:hover {
    color: var(--hf-sage);
    border-bottom-color: var(--hf-sage);
}

/* ==========================================================================
   1. HERO — STRONG PREMISE + 1,10,000+ PROOF + INTERACTIVE 10s RETINA STAGE
   ========================================================================== */
.hf-hero {
    margin-top: -4.75rem;
    padding: clamp(7.5rem, 10vw, 9.25rem) 0 clamp(3rem, 5vw, 4.25rem);
    background: var(--hf-ground);
}

.hf-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: clamp(2rem, 4.5vw, 3.75rem);
    align-items: center;
}

.hf-hero-title {
    font-family: var(--hf-font-display);
    font-size: clamp(2.2rem, 3.65vw, 3.1rem);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.034em;
    color: var(--hf-slate);
    margin: 0 0 1.05rem;
}

.hf-hero-lede {
    font-size: 0.98rem;
    line-height: 1.62;
    color: var(--hf-ink-soft);
    max-width: 44ch;
    margin: 0 0 1.65rem;
}

.hf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
}

/* Compact 3-Stat Proof Bar (1,10,000+ · 30% · 6+) — stays on one row cleanly */
.hf-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    justify-content: start;
    gap: 1.25rem clamp(1.25rem, 2.8vw, 2.5rem);
    margin: 2rem 0 0;
    padding-top: 1.45rem;
    border-top: 1px solid var(--hf-line);
}

.hf-stat {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.18rem;
}

.hf-stat dd {
    margin: 0;
    font-family: var(--hf-font-display);
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--hf-slate);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.hf-stat dt {
    font-family: var(--hf-font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hf-muted);
}

/* Interactive Hero Stage (Large HTML Tabs + Crisp Seamless var(--hf-stage) Frame) */
.hf-hero-stage {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hf-hero-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 4px;
    background: var(--hf-tint);
    border: 1px solid var(--hf-line);
    border-radius: 12px;
}

.hf-hero-tab {
    position: relative;
    padding: 0.68rem 0.75rem 0.78rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--hf-ink-soft);
    font-family: var(--hf-font-body);
    font-size: var(--hf-text-sm);
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
    transition: background-color 0.2s var(--hf-ease), color 0.2s var(--hf-ease);
}

.hf-hero-tab:hover {
    color: var(--hf-slate);
}

.hf-hero-tab.is-active {
    background: var(--hf-surface);
    color: var(--hf-slate);
    box-shadow: 0 1px 3px rgba(45, 58, 58, 0.08);
}

.hf-hero-tab-bar {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 2.5px;
    border-radius: 2px;
    background: rgba(45, 58, 58, 0.09);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s var(--hf-ease);
}

.hf-hero-tab.is-active .hf-hero-tab-bar {
    opacity: 1;
}

.hf-hero-tab-bar i {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--hf-sage);
    transform-origin: left center;
    transition: width 0.25s linear;
}

/* Crisp Architectural Stage matching video canvas var(--hf-stage) — zero shadow seam */
.hf-hero-frame {
    width: 100%;
    background: var(--hf-stage);
    border: 1px solid var(--hf-line);
    border-radius: 20px;
    overflow: hidden;
    line-height: 0;
}

.hf-hero-video {
    width: 100%;
    height: auto;
    display: block;
    background: var(--hf-stage);
}

.hf-hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.25rem;
}

.hf-hero-caption {
    font-size: 0.8rem;
    color: var(--hf-muted);
    line-height: 1.4;
}

.hf-video-toggle {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid var(--hf-line);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-family: var(--hf-font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--hf-slate);
    cursor: pointer;
    transition: border-color 0.16s var(--hf-ease), background-color 0.16s var(--hf-ease);
}

.hf-video-toggle:hover {
    border-color: var(--hf-sage);
    background: var(--hf-surface);
}

/* ==========================================================================
   2. PROMINENT NATIVE CLIENT LOGO STRIP (PURE WHITE — ZERO WEIRD WHITE BOXES)
   ========================================================================== */
.hf-logos-band {
    background: var(--hf-surface);
    border-top: 1px solid var(--hf-line);
    border-bottom: 1px solid var(--hf-line);
    padding: clamp(2.75rem, 4.5vw, 3.75rem) 0;
}

.hf-logos-caption {
    text-align: center;
    font-family: var(--hf-font-display);
    font-size: clamp(1.02rem, 1.45vw, 1.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--hf-slate);
    margin: 0 0 2rem;
}

.hf-logos-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 1.75rem;
    align-items: center;
}

.hf-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    padding: 0.65rem 0.9rem;
    margin: 0;
    background: var(--hf-surface);
    border: none;
    border-radius: 10px;
}

.hf-logo-item--dark {
    background: #034ea1;
    height: 56px;
    width: 100%;
    max-width: 215px;
    margin: 0 auto;
    padding: 0.65rem 1.05rem;
}

.hf-logo-item img {
    display: block;
    max-width: 100%;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hf-logo-item--dark img {
    max-height: 30px;
}

/* ==========================================================================
   3. UNIFORM-HEIGHT 3-VERTICAL WORKFLOW GRID (#how-it-works)
   ========================================================================== */
.hf-flow-section {
    padding: clamp(4.5rem, 7.5vw, 6.5rem) 0;
    background: var(--hf-ground);
}

.hf-flow-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.hf-flow-header > div:first-child {
    max-width: 54ch;
}

.hf-seg-control {
    display: inline-flex;
    padding: 4px;
    border-radius: 11px;
    background: var(--hf-tint);
    border: 1px solid var(--hf-line);
    gap: 3px;
}

.hf-seg-btn {
    padding: 0.55rem 1.05rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--hf-ink-soft);
    font-family: var(--hf-font-body);
    font-size: var(--hf-text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s var(--hf-ease), color 0.18s var(--hf-ease);
}

.hf-seg-btn:hover {
    color: var(--hf-slate);
}

.hf-seg-btn.is-active {
    background: var(--hf-slate);
    color: var(--hf-on-dark);
}

/* Grid-stacked panels => EXACT SAME HEIGHT across Labs / Pharma / Clinics! */
.hf-flow-stages {
    display: grid;
}

.hf-flow-stage {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.28s var(--hf-ease), transform 0.28s var(--hf-ease), visibility 0.28s;
}

.hf-flow-stage.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.hf-diagram-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) 56px minmax(0, 1.08fr) 56px minmax(0, 1.14fr);
    align-items: stretch;
    flex: 1;
    height: auto;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--hf-paper);
    border: 1px solid var(--hf-line-strong);
    border-radius: 18px;
    background-image:
        linear-gradient(to right, rgba(45, 58, 58, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(45, 58, 58, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hf-beat {
    background: var(--hf-surface);
    border: 1px solid var(--hf-line);
    border-radius: 14px;
    padding: 1.3rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.hf-beat--outcome {
    border-color: rgba(90, 125, 94, 0.45);
    box-shadow: 0 2px 12px rgba(45, 58, 58, 0.04);
}

.hf-step-tag {
    font-family: var(--hf-font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--hf-sage);
    margin-bottom: 0.85rem;
    display: block;
}

/* Uniform tall visual box inside EVERY card across ALL 3 verticals */
.hf-beat-visual {
    height: 224px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.15rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--hf-line);
}

.hf-beat-visual--interactive {
    justify-content: flex-start;
    gap: 1rem;
}

.hf-beat-visual--chart,
.hf-beat-visual--pharma,
.hf-beat-visual--dash {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

/* LIMS / CRM Trigger Mini Cards */
.hf-lims-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hf-lims-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.82rem;
    border: 1px solid var(--hf-line);
}

.hf-lims-row--muted {
    background: var(--hf-paper);
    color: var(--hf-muted);
}

.hf-lims-row--flag {
    background: var(--hf-coral-tint);
    border-color: rgba(200, 90, 50, 0.28);
    color: var(--hf-ink);
}

.hf-lims-row--flag em {
    font-style: normal;
    font-family: var(--hf-font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--hf-coral);
}

.hf-lims-row--ok {
    background: var(--hf-sage-tint);
    border-color: rgba(90, 125, 94, 0.28);
    color: var(--hf-ink);
}

.hf-lims-row--ok em {
    font-style: normal;
    font-family: var(--hf-font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--hf-sage);
}

.hf-lims-foot {
    font-family: var(--hf-font-mono);
    font-size: 0.68rem;
    color: var(--hf-muted);
    text-align: center;
    margin-top: 0.2rem;
}

/* Interactive Click-to-Expand Infographic / Media Preview */
.hf-zoom-preview {
    position: relative;
    padding: 0;
    border: 1px solid var(--hf-line-strong);
    border-radius: 10px;
    background: var(--hf-paper);
    overflow: hidden;
    cursor: zoom-in;
    flex-shrink: 0;
    width: 124px;
    height: 184px;
    transition: transform 0.24s var(--hf-ease), border-color 0.2s var(--hf-ease), box-shadow 0.24s var(--hf-ease);
}

.hf-zoom-preview--wide {
    width: 148px;
    height: 112px;
}

.hf-zoom-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hf-zoom-preview:hover {
    transform: scale(1.05);
    border-color: var(--hf-sage);
    box-shadow: 0 12px 26px rgba(45, 58, 58, 0.14);
}

.hf-zoom-pill {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(45, 58, 58, 0.88);
    color: var(--hf-on-dark);
    font-family: var(--hf-font-mono);
    font-size: 0.64rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.hf-mini-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hf-slate);
    line-height: 1.3;
}

.hf-mini-stack span {
    padding-left: 0.7rem;
    border-left: 2px solid var(--hf-sage-soft);
}

/* Pharma Card 1 QR + Card 2 Real Microbiome Preview & 12-week Milestones */
.hf-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.hf-qr-svg {
    width: 96px;
    height: 96px;
    display: block;
}

.hf-qr-meta strong {
    display: block;
    font-size: 0.88rem;
    color: var(--hf-slate);
}

.hf-qr-meta span {
    font-size: 0.76rem;
    color: var(--hf-muted);
}

.hf-pharma-preview {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}

.hf-pharma-thumb {
    position: relative;
    width: 100%;
    height: 126px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--hf-line);
    background: #161E1D;
}

.hf-pharma-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hf-pharma-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    background: rgba(45, 58, 58, 0.88);
    color: var(--hf-on-dark);
    font-family: var(--hf-font-mono);
    font-size: 0.66rem;
    font-weight: 500;
}

.hf-milestone-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    position: relative;
}

.hf-milestone-strip::before {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 6px;
    height: 2px;
    background: var(--hf-tint);
}

.hf-ms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
}

.hf-ms i {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--hf-surface);
    border: 2px solid var(--hf-line-strong);
    display: block;
}

.hf-ms.is-done i {
    background: var(--hf-sage);
    border-color: var(--hf-sage);
}

.hf-ms.is-active i {
    background: var(--hf-slate);
    border-color: var(--hf-sage-soft);
    box-shadow: 0 0 0 4px rgba(90, 125, 94, 0.22);
    animation: hfSoftPulse 2.2s ease-in-out infinite;
}

.hf-ms span {
    font-family: var(--hf-font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--hf-muted);
}

/* Clinics Card 3 Legible Live Dashboard KPIs + Full-Screen Inspect Button */
.hf-dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.hf-dash-kpi-row > div {
    padding: 0.55rem 0.5rem;
    background: var(--hf-paper);
    border: 1px solid var(--hf-line);
    border-radius: 9px;
    text-align: center;
}

.hf-dash-kpi-row strong {
    display: block;
    font-family: var(--hf-font-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--hf-slate);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.hf-dash-kpi-row span {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--hf-font-mono);
    font-size: 0.62rem;
    color: var(--hf-muted);
    text-transform: uppercase;
}

.hf-dash-bar-card {
    padding: 0.6rem 0.7rem;
    background: #FFFFFF;
    border: 1px solid var(--hf-line);
    border-radius: 9px;
    margin-bottom: 0.65rem;
}

.hf-dash-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--hf-ink-soft);
    margin-bottom: 0.4rem;
}

.hf-dash-bar-head strong {
    color: #3D6418;
    font-weight: 700;
}

.hf-dash-seg-bar {
    display: flex;
    height: 22px;
    border-radius: 6px;
    overflow: hidden;
    font-family: var(--hf-font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    color: var(--hf-slate);
}

.hf-dash-seg-bar span {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.hf-dash-inspect-btn {
    width: 100%;
    padding: 0.52rem 0.75rem;
    border: 1px solid var(--hf-line-strong);
    border-radius: 8px;
    background: var(--hf-paper);
    color: var(--hf-slate);
    font-family: var(--hf-font-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: zoom-in;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: background-color 0.18s var(--hf-ease), border-color 0.18s var(--hf-ease), color 0.18s var(--hf-ease);
}

.hf-dash-inspect-btn:hover {
    background: var(--hf-slate);
    border-color: var(--hf-slate);
    color: var(--hf-on-dark);
}

.hf-beat-title {
    font-family: var(--hf-font-display);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--hf-slate);
    margin: 0 0 0.4rem;
}

.hf-beat-desc {
    font-size: var(--hf-text-sm);
    color: var(--hf-ink-soft);
    line-height: 1.54;
    margin: 0;
}

/* Pulsing Connector Lines (NO arrowheads) */
.hf-rail-connector {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hf-rail-svg {
    width: 100%;
    height: 16px;
    overflow: visible;
}

.hf-rail-pulse {
    stroke-dasharray: 18 64;
    animation: hfRailWave 2.2s linear infinite;
}

.hf-rail-pulse--delay {
    animation-delay: 1.1s;
}

.hf-rail-dot {
    animation: hfDotGlide 2.2s linear infinite;
}

.hf-rail-dot--delay {
    animation-delay: 1.1s;
}

@keyframes hfRailWave {
    from { stroke-dashoffset: 64; }
    to { stroke-dashoffset: -18; }
}

@keyframes hfDotGlide {
    0% { transform: translateX(2px); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(62px); opacity: 0; }
}

/* Continuously Pulsing Retest ROI & Adherence Graphs */
.hf-retest-chart {
    width: 100%;
}

.hf-chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.hf-chart-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--hf-slate);
}

.hf-chart-note {
    font-family: var(--hf-font-mono);
    font-size: 0.66rem;
    color: var(--hf-muted);
}

.hf-spark-svg {
    width: 100%;
    height: auto;
    display: block;
}

.hf-curve-pulse {
    stroke-dasharray: 46 280;
    animation: hfCurveTravel 2.8s linear infinite;
}

.hf-curve-pulse--2 { animation-delay: 0.55s; }
.hf-curve-pulse--3 { animation-delay: 1.1s; }

@keyframes hfCurveTravel {
    0% { stroke-dashoffset: 310; opacity: 0; }
    15% { opacity: 0.95; }
    85% { opacity: 0.95; }
    100% { stroke-dashoffset: -46; opacity: 0; }
}

.hf-beacon-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: hfBeaconPulse 2.2s ease-out infinite;
}

@keyframes hfBeaconPulse {
    0% { transform: scale(0.5); opacity: 0.55; }
    75% { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

@keyframes hfSoftPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(90, 125, 94, 0.22); }
    50% { box-shadow: 0 0 0 7px rgba(90, 125, 94, 0.08); }
}

.hf-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin-top: 0.5rem;
    font-family: var(--hf-font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--hf-ink-soft);
}

.hf-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hf-swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.hf-swatch--slate { background: var(--hf-slate); }
.hf-swatch--sage { background: var(--hf-sage); }
.hf-swatch--coral { background: var(--hf-coral); }

.hf-role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.hf-role-chips span {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: var(--hf-sage-tint);
    color: var(--hf-slate);
    font-family: var(--hf-font-mono);
    font-size: 0.64rem;
    font-weight: 500;
}

.hf-flow-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   4. INTERACTIVE INTEGRATIONS & ARCHITECTURE SHOWCASE (#integrations)
      Crisp White + Cool-Neutral Slate/Sage Canvas (zero muddy beige-on-offwhite)
   ========================================================================== */
.hf-warp-section {
    padding: clamp(4.5rem, 7.5vw, 6.5rem) 0;
    background: var(--hf-surface);
    border-top: 1px solid var(--hf-line);
    border-bottom: 1px solid var(--hf-line);
}

.hf-warp-head {
    max-width: 62ch;
    margin-bottom: clamp(2.25rem, 4vw, 3rem);
}

.hf-warp-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(1.75rem, 3.5vw, 3rem);
    align-items: start;
}

.hf-warp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hf-line);
}

.hf-warp-list > li {
    border-bottom: 1px solid var(--hf-line);
}

.hf-warp-row {
    width: 100%;
    padding: 1.15rem 1rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    display: block;
    font-family: inherit;
    color: var(--hf-muted);
    transition: color 0.2s var(--hf-ease), background-color 0.2s var(--hf-ease);
}

.hf-warp-row:hover,
.hf-warp-row.is-active {
    color: var(--hf-slate);
    background: var(--hf-paper);
}

.hf-warp-row-head {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 0.65rem;
}

.hf-warp-num {
    font-family: var(--hf-font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--hf-muted);
}

.hf-warp-row.is-active .hf-warp-num {
    color: var(--hf-sage);
}

.hf-warp-title {
    display: block;
    font-family: var(--hf-font-display);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.28;
}

.hf-warp-arrow {
    font-size: 0.78rem;
    color: var(--hf-muted);
    opacity: 0.45;
    transform: translateX(0);
    transition: transform 0.22s var(--hf-ease), color 0.2s var(--hf-ease), opacity 0.2s var(--hf-ease);
}

.hf-warp-row:hover .hf-warp-arrow,
.hf-warp-row.is-active .hf-warp-arrow {
    color: var(--hf-sage);
    opacity: 1;
    transform: translateX(3px);
}

.hf-warp-reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.28s var(--hf-ease), opacity 0.24s var(--hf-ease);
}

.hf-warp-row.is-active .hf-warp-reveal {
    grid-template-rows: 1fr;
    opacity: 1;
}

.hf-warp-reveal-inner {
    min-height: 0;
    overflow: hidden;
}

.hf-warp-desc {
    display: block;
    padding: 0.55rem 0 0 2.25rem;
    font-size: var(--hf-text-sm);
    line-height: 1.58;
    color: var(--hf-ink-soft);
}

/* Right Cross-Fading Visual Stage — Brand Kit Warm Paper Canvas */
.hf-warp-stage {
    display: grid;
    background: var(--hf-paper);
    border: 1px solid var(--hf-line-strong);
    border-radius: 18px;
    padding: clamp(1.35rem, 2.5vw, 1.85rem);
    min-height: 468px;
    align-items: stretch;
}

.hf-warp-panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.28s var(--hf-ease), transform 0.28s var(--hf-ease), visibility 0.28s;
}

.hf-warp-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Visual 0: Real Official Integration Partner Logos */
.hf-int-canvas {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hf-int-cat {
    display: block;
    font-family: var(--hf-font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--hf-muted);
    margin-bottom: 0.55rem;
}

.hf-int-logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.hf-int-logos--bsp {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hf-int-logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0.65rem 0.9rem;
    background: #FFFFFF;
    border: 1px solid rgba(45, 58, 58, 0.1);
    border-radius: 11px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--hf-slate);
}

.hf-int-logo-tile img {
    height: 26px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.hf-int-logo-tile--pair {
    justify-content: flex-start;
    gap: 0.65rem;
}

.hf-int-logo-tile--pair img {
    height: 24px;
    width: 24px;
    flex-shrink: 0;
}

.hf-int-logo-tile--pair i {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--hf-sage-tint);
    color: var(--hf-sage);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.hf-int-byo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.05rem;
    border-radius: 12px;
    background: var(--hf-slate);
    color: var(--hf-on-dark);
    font-size: 0.85rem;
    line-height: 1.45;
}

.hf-int-byo i {
    color: var(--hf-sage-soft);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Visual 1: BYO WhatsApp Architecture with Real BSP Logos */
.hf-arch-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hf-arch-bsp-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin: 0.35rem 0 0.25rem;
}

.hf-arch-bsp-strip img {
    height: 20px;
    width: auto;
    object-fit: contain;
    display: block;
}

.hf-arch-bsp-strip span {
    font-family: var(--hf-font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--hf-sage);
}

.hf-warp-dash-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    font-family: var(--hf-font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--hf-sage);
}

/* Visual 1: BYO WhatsApp Architecture + Expanded Care Orchestration */
.hf-arch-canvas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    gap: 0;
}

.hf-arch-node {
    padding: 0.95rem 1.1rem;
    background: var(--hf-surface);
    border: 1px solid var(--hf-line);
    border-radius: 12px;
}

.hf-arch-node--accent {
    border-color: var(--hf-sage);
    background: var(--hf-surface);
}

.hf-arch-node--orch {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hf-orch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.7rem;
}

@media (max-width: 480px) {
    .hf-orch-grid {
        grid-template-columns: 1fr;
    }
}

.hf-orch-grid > div {
    padding: 0.52rem 0.65rem;
    border-radius: 8px;
    background: var(--hf-paper);
    border: 1px solid var(--hf-line);
}

.hf-arch-node .hf-orch-grid strong {
    font-family: var(--hf-font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hf-slate);
    display: block;
    line-height: 1.25;
}

.hf-arch-node .hf-orch-grid span {
    display: block;
    font-size: 0.72rem;
    color: var(--hf-ink-soft);
    line-height: 1.35;
    margin-top: 0.1rem;
}

.hf-arch-kicker {
    display: block;
    font-family: var(--hf-font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--hf-sage);
    margin-bottom: 0.2rem;
}

.hf-arch-node strong {
    display: block;
    font-family: var(--hf-font-display);
    font-size: 1rem;
    color: var(--hf-slate);
}

.hf-arch-node small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--hf-muted);
}

.hf-arch-wire {
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hf-arch-wire span {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--hf-sage-soft), var(--hf-sage));
}

/* Visual 2: Warp Real Eye Clinic Dashboard — expands cleanly lengthwise to fill stage */
.hf-warp-dash-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 0.8rem;
}

.hf-warp-dash-btn {
    position: relative;
    padding: 0;
    border: 1px solid var(--hf-line-strong);
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    cursor: zoom-in;
    display: block;
    width: 100%;
    transition: transform 0.22s var(--hf-ease), border-color 0.2s var(--hf-ease);
}

.hf-warp-dash-btn img {
    width: 100%;
    height: auto;
    background: #FFFFFF;
    display: block;
}

.hf-warp-dash-btn:hover {
    transform: translateY(-2px);
    border-color: var(--hf-sage);
}

.hf-warp-dash-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    font-family: var(--hf-font-mono);
    font-size: 0.72rem;
    color: var(--hf-ink-soft);
}

.hf-warp-dash-foot strong {
    color: var(--hf-slate);
}

/* Visual 3: Architectural DPDP Privacy & Clinical Governance Blueprint */
.hf-gov-blueprint {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 0.9rem;
}

.hf-gov-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 1rem;
    border-radius: 10px;
    background: var(--hf-slate);
    color: var(--hf-on-dark);
    font-family: var(--hf-font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.hf-gov-status {
    color: var(--hf-sage-soft);
}

.hf-gov-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.75rem;
    flex: 1;
}

.hf-gov-card {
    padding: 1.05rem 1.1rem;
    background: var(--hf-surface);
    border: 1px solid var(--hf-line);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
}

.hf-gov-tag {
    font-family: var(--hf-font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--hf-sage-text);
}

.hf-gov-card strong {
    font-family: var(--hf-font-display);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--hf-slate);
    line-height: 1.25;
}

.hf-gov-card p {
    margin: 0;
    font-family: var(--hf-font-body);
    font-size: 0.8rem;
    line-height: 1.52;
    color: var(--hf-ink-soft);
}

.hf-gov-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.45rem 1rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: var(--hf-surface);
    border: 1px solid var(--hf-line);
    font-family: var(--hf-font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--hf-slate);
}

/* Listen To Your Gut Band (Below Blog) */
.hf-lyg-band {
    padding: clamp(3.5rem, 6vw, 5rem) 0;
    background: var(--hf-ground);
    border-top: 1px solid var(--hf-line);
}

.hf-lyg-split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.hf-lyg-title {
    font-family: var(--hf-font-display);
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--hf-slate);
    margin: 0 0 0.7rem;
}

.hf-lyg-copy p {
    font-size: var(--hf-text-body);
    color: var(--hf-ink-soft);
    max-width: 54ch;
    margin: 0 0 1.25rem;
}

.hf-lyg-mark {
    display: flex;
    justify-content: center;
}

.hf-lyg-mark img {
    width: clamp(150px, 16vw, 210px);
    height: auto;
    display: block;
}

/* ==========================================================================
   5. SMOOTH HOVER-EXPAND AEO FAQ (#faq)
   ========================================================================== */
.hf-faq {
    padding: clamp(4.5rem, 7.5vw, 6.5rem) 0;
    background: var(--hf-ground);
}

.hf-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.hf-faq-list {
    border-top: 1px solid var(--hf-line-strong);
}

.hf-faq-item {
    border-bottom: 1px solid var(--hf-line);
    border-radius: 10px;
    transition: background-color 0.2s var(--hf-ease);
}

.hf-faq-item:hover,
.hf-faq-item.is-open {
    background: var(--hf-surface);
}

.hf-faq-trigger {
    width: 100%;
    padding: 1.2rem 0.65rem;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.hf-faq-q {
    font-family: var(--hf-font-display);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--hf-slate);
    line-height: 1.38;
}

.hf-faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hf-faq-icon::before,
.hf-faq-icon::after {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 1.75px;
    background: var(--hf-sage);
    transition: transform 0.26s var(--hf-ease), opacity 0.2s var(--hf-ease);
}

.hf-faq-icon::after {
    transform: rotate(90deg);
}

.hf-faq-item.is-open .hf-faq-icon::after {
    transform: rotate(0deg);
    opacity: 0;
}

.hf-faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.3s var(--hf-ease), opacity 0.24s var(--hf-ease);
}

.hf-faq-item.is-open .hf-faq-panel {
    grid-template-rows: 1fr;
    opacity: 1;
}

.hf-faq-answer {
    min-height: 0;
    overflow: hidden;
    padding: 0 0.65rem;
}

.hf-faq-answer p {
    margin: 0 0 1.25rem;
    font-size: var(--hf-text-sm);
    line-height: 1.68;
    color: var(--hf-ink-soft);
    max-width: 66ch;
}

/* ==========================================================================
   6. BOOK A DEMO (#contact)
   ========================================================================== */
.hf-contact {
    padding: clamp(4.5rem, 7.5vw, 6.5rem) 0;
    background: var(--hf-surface);
    border-top: 1px solid var(--hf-line);
    border-bottom: 1px solid var(--hf-line);
}

.hf-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.hf-direct-links {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hf-direct-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    font-size: var(--hf-text-body);
    font-weight: 600;
    color: var(--hf-slate);
    text-decoration: none;
    transition: color 0.18s var(--hf-ease);
}

.hf-direct-links a i {
    width: 18px;
    text-align: center;
    color: var(--hf-sage);
}

.hf-direct-links a:hover {
    color: var(--hf-sage);
}

.hf-contact-card {
    background: var(--hf-ground);
    border: 1px solid var(--hf-line-strong);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.hf-contact-card .form-floating {
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.hf-contact-card .form-floating > label {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hf-contact-card .form-control {
    border-radius: 10px;
    border: 1px solid var(--hf-line-strong);
    background: var(--hf-surface);
    color: var(--hf-ink);
    font-family: var(--hf-font-body);
    font-size: var(--hf-text-body);
}

.hf-contact-card .form-control:focus {
    border-color: var(--hf-sage);
    box-shadow: 0 0 0 3px rgba(90, 125, 94, 0.14);
}

.hf-contact-card textarea.form-control {
    min-height: 112px;
}

.hf-contact-card .btn-cta {
    width: 100%;
    padding: 0.92rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: var(--hf-slate);
    color: var(--hf-on-dark);
    font-family: var(--hf-font-body);
    font-size: var(--hf-text-body);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s var(--hf-ease);
}

.hf-contact-card .btn-cta:hover {
    background: var(--hf-sage);
    color: #fff;
}

.hf-form-privacy {
    margin: 0.85rem 0 0;
    font-size: var(--hf-text-sm);
    color: var(--hf-muted);
    text-align: center;
}

.hf-form-privacy a {
    color: var(--hf-slate);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==========================================================================
   7. JOURNAL STRIP (#blogs)
   ========================================================================== */
body.hf-v5 .blogs-section {
    background: var(--hf-ground);
    padding: clamp(4.25rem, 7vw, 6rem) 0 !important;
}

body.hf-v5 .navbar.nav-open .nav-toggle {
    position: relative;
    z-index: 1003;
}

.hf-blogs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

body.hf-v5 .blogs-heading {
    font-family: var(--hf-font-display);
    font-size: var(--hf-text-heading);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--hf-slate);
    margin: 0;
}

.hf-blogs-arrows {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

body.hf-v5 .blog-arrow {
    color: var(--hf-slate);
    transition: opacity 0.18s var(--hf-ease), transform 0.18s var(--hf-ease);
}

body.hf-v5 .blog-arrow:hover {
    color: var(--hf-sage);
}

body.hf-v5 .blogs-section .card {
    height: 100%;
    border: 1px solid var(--hf-line);
    border-radius: 14px;
    background: var(--hf-surface);
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.2s var(--hf-ease), border-color 0.2s var(--hf-ease);
}

body.hf-v5 .blogs-section .card:hover {
    transform: translateY(-3px);
    border-color: var(--hf-sage);
}

body.hf-v5 .blogs-section .card-img-top {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

body.hf-v5 .blogs-section .card-body {
    padding: 1.25rem;
}

body.hf-v5 .blogs-section .card-title {
    font-family: var(--hf-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--hf-slate);
    line-height: 1.32;
    margin-bottom: 0.5rem;
}

body.hf-v5 .blogs-section .card-text {
    font-size: var(--hf-text-sm);
    color: var(--hf-ink-soft);
    line-height: 1.55;
}

body.hf-v5 .blog-bottom-flex a {
    font-size: var(--hf-text-sm);
    font-weight: 600;
    color: var(--hf-slate);
    text-decoration: none;
}

body.hf-v5 .blog-bottom-flex a:hover {
    color: var(--hf-sage);
}

body.hf-v5 .blog-bottom-flex p {
    margin: 0;
    font-family: var(--hf-font-mono);
    font-size: 0.74rem;
    color: var(--hf-muted);
}

/* ==========================================================================
   LIGHTBOX MODAL (FOR FULL INFOGRAPHIC & EYE CLINIC DASHBOARD ZOOM)
   ========================================================================== */
.hf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.hf-lightbox[hidden] {
    display: none;
}

.hf-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 38, 38, 0.78);
    backdrop-filter: blur(6px);
}

.hf-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1060px, 100%);
    max-height: 92vh;
    background: var(--hf-surface);
    border-radius: 16px;
    border: 1px solid var(--hf-line-strong);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.hf-lightbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--hf-line);
    font-family: var(--hf-font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--hf-slate);
}

.hf-lightbox-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--hf-line);
    background: transparent;
    color: var(--hf-slate);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hf-lightbox-close:hover {
    background: var(--hf-ground);
}

.hf-lightbox-body {
    padding: 1.1rem;
    background: var(--hf-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.hf-lightbox-body img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    display: block;
    box-shadow: 0 8px 24px rgba(45, 58, 58, 0.1);
}

/* ==========================================================================
   FOOTER — BRAND KIT DEEP SLATE var(--hf-slate) + SOFT SAGE MARK + LORA SEMIBOLD
   ========================================================================== */
body.hf-v5 .footer {
    background: var(--hf-slate);
    color: rgba(245, 241, 234, 0.8);
    border-top: 1px solid rgba(245, 241, 234, 0.1);
}

body.hf-v5 .footer-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--hf-font-logo);
    font-weight: 600;
    letter-spacing: -0.018em;
    color: var(--hf-on-dark);
}

body.hf-v5 .footer-mark {
    width: auto;
    height: 26px;
    display: block;
}

body.hf-v5 .footer-col h3 {
    color: var(--hf-sage-soft);
    font-family: var(--hf-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.hf-v5 .footer a {
    color: rgba(245, 241, 234, 0.86);
}

body.hf-v5 .footer a:hover {
    color: var(--hf-sage-soft);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
    .hf-flow-stage:not(.is-active) {
        display: none;
    }

    .hf-diagram-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .hf-rail-connector {
        height: 28px;
    }

    .hf-rail-svg {
        width: 28px;
        transform: rotate(90deg);
    }

    .hf-beat-visual {
        height: auto;
        min-height: 140px;
    }

    .hf-spark-svg {
        max-height: 155px;
    }

    .hf-warp-grid {
        grid-template-columns: 1fr;
    }

    .hf-warp-stage {
        min-height: 0;
        align-items: start;
    }

    .hf-warp-panel:not(.is-active) {
        display: none;
    }
}

@media (max-width: 960px) {
    .hf-hero-grid,
    .hf-faq-layout,
    .hf-contact-grid,
    .hf-lyg-split {
        grid-template-columns: 1fr;
    }

    .hf-hero-stats {
        max-width: 100%;
    }

    .hf-logos-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hf-int-logos--bsp {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hf-hero-tabs {
        gap: 0.3rem;
    }

    .hf-hero-tab {
        font-size: 0.78rem;
        padding: 0.6rem 0.35rem 0.72rem;
    }

    .hf-logos-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hf-seg-control {
        width: 100%;
        justify-content: space-between;
    }

    .hf-seg-btn {
        flex: 1;
        padding: 0.5rem 0.45rem;
        font-size: 0.78rem;
    }

    .hf-int-logos,
    .hf-int-logos--bsp,
    .hf-gov-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   BETTERHELP-INSPIRED LUSH FOREST GREEN HERO + CURVED WAVE (ALL 4 CORE PAGES)
   Activated via body.hf-hero-dark — uses strictly the 5 master CSS tokens.
   ========================================================================== */
body.hf-hero-dark .navbar {
    background: var(--hf-slate) !important;
    background-color: var(--hf-slate) !important;
    border-bottom-color: rgba(255, 255, 255, 0.09) !important;
    transition: background-color 0.25s var(--hf-ease), border-color 0.25s var(--hf-ease);
}

body.hf-hero-dark .navbar:not(.is-scrolled) .logo-wordmark,
body.hf-hero-dark .navbar:not(.is-scrolled) .nav-links > li > a,
body.hf-hero-dark .navbar:not(.is-scrolled) .nav-login {
    color: var(--hf-surface) !important;
}

body.hf-hero-dark .navbar:not(.is-scrolled) .nav-links > li > a:hover,
body.hf-hero-dark .navbar:not(.is-scrolled) .nav-login:hover {
    color: var(--hf-sage-soft) !important;
}

body.hf-hero-dark .navbar:not(.is-scrolled) .nav-cta {
    background: var(--hf-sage-soft) !important;
    color: var(--hf-ink) !important;
    border-color: var(--hf-sage-soft) !important;
    font-weight: 700 !important;
}

body.hf-hero-dark .navbar:not(.is-scrolled) .nav-cta:hover {
    background: #ADE9AA !important;
}

body.hf-hero-dark .navbar:not(.is-scrolled) .nav-toggle {
    background: rgba(150, 224, 146, 0.16) !important;
    color: var(--hf-surface) !important;
}

body.hf-hero-dark .navbar.is-scrolled {
    background: rgba(255, 252, 246, 0.96) !important;
    background-color: rgba(255, 252, 246, 0.96) !important;
    border-bottom-color: var(--hf-line) !important;
}

/* Deep Forest Green Hero Band shared across Home, Labs, Pharma & Clinics */
body.hf-hero-dark .hf-hero,
body.hf-hero-dark .lab-hero-band,
body.hf-hero-dark .ph-hero-band,
body.hf-hero-dark .cl-hero-band {
    position: relative;
    background: radial-gradient(100% 90% at 78% 18%, #246853 0%, var(--hf-slate) 58%, var(--hf-slate-hover) 100%) !important;
    color: var(--hf-surface);
    padding-bottom: clamp(5.5rem, 8.5vw, 7.25rem) !important;
}

body.hf-hero-dark .hf-hero-title,
body.hf-hero-dark .lab-hero-h1,
body.hf-hero-dark .ph-hero-h1,
body.hf-hero-dark .cl-hero-h1 {
    color: var(--hf-surface);
}

body.hf-hero-dark .hf-hero-lede,
body.hf-hero-dark .lab-hero-sub,
body.hf-hero-dark .ph-hero-sub,
body.hf-hero-dark .cl-hero-sub {
    color: rgba(242, 251, 245, 0.88);
}

body.hf-hero-dark .hf-hero .hf-btn-primary,
body.hf-hero-dark .lab-hero-band .hf-btn-primary,
body.hf-hero-dark .ph-hero-band .hf-btn-primary,
body.hf-hero-dark .cl-hero-band .hf-btn-primary {
    background: var(--hf-sage-soft);
    color: var(--hf-ink);
    border: 1px solid var(--hf-sage-soft);
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(8, 30, 23, 0.28);
}

body.hf-hero-dark .hf-hero .hf-btn-primary:hover,
body.hf-hero-dark .lab-hero-band .hf-btn-primary:hover,
body.hf-hero-dark .ph-hero-band .hf-btn-primary:hover,
body.hf-hero-dark .cl-hero-band .hf-btn-primary:hover {
    background: #ADE9AA;
    color: var(--hf-ink);
    transform: translateY(-1px);
}

body.hf-hero-dark .hf-hero .hf-link-quiet,
body.hf-hero-dark .lab-hero-band .hf-link-quiet,
body.hf-hero-dark .ph-hero-band .hf-link-quiet,
body.hf-hero-dark .cl-hero-band .hf-link-quiet {
    color: #DDF5DC;
}

body.hf-hero-dark .hf-hero .hf-link-quiet:hover,
body.hf-hero-dark .lab-hero-band .hf-link-quiet:hover,
body.hf-hero-dark .ph-hero-band .hf-link-quiet:hover,
body.hf-hero-dark .cl-hero-band .hf-link-quiet:hover {
    color: var(--hf-surface);
}

/* Proof stats on deep green hero */
body.hf-hero-dark .hf-hero-stats,
body.hf-hero-dark .lab-hero-proof,
body.hf-hero-dark .ph-hero-proof,
body.hf-hero-dark .cl-hero-trust {
    border-top-color: rgba(255, 255, 255, 0.18);
}

body.hf-hero-dark .lab-hero-proof {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

body.hf-hero-dark .lab-hero-proof-sep {
    background: rgba(255, 255, 255, 0.22);
}

body.hf-hero-dark .hf-stat dd,
body.hf-hero-dark .lab-hero-proof strong,
body.hf-hero-dark .ph-hero-proof strong,
body.hf-hero-dark .cl-hero-trust strong {
    color: var(--hf-sage-soft);
}

body.hf-hero-dark .hf-stat dt,
body.hf-hero-dark .lab-hero-proof span,
body.hf-hero-dark .ph-hero-proof span,
body.hf-hero-dark .cl-hero-trust {
    color: rgba(235, 248, 240, 0.8);
}

/* Floating Pure-White Hero Media Cards on Deep Forest Green */
body.hf-hero-dark .hf-hero-stage,
body.hf-hero-dark .lab-media-mosaic,
body.hf-hero-dark .ph-stage-card,
body.hf-hero-dark .cl-pipeline-shell {
    background: var(--hf-surface);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 26px 64px rgba(8, 28, 21, 0.34);
}

body.hf-hero-dark .hf-hero-stage {
    border-radius: 22px;
    padding: 0.9rem;
}

body.hf-hero-dark .hf-hero-tabs {
    margin-bottom: 0.75rem;
}

body.hf-hero-dark .hf-hero-tab {
    background: var(--hf-paper);
    color: var(--hf-ink-soft);
    border-color: var(--hf-line);
}

body.hf-hero-dark .hf-hero-tab.is-active {
    background: var(--hf-slate);
    color: var(--hf-surface);
    border-color: var(--hf-slate);
}

body.hf-hero-dark .hf-hero-tab.is-active .hf-hero-tab-bar i {
    background: var(--hf-sage-soft);
}

body.hf-hero-dark .hf-hero-controls {
    padding: 0.65rem 0.25rem 0.15rem;
}

body.hf-hero-dark .hf-hero-caption {
    color: var(--hf-ink-soft);
}

/* Organic Curved Arch Divider from Forest Green Hero into White Section Below */
.hf-hero-curve {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: clamp(34px, 4.4vw, 56px);
    display: block;
    pointer-events: none;
}

body.hf-hero-dark .hf-logos-band,
body.hf-hero-dark .lab-flow-section,
body.hf-hero-dark .ph-bento-section,
body.hf-hero-dark .cl-stages-section {
    border-top: 0;
}

@media (max-width: 1024px) {
    body.hf-hero-dark .navbar:not(.is-scrolled) .nav-panel .nav-links > li > a,
    body.hf-hero-dark .navbar:not(.is-scrolled) .nav-panel .nav-login {
        color: var(--hf-slate) !important;
    }

    body.hf-hero-dark .navbar:not(.is-scrolled) .nav-panel .nav-cta {
        background: var(--hf-slate) !important;
        color: var(--hf-surface) !important;
        border-color: var(--hf-slate) !important;
    }
}
