:root {
    --ink: #142027;
    --muted: #5f707a;
    --line: #d9e4e6;
    --soft: #f5f9f8;
    --white: #ffffff;
    --teal: #25b8bd;
    --teal-dark: #0b7f87;
    --mint: #dff6ef;
    --green: #2a9d6f;
    --coral: #f06f5f;
    --amber: #f2b84b;
    --navy: #183444;
    --shadow: 0 22px 60px rgba(20, 32, 39, 0.14);
    --soft-shadow: 0 14px 35px rgba(20, 32, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--white);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body a {
    color: inherit;
}

.safemed-page {
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(217, 228, 230, 0.42) 1px, transparent 1px),
        linear-gradient(180deg, rgba(217, 228, 230, 0.3) 1px, transparent 1px),
        linear-gradient(180deg, #f8fbfb 0%, #ffffff 28%, #f6faf9 66%, #ffffff 100%);
    background-size: 72px 72px, 72px 72px, auto;
}

.site-nav {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 20;
    width: min(1120px, calc(100% - 32px));
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 16px;
    border: 1px solid rgba(217, 228, 230, 0.88);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 32px rgba(20, 32, 39, 0.08);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.brand,
.brand:hover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-logo {
    width: 34px;
    height: 34px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a,
.nav-links a:hover {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links .nav-cta,
.nav-links .nav-cta:hover {
    color: var(--white);
    background: var(--ink);
    border-radius: 8px;
}

.hero {
    position: relative;
    padding: 138px 24px 96px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero::before {
    inset: 0;
    background:
        linear-gradient(112deg, rgba(37, 184, 189, 0.13), transparent 42%),
        linear-gradient(290deg, rgba(240, 111, 95, 0.1), transparent 35%);
}

.hero::after {
    right: max(24px, calc((100vw - 1120px) / 2));
    bottom: 44px;
    width: min(560px, 48vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 184, 189, 0.8), transparent);
}

.hero-grid {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 64px;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 18px;
    color: var(--teal-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Manrope", "Inter", sans-serif;
    color: var(--ink);
    line-height: 1.05;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(3.4rem, 7.1vw, 6rem);
    font-weight: 800;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2.15rem, 4vw, 4.4rem);
    font-weight: 800;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.18rem;
    font-weight: 800;
}

.hero-lede {
    max-width: 620px;
    margin-bottom: 30px;
    color: #38505b;
    font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-secondary,
.btn-primary:hover,
.btn-secondary:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-primary {
    color: var(--white);
    background: var(--teal-dark);
    box-shadow: 0 14px 32px rgba(11, 127, 135, 0.22);
}

.btn-secondary {
    color: var(--ink);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    color: var(--white);
    background: #076a71;
}

.btn-secondary:hover {
    color: var(--ink);
    box-shadow: var(--soft-shadow);
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 660px;
    margin-top: 42px;
}

.hero-proof span {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-left: 3px solid var(--teal);
    color: #304a55;
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-visual {
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-stage {
    position: relative;
    width: 338px;
    min-height: 624px;
}

.device-stage img {
    position: relative;
    z-index: 3;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 34px 54px rgba(20, 32, 39, 0.25));
}

.device-stage::before {
    content: "";
    position: absolute;
    inset: 64px -40px 78px;
    z-index: 0;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 184, 189, 0.18), rgba(42, 157, 111, 0.12)),
        repeating-linear-gradient(90deg, rgba(20, 32, 39, 0.08) 0 1px, transparent 1px 14px);
    transform: rotate(-4deg);
}

.signal-panel {
    position: absolute;
    z-index: 4;
    width: 206px;
    padding: 14px;
    border: 1px solid rgba(217, 228, 230, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--soft-shadow);
}

.signal-panel strong,
.signal-panel span {
    display: block;
}

.signal-panel strong {
    margin-bottom: 2px;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.05rem;
    line-height: 1.1;
}

.signal-panel span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.signal-panel-top {
    top: 98px;
    left: -126px;
}

.signal-panel-bottom {
    right: -42px;
    bottom: 106px;
}

.section {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 92px 0;
}

.split-intro {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: start;
}

.intro-copy {
    color: var(--muted);
    font-size: 1.08rem;
}

.intro-copy p {
    margin-bottom: 18px;
}

.challenge-section {
    width: 100%;
    padding: 96px 24px;
    background: var(--ink);
}

.challenge-grid {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: center;
}

.challenge-main h2,
.challenge-main p,
.challenge-points h3,
.challenge-points p {
    color: var(--white);
}

.challenge-main p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

.challenge-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.challenge-points div {
    min-height: 248px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.challenge-points i {
    margin-bottom: 22px;
    color: var(--amber);
    font-size: 1.35rem;
}

.challenge-points p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 46px;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.08rem;
}

.pathway {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.pathway::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 4%;
    right: 4%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--green), var(--coral));
}

.pathway article {
    position: relative;
    z-index: 1;
    min-height: 270px;
    padding: 0 0 0 18px;
}

.pathway span {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--teal-dark);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 800;
}

.pathway p {
    color: var(--muted);
    font-size: 0.96rem;
}

.stakeholder-section {
    width: 100%;
    max-width: none;
    padding: 96px 24px;
    background: #edf6f4;
}

.stakeholder-grid {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.stakeholder {
    padding: 38px;
    border: 1px solid rgba(217, 228, 230, 0.9);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.stakeholder h2 {
    font-size: clamp(2rem, 3vw, 3.3rem);
}

.check-list {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: #425963;
    font-weight: 600;
}

.check-list li::before {
    content: "\f00c";
    position: absolute;
    top: 1px;
    left: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--green);
    font-family: FontAwesome;
    font-size: 0.68rem;
}

.platform-section {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 56px;
    align-items: center;
}

.platform-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.06rem;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.feature-list div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #334c57;
    font-weight: 700;
}

.feature-list i {
    margin-top: 4px;
    color: var(--teal-dark);
}

.product-showcase {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.product-showcase::before {
    content: "";
    position: absolute;
    inset: 48px 82px 42px;
    border: 1px solid rgba(37, 184, 189, 0.32);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 184, 189, 0.13), rgba(240, 111, 95, 0.08)),
        repeating-linear-gradient(0deg, rgba(20, 32, 39, 0.08) 0 1px, transparent 1px 16px);
    transform: skewY(-2deg);
}

