/* ============================================================
   Homepage v3 — tighter narrative, one visual language
   Scoped under .hv3 so nothing leaks into other pages.
   ============================================================ */

.hv3 {
    --hv3-ink: #0f172a;
    --hv3-ink-2: #334155;
    --hv3-muted: #64748b;
    --hv3-line: rgba(15, 23, 42, .08);
    --hv3-brand: #2563eb;
    --hv3-brand-2: #0ea5e9;
    --hv3-accent: #8b5cf6;
    --hv3-surface: rgba(255, 255, 255, .78);
    --hv3-radius: 1.5rem;
    --hv3-shadow: 0 30px 60px -36px rgba(15, 23, 42, .35), 0 8px 20px -14px rgba(15, 23, 42, .12);
    --hv3-shadow-hover: 0 40px 70px -36px rgba(37, 99, 235, .35), 0 12px 24px -14px rgba(15, 23, 42, .16);
}

/* ---------- rhythm & typography ---------- */
.hv3-section { padding: 5.5rem 0; position: relative; }
.hv3-section + .hv3-section { padding-top: 0; }
.hv3-head { margin-bottom: 2.75rem; }
.hv3-head-center { text-align: center; }
.hv3-head-center .hv3-sub { margin-left: auto; margin-right: auto; }
.hv3-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.hv3-head-split .hv3-sub { margin-bottom: 0; }
.hv3-title {
    margin: 0 0 .9rem;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.06;
    letter-spacing: -.03em;
    font-weight: 800;
    color: var(--hv3-ink);
    text-wrap: balance;
}
.hv3-title-sm { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.hv3-sub {
    margin: 0;
    max-width: 38rem;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--hv3-ink-2);
}
.hv3-kicker {
    margin: 0 0 .35rem;
    font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--hv3-brand);
}
.hv3-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hv3-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .7rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: rgba(37, 99, 235, .1); color: var(--hv3-brand);
}
.hv3-chip-solid { background: var(--hv3-ink); color: #fff; }
.hv3-arrow {
    display: inline-block; width: 1.1rem; height: 1.1rem; margin-left: .5rem; vertical-align: middle;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s ease;
}

/* ---------- hero tweaks ---------- */
.hv3 .hero-section.hero-compact { padding: 5.5rem 0 3.5rem !important; }
.hv3 .hero-section.hero-compact .hero-subheadline { max-width: 32rem; }
.hv3 .hero-trust {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hv3-line);
    grid-template-columns: repeat(3, auto) !important;
    justify-content: start;
    gap: 2.5rem !important;
}
.hv3 .hero-trust .trust-item { text-align: left; }
.hv3 .hero-trust .trust-number { display: block; font-size: 1.5rem; font-weight: 800; color: var(--hv3-ink); letter-spacing: -.02em; }
.hv3 .hero-trust .trust-label { display: block; font-size: .78rem; color: var(--hv3-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ---------- compact logo strip ---------- */
.partners-scroll-section.partners-scroll-compact { padding: 1rem 0 1.5rem !important; margin-bottom: 0 !important; }
.hv3-offers.hv3-section { padding-top: 3.5rem; }
.partners-scroll-compact .partners-compact-label {
    margin: 0 0 1.25rem; text-align: center;
    font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hv3-muted, #64748b);
}
.partners-scroll-compact .partners-scroll-container { padding: 0 !important; }
.partners-scroll-compact .partner-logo { filter: grayscale(1) opacity(.7); transition: filter .2s ease; }
.partners-scroll-compact .partner-logo:hover { filter: none; }
.partners-scroll-compact .lg-award-banner-wrap { margin-top: 1.75rem; }

/* ---------- offers (three ways) ---------- */
.hv3-offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hv3-offer {
    position: relative; display: flex; flex-direction: column;
    padding: 2rem 2rem 1.75rem;
    border-radius: var(--hv3-radius);
    background: var(--hv3-surface);
    border: 1px solid var(--hv3-line);
    box-shadow: var(--hv3-shadow);
    text-decoration: none; color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hv3-offer:hover { transform: translateY(-4px); box-shadow: var(--hv3-shadow-hover); border-color: rgba(37, 99, 235, .28); text-decoration: none; color: inherit; }
.hv3-offer:hover .hv3-arrow { transform: translateX(4px); }
.hv3-offer-accent {
    background: linear-gradient(160deg, rgba(37, 99, 235, .08), rgba(139, 92, 246, .08)), var(--hv3-surface);
    border-color: rgba(37, 99, 235, .22);
}
.hv3-offer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.hv3-offer-num { font-size: .85rem; font-weight: 800; letter-spacing: .12em; color: var(--hv3-brand); }
.hv3-offer-tag { padding: .3rem .65rem; border-radius: 999px; background: rgba(15, 23, 42, .05); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hv3-ink-2); }
.hv3-offer h3 { margin: 0 0 .6rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--hv3-ink); }
.hv3-offer > p { margin: 0 0 1.4rem; font-size: 1rem; line-height: 1.6; color: var(--hv3-ink-2); }
.hv3-offer-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--hv3-line); }
.hv3-offer-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--hv3-line); font-size: .95rem; color: var(--hv3-ink); }
.hv3-offer-list em { font-style: normal; font-weight: 700; color: var(--hv3-brand); white-space: nowrap; }
.hv3-offer-foot { margin-top: auto; display: flex; align-items: center; font-size: .95rem; color: var(--hv3-ink); }
.hv3-offer-foot strong { font-weight: 700; }

