/* Design tokens */
:root {
    --background: #f4f4f6;
    --white: #ffffff;
    --text-primary: #1f242e;
    --text-secondary: #6b7380;
    --text-tertiary: #737a85;
    --blue: #1f78e5;
    --border-subtle: #e0e5eb;
    --surface-blue-tint: #f7faff;
    --out-of-range: #fc4a52;
    --neutral: #e0e3eb;
    --borderline: #ffca5e;
    --negative: #db4047;
    --error-bg: #ffeded;
    --warning-bg: #fdf4e3;
    --warning: #eba61a;
    --radius-big: 12px;
    --radius-panel: 28px;
    --radius-card: 20px;
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --font-condensed: "Roboto Condensed", sans-serif;
}

/* Reset & base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    padding: 0 120px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__logo-mark {
    width: 36px;
    height: 36px;
}

.nav__logo-text {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-big);
    transition: opacity 0.15s;
}

.btn:hover {
    opacity: 0.9;
}

.btn--primary {
    background: var(--blue);
    color: var(--white);
    padding: 12px 22px;
}

/* Eyebrow pill */
.eyebrow {
    display: inline-block;
    background: var(--text-primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    width: 185px;
}

/* Store badges */
.store-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.store-badges--center {
    justify-content: center;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--text-primary);
    color: var(--white);
    padding: 12px 24px 12px 20px;
    border-radius: 14px;
    transition: opacity 0.15s;
}

.store-badge:hover {
    opacity: 0.9;
}

.store-badge__icon {
    flex-shrink: 0;
}

.store-badge__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.store-badge__label {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

.store-badge__name {
    font-size: 18px;
    font-weight: 600;
}

/* Hero */
.hero {
    padding: 8px 40px 0;
}

.hero__panel {
    display: flex;
    gap: 60px;
    background: var(--blue);
    border-radius: var(--radius-panel);
    padding: 72px 80px 0;
    overflow: visible;
    position: relative;
}

.hero__copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 72px;
    min-width: 0;
}

.hero__headline {
    font-size: 64px;
    font-weight: 600;
    line-height: 70px;
    color: var(--white);
}

.hero__description {
    font-size: 18px;
    line-height: 28px;
    color: var(--white);
    opacity: 0.85;
    max-width: 520px;
}

.hero__visual {
    position: relative;
    width: 480px;
    flex-shrink: 0;
}

/* Phone mockup */
.phone {
    position: absolute;
    right: 20px;
    top: 14px;
    width: 330px;
    background: var(--text-primary);
    border-radius: 44px;
    padding: 10px;
    box-shadow: 0 24px 48px -8px rgba(13, 26, 64, 0.35);
    transform: rotate(8.92deg);
    z-index: 2;
}

.phone__screen {
    background: var(--background);
    border-radius: 36px;
    padding: 18px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.phone__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.profile-chip--active {
    border: 1.5px solid var(--blue);
}

.profile-chip__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.results-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.results-card__date {
    font-size: 16px;
    font-weight: 600;
}

.results-card__lab {
    font-size: 12px;
    color: var(--text-secondary);
}

.marker-chart {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    justify-content: center;
    height: 96px;
}

.marker-chart__bar {
    position: relative;
    width: 14px;
    height: 96px;
    flex-shrink: 0;
}

.marker-chart__bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 14px;
    border-radius: 7px;
    height: var(--bar-height, 30px);
    top: var(--bar-top, 0);
}

.marker-chart__bar--red::after {
    background: var(--out-of-range);
}
.marker-chart__bar--blue::after {
    background: var(--blue);
}
.marker-chart__bar--neutral::after {
    background: var(--neutral);
}
.marker-chart__bar--yellow::after {
    background: var(--borderline);
}

.results-card__status {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.status-row__dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

.phone__problems-label {
    font-size: 14px;
    font-weight: 600;
}

.phone__problem-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.problem-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 10px;
}

.problem-chip--error {
    background: var(--error-bg);
    color: var(--out-of-range);
}

.problem-chip--warning {
    background: var(--warning-bg);
    color: var(--warning);
}

/* Blood vial illustration */
.blood-vial {
    position: absolute;
    left: -50px;
    bottom: -100px;
    width: 189px;
    height: auto;
    z-index: 3;
}

/* Section header */
.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.section-header__title {
    font-size: 40px;
    font-weight: 600;
    line-height: 48px;
    color: var(--text-primary);
}