.phone-card {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.phone-card img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.phone-card figcaption {
    padding-top: 12px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.phone-card-primary {
    width: min(80%, 340px);
}

.evidence-section {
    padding-top: 48px;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.evidence-grid article {
    min-height: 246px;
    padding: 24px;
    border-top: 4px solid var(--teal);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.evidence-grid article:nth-child(2) {
    border-top-color: var(--green);
}

.evidence-grid article:nth-child(3) {
    border-top-color: var(--coral);
}

.evidence-grid article:nth-child(4) {
    border-top-color: var(--amber);
}

.evidence-grid p {
    color: var(--muted);
    font-size: 0.95rem;
}

.video-section {
    width: 100%;
    max-width: none;
    padding: 94px 24px;
    background: linear-gradient(135deg, #f8fbfb, #eaf5f2);
}

.video-shell {
    width: min(1120px, 100%);
    min-height: 440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 36px;
    align-items: center;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(20, 32, 39, 0.92), rgba(24, 52, 68, 0.94)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 22px);
    box-shadow: var(--shadow);
}

.video-shell h2,
.video-shell p {
    color: var(--white);
}

.video-shell p:not(.eyebrow) {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.06rem;
}

.video-media {
    display: grid;
    grid-template-columns: minmax(190px, 0.56fr) minmax(330px, 1fr);
    gap: 24px;
    align-items: end;
}

.product-video {
    display: grid;
    gap: 12px;
    justify-items: center;
    margin: 0;
}

.product-device {
    width: 100%;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #0c1418;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.phone-device {
    max-width: 240px;
    aspect-ratio: 9 / 19.5;
    border-radius: 30px;
}

.tablet-device {
    max-width: 450px;
    aspect-ratio: 11 / 15;
    border-radius: 24px;
}

.product-device video {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.phone-device video {
    border-radius: 24px;
}

.product-video figcaption {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.team-member {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 24px;
    min-height: 430px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.team-photo {
    width: 74px;
    height: 74px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(20, 32, 39, 0.14);
}

.role {
    margin-bottom: 8px;
    color: var(--teal-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-member p:not(.role) {
    color: var(--muted);
}

.final-cta {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto 92px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 42px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-dark), #184252 64%, var(--coral));
    box-shadow: var(--shadow);
}

.final-cta h2,
.final-cta p {
    color: var(--white);
}

.final-cta h2 {
    max-width: 820px;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.final-cta p:not(.eyebrow) {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.final-cta .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.final-cta .btn-primary {
    background: var(--white);
    color: var(--ink);
    box-shadow: none;
}

.site-footer {
    padding: 28px 24px;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.footer-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-inner strong {
    display: block;
    color: var(--ink);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1rem;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
}

.footer-inner a,
.footer-inner a:hover {
    color: var(--teal-dark);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1080px) {
    .hero-grid,
    .challenge-grid,
    .platform-section,
    .video-shell,
    .final-cta {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 28px;
    }

    .hero-visual {
        min-height: 620px;
    }

    .signal-panel-top {
        left: 0;
    }

    .signal-panel-bottom {
        right: 0;
    }

    .challenge-points,
    .evidence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .pathway::before {
        display: none;
    }

    .pathway article {
        min-height: 210px;
        padding-left: 0;
    }

    .pathway span {
        margin-bottom: 18px;
    }

    .final-cta {
        justify-items: start;
    }
}

@media (max-width: 820px) {
    .site-nav {
        position: absolute;
        top: 12px;
        height: auto;
        min-height: 58px;
        flex-wrap: wrap;
        row-gap: 10px;
        padding: 10px 12px;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 2px;
        justify-content: flex-start;
    }

    .nav-links a {
        min-height: 34px;
        padding: 0 9px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .hero {
        padding-top: 160px;
    }

    .hero-proof,
    .split-intro,
    .stakeholder-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .section,
    .final-cta {
        width: min(100% - 32px, 1120px);
    }

    .challenge-section,
    .stakeholder-section,
    .video-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-showcase {
        min-height: 640px;
    }

    .phone-card-primary {
        width: min(100%, 340px);
    }

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

    .footer-inner nav {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    h1 {
        font-size: clamp(3rem, 14vw, 4.1rem);
    }

    .hero {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 70px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero-visual {
        min-height: 520px;
    }

    .device-stage {
        width: min(78vw, 300px);
        min-height: auto;
    }

    .signal-panel {
        position: relative;
        width: 100%;
        margin-top: 12px;
    }

    .signal-panel-top,
    .signal-panel-bottom {
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }

    .challenge-points,
    .pathway,
    .evidence-grid {
        grid-template-columns: 1fr;
    }

    .challenge-points div,
    .evidence-grid article {
        min-height: auto;
    }

    .stakeholder,
    .video-shell,
    .team-member,
    .final-cta {
        padding: 24px;
    }

    .video-shell {
        gap: 28px;
    }

    .video-media {
        grid-template-columns: 1fr;
    }

    .phone-device {
        max-width: min(68vw, 230px);
    }

    .tablet-device {
        max-width: min(100%, 390px);
    }

    .team-member {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .product-showcase {
        min-height: auto;
        padding: 0;
    }

    .product-showcase::before {
        display: none;
    }

    .phone-card {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
    }
}