/* ---------- products ---------- */
.hv3-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hv3-product {
    display: flex; flex-direction: column;
    border-radius: var(--hv3-radius);
    background: var(--hv3-surface);
    border: 1px solid var(--hv3-line);
    box-shadow: var(--hv3-shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.hv3-product:hover { transform: translateY(-4px); box-shadow: var(--hv3-shadow-hover); }
.hv3-product-visual {
    position: relative; display: block;
    padding: 1.5rem 1.25rem 0;
    background:
        radial-gradient(120% 90% at 20% 0%, rgba(37, 99, 235, .14), transparent 60%),
        radial-gradient(90% 80% at 90% 100%, rgba(139, 92, 246, .14), transparent 60%),
        linear-gradient(180deg, #f8fafc, #eef2ff);
    min-height: 15rem; overflow: hidden;
}
.hv3-product-visual { height: 17rem; }
.hv3-product-visual .pm { transform-origin: top center; transform: scale(1.02); pointer-events: none; }
.hv3-product-visual .pm-window { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hv3-product-visual .hv3-chip { position: absolute; top: 1rem; left: 1rem; z-index: 5; }
.hv3-product-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.6rem; }
.hv3-product-body h3 { margin: 0 0 .5rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.hv3-product-body h3 a { color: var(--hv3-ink); text-decoration: none; }
.hv3-product-body h3 a:hover { color: var(--hv3-brand); }
.hv3-product-copy { margin: 0 0 1.1rem; font-size: .98rem; line-height: 1.55; color: var(--hv3-ink-2); }
.hv3-product-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.35rem; font-size: .9rem; color: var(--hv3-muted); }
.hv3-product-meta strong { color: var(--hv3-ink); font-weight: 700; }
.hv3-product-meta span + span { padding-left: 1rem; border-left: 1px solid var(--hv3-line); }
.hv3-product-actions { margin-top: auto; display: flex; align-items: center; gap: 1.1rem; }
.hv3-product-actions .lg-btn { padding: .8rem 1.2rem; font-size: .95rem; border-radius: .85rem; }

/* ---------- staff augmentation ---------- */
.hv3-staff-panel {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
    padding: 3rem;
    border-radius: 2rem;
    background:
        radial-gradient(90% 80% at 100% 0%, rgba(14, 165, 233, .12), transparent 60%),
        radial-gradient(70% 70% at 0% 100%, rgba(139, 92, 246, .10), transparent 60%),
        var(--hv3-surface);
    border: 1px solid var(--hv3-line);
    box-shadow: var(--hv3-shadow);
}
.hv3-rate {
    display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
    margin-top: 1.75rem; padding: 1.25rem 1.5rem;
    border-radius: 1.25rem; background: #fff; border: 1px solid var(--hv3-line);
}
.hv3-rate-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hv3-muted); }
.hv3-rate-value { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--hv3-ink); line-height: 1; }
.hv3-rate-value small { font-size: 1rem; font-weight: 600; color: var(--hv3-muted); letter-spacing: 0; }
.hv3-rate ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; }
.hv3-rate li { position: relative; padding-left: 1.35rem; font-size: .92rem; color: var(--hv3-ink-2); }
.hv3-rate li::before { content: ""; position: absolute; left: 0; top: .32rem; width: .85rem; height: .85rem; border-radius: 50%; background: rgba(16, 185, 129, .15); box-shadow: inset 0 0 0 2px #10b981; }
.hv3-roles { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.hv3-roles a {
    padding: .45rem .85rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--hv3-line);
    font-size: .85rem; font-weight: 600; color: var(--hv3-ink-2); text-decoration: none;
    transition: all .2s ease;
}
.hv3-roles a:hover { border-color: var(--hv3-brand); color: var(--hv3-brand); background: rgba(37, 99, 235, .06); }

.hv3-roster {
    border-radius: 1.5rem; overflow: hidden;
    background: rgba(255, 255, 255, .95);
    border: 1px solid var(--hv3-line);
    box-shadow: 0 30px 60px -30px rgba(37, 99, 235, .35), 0 8px 20px -14px rgba(15, 23, 42, .15);
}
.hv3-roster-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--hv3-line); font-size: .85rem; font-weight: 700; color: var(--hv3-ink); }
.hv3-roster-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: #047857; font-weight: 700; }
.hv3-roster-live i { width: .5rem; height: .5rem; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); animation: hv3Pulse 2s infinite; }
@keyframes hv3Pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); } 50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } }
.hv3-roster-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .9rem 1.25rem; border-bottom: 1px solid var(--hv3-line); }
.hv3-roster-row:nth-child(even) { background: rgba(248, 250, 252, .8); }
.hv3-avatar { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #dbeafe, #ede9fe); color: #1e3a8a; font-size: .78rem; font-weight: 800; }
.hv3-roster-role { display: flex; flex-direction: column; min-width: 0; }
.hv3-roster-role strong { font-size: .92rem; color: var(--hv3-ink); }
.hv3-roster-role small { font-size: .74rem; color: var(--hv3-muted); }
.hv3-roster-avail { padding: .3rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(15, 23, 42, .06); color: var(--hv3-ink-2); white-space: nowrap; }
.hv3-roster-avail.is-on { background: rgba(16, 185, 129, .14); color: #047857; }
.hv3-roster-foot { padding: .85rem 1.25rem; font-size: .78rem; color: var(--hv3-muted); text-align: center; }

/* ---------- healthcare band (dark) ---------- */
.hv3-health-panel {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
    padding: 3.25rem;
    border-radius: 2rem;
    color: #fff;
    background:
        radial-gradient(80% 90% at 100% 0%, rgba(14, 165, 233, .45), transparent 60%),
        radial-gradient(70% 70% at 0% 100%, rgba(139, 92, 246, .45), transparent 60%),
        linear-gradient(135deg, #0b1220, #111c3a 60%, #0f172a);
    box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .6);
}
.hv3-health-panel::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 70%);
}
.hv3-health-copy, .hv3-health-tiles { position: relative; z-index: 1; }
.hv3-health-panel .hv3-title { color: #fff; }
.hv3-health-panel .hv3-sub { color: rgba(255, 255, 255, .78); }
.hv3-eyebrow-light { color: #7dd3fc !important; }
.hv3-health-badge { display: flex; width: max-content; margin-bottom: 1.25rem; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.hv3-health-badge .hipaa-badge-title { color: #fff; }
.hv3-health-badge .hipaa-badge-note { color: rgba(255, 255, 255, .7); }
.lg-btn-light, .lg-btn-light:hover { background: #fff; color: var(--hv3-ink, #0f172a) !important; }
.lg-btn-light:hover { background: #e0f2fe; }
.hv3-link-light { color: #fff; font-weight: 700; text-decoration: none; opacity: .9; }
.hv3-link-light:hover { opacity: 1; text-decoration: underline; color: #fff; }
.hv3-health-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hv3-tile {
    display: flex; flex-direction: column; gap: .4rem;
    padding: 1.25rem 1.3rem; border-radius: 1.1rem;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff; text-decoration: none;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.hv3-tile:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); color: #fff; text-decoration: none; }
.hv3-tile strong { font-size: 1rem; }
.hv3-tile span { font-size: .86rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }

/* ---------- process ---------- */
.hv3-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.hv3-steps::before {
    content: ""; position: absolute; left: 6%; right: 6%; top: 1.75rem; height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, .0), rgba(37, 99, 235, .35) 15%, rgba(139, 92, 246, .35) 85%, rgba(139, 92, 246, 0));
}
.hv3-steps li { position: relative; padding: .5rem 1.25rem 1.25rem; }
.hv3-step-num {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1.25rem;
    border-radius: 50%; background: #fff; border: 2px solid var(--hv3-brand);
    color: var(--hv3-brand); font-weight: 800; font-size: .95rem;
    box-shadow: 0 0 0 6px #f8fafc;
    position: relative; z-index: 1;
}
.hv3-steps h3 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; color: var(--hv3-ink); }
.hv3-steps p { margin: 0 0 .75rem; font-size: .95rem; line-height: 1.55; color: var(--hv3-ink-2); }
.hv3-steps em { font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hv3-brand); }

/* ---------- why ---------- */
.hv3-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.hv3-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.hv3-stats div { padding: 1.1rem 1.25rem; border-radius: 1.1rem; background: var(--hv3-surface); border: 1px solid var(--hv3-line); }
.hv3-stats strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--hv3-ink); line-height: 1.1; }
.hv3-stats span { font-size: .82rem; color: var(--hv3-muted); }
.hv3-why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hv3-why-list li {
    display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
    padding: 1.1rem 1.25rem; border-radius: 1.1rem;
    background: var(--hv3-surface); border: 1px solid var(--hv3-line);
}
.hv3-why-icon { width: 1.5rem; height: 1.5rem; margin-top: .1rem; color: var(--hv3-brand); flex: 0 0 auto; }
.hv3-why-list strong { display: block; font-size: 1.02rem; color: var(--hv3-ink); margin-bottom: .2rem; }
.hv3-why-list span { font-size: .92rem; line-height: 1.5; color: var(--hv3-ink-2); }

/* ---------- work / blog ---------- */
.hv3-work-grid { grid-template-columns: repeat(3, 1fr) !important; }
.hv3 .lg-blog { padding: 0 0 5.5rem; }
.hv3 .awards-scroll-section { padding-top: 0 !important; }

/* ---------- where ---------- */
.hv3-where-panel {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: center;
    padding: 2.5rem 3rem; border-radius: 2rem;
    background: var(--hv3-surface); border: 1px solid var(--hv3-line);
}
.hv3-where-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.hv3-where-links a {
    padding: .5rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--hv3-line);
    font-size: .9rem; font-weight: 600; color: var(--hv3-ink-2); text-decoration: none; transition: all .2s ease;
}
.hv3-where-links a:hover { border-color: var(--hv3-brand); color: var(--hv3-brand); background: rgba(37, 99, 235, .06); }
.hv3-where-links span { align-self: center; font-size: .85rem; color: var(--hv3-muted); padding-left: .35rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .hv3-offer-grid, .hv3-product-grid { grid-template-columns: 1fr 1fr; }
    .hv3-steps { grid-template-columns: 1fr 1fr; }
    .hv3-steps::before { display: none; }
    .hv3-work-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 960px) {
    .hv3-section { padding: 4rem 0; }
    .hv3-staff-panel, .hv3-health-panel, .hv3-why-grid, .hv3-where-panel { grid-template-columns: 1fr; }
    .hv3-staff-panel, .hv3-health-panel { padding: 2rem; }
    .hv3-head-split { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 640px) {
    .hv3-offer-grid, .hv3-product-grid, .hv3-steps, .hv3-health-tiles, .hv3-stats { grid-template-columns: 1fr; }
    .hv3-work-grid { grid-template-columns: 1fr !important; }
    .hv3-rate { grid-template-columns: 1fr; gap: 1rem; }
    .hv3-rate ul { grid-template-columns: 1fr; }
    .hv3 .hero-trust { grid-template-columns: repeat(3, 1fr) !important; gap: 1rem !important; }
    .hv3-where-panel { padding: 1.75rem; }
    .hv3-offer, .hv3-product-body { padding: 1.5rem; }
}