.section-header__subtitle {
    font-size: 17px;
    line-height: 26px;
    color: var(--text-secondary);
    max-width: 560px;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
    padding: 110px 120px;
}

.features__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 28px;
    width: 384px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    background: var(--surface-blue-tint);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__title {
    font-size: 19px;
    font-weight: 600;
}

.feature-card__desc {
    font-size: 15px;
    line-height: 23px;
    color: var(--text-secondary);
}

/* How it works */
.how-it-works {
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 56px;
    align-items: center;
    padding: 100px 120px 110px;
}

.steps {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}

.step-card {
    flex: 1;
    background: var(--background);
    border-radius: var(--radius-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.step-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.step-card__icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card__number {
    font-size: 48px;
    font-weight: 600;
    color: var(--border-subtle);
    line-height: 1;
}

.step-card__title {
    font-size: 21px;
    font-weight: 600;
}

.step-card__desc {
    font-size: 15px;
    line-height: 23px;
    color: var(--text-secondary);
}

/* Privacy */
.privacy {
    padding: 0 120px 110px;
}

.privacy__strip {
    display: flex;
    gap: 64px;
    align-items: center;
    background: var(--text-primary);
    color: var(--white);
    border-radius: var(--radius-panel);
    padding: 56px 64px;
}

.privacy__copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.privacy__title {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
}

.privacy__desc {
    font-size: 16px;
    line-height: 25px;
    opacity: 0.7;
}

.privacy__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-shrink: 0;
}

.privacy__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.privacy__item img {
    flex-shrink: 0;
}

/* CTA */
.cta {
    padding: 0 120px 110px;
}

.cta__panel {
    background: var(--blue);
    border-radius: var(--radius-panel);
    padding: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.cta__title {
    font-size: 40px;
    font-weight: 600;
    line-height: 48px;
    color: var(--white);
}

.cta__subtitle {
    font-size: 17px;
    line-height: 26px;
    color: var(--white);
    opacity: 0.85;
}

/* Footer */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding: 36px 120px 44px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__logo {
    width: 28px;
    height: 28px;
}

.footer__name {
    font-size: 16px;
    font-weight: 600;
}

.footer__links {
    display: flex;
    gap: 32px;
}

.footer__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.15s;
}

.footer__links a:hover {
    color: var(--text-primary);
}

.footer__copyright {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 1200px) {
    .nav,
    .features,
    .how-it-works,
    .privacy,
    .cta,
    .footer {
        padding-left: 60px;
        padding-right: 60px;
    }

    .hero__panel {
        padding-left: 48px;
        padding-right: 48px;
    }

    .hero__headline {
        font-size: 48px;
        line-height: 54px;
    }
}

@media (max-width: 1024px) {
    .hero__panel {
        flex-direction: column;
        align-items: center;
        padding-bottom: 48px;
    }

    .hero__copy {
        padding-bottom: 0;
        align-items: center;
        text-align: center;
    }

    .hero__visual {
        width: 100%;
        max-width: 480px;
    }

    .phone {
        right: 20%;
        transform: translateX(30%) rotate(8.92deg);
    }

    .blood-vial {
        left: 5%;
        bottom: 60px;
        width: 160px;
    }

    .steps {
        flex-direction: column;
    }

    .privacy__strip {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .privacy__list {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav,
    .features,
    .how-it-works,
    .privacy,
    .cta,
    .footer {
        padding-left: 24px;
        padding-right: 24px;
    }

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

    .hero__panel {
        padding: 0px 24px;
        gap: 32px;
    }

    .hero__headline {
        font-size: 36px;
        line-height: 42px;
    }

    .hero__description {
        font-size: 16px;
        line-height: 24px;
    }

    .section-header__title,
    .cta__title {
        font-size: 32px;
        line-height: 38px;
    }

    .feature-card {
        width: 100%;
    }

    .features {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .how-it-works {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .privacy__strip {
        padding: 40px 24px;
    }

    .privacy__title {
        font-size: 26px;
        line-height: 32px;
    }

    .cta__panel {
        padding: 48px 24px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        order: 2;
    }

    .phone {
        width: 280px;
        transform: translateX(20%) rotate(8.92deg);
    }

    .blood-vial {
        width: 140px;
        left: 0;
        bottom: -70px;
    }
}

@media (max-width: 480px) {
    .store-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .store-badge {
        justify-content: center;
    }

    .phone {
        width: 260px;
        transform: translateX(10%) rotate(8.92deg);
    }
}
