:root {
    --health-bg: #082a34;
    --health-bg-deep: #022631;
    --health-ink: #e8f0ef;
    --health-muted: #9eb8bd;
    --health-smoke: #164d60;
    --coral: #ee6352;
    --teal: #6ba292;
    --purple: #8e94f2;
    --white: #ffffff;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--health-bg-deep);
    color: var(--health-ink);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.healthcheck-page {
    min-height: 100vh;
    overflow: hidden;
    background: var(--health-bg-deep);
    color: var(--health-ink);
}

.healthcheck-hero {
    position: relative;
    min-height: 100svh;
    padding: 0 clamp(1.5rem, 5vw, 7rem) 5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(142, 148, 242, 0.16), transparent 28rem),
        radial-gradient(circle at 14% 74%, rgba(107, 162, 146, 0.12), transparent 24rem),
        linear-gradient(180deg, #082f3a 0%, var(--health-bg-deep) 72%);
}

.healthcheck-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 68%, transparent 100%);
}

.healthcheck-anniversary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin: 0 calc(50% - 50vw) 4.5rem;
    overflow: hidden;
    isolation: isolate;
}

.healthcheck-anniversary::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(140, 170, 179, 0.28), transparent);
}

.healthcheck-anniversary img,
.healthcheck-anniversary picture {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

.healthcheck-hero__body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: start;
    gap: clamp(2rem, 6vw, 6rem);
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 2rem;
}

.healthcheck-hero__copy {
    max-width: 760px;
}

.healthcheck-hero__copy h1 {
    max-width: 780px;
    color: var(--health-muted);
    font-size: clamp(3.4rem, 7.4vw, 6.7rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.03;
}

.healthcheck-hero__copy h1 span {
    color: var(--health-ink);
    font-weight: 800;
}

.healthcheck-hero__intro {
    max-width: 640px;
    margin-top: 1.75rem;
    color: rgba(214, 226, 226, 0.74);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 300;
    line-height: 1.8;
}

.healthcheck-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.healthcheck-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
    border: 1px solid rgba(232, 240, 239, 0.2);
    border-radius: 999px;
    color: var(--health-ink);
    font-size: 0.86rem;
    font-weight: 700;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.healthcheck-button:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 240, 239, 0.46);
}

.healthcheck-button--primary {
    border-color: var(--coral);
    background: var(--coral);
    color: var(--white);
}

.healthcheck-button--ghost {
    background: rgba(255, 255, 255, 0.04);
}

.healthcheck-diagnostic {
    position: sticky;
    top: 1.5rem;
    padding: 1.2rem;
    border: 1px solid rgba(140, 170, 179, 0.18);
    border-radius: 28px;
    background: rgba(2, 38, 49, 0.72);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.healthcheck-diagnostic__status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.75rem 1rem;
    color: var(--health-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.healthcheck-diagnostic__status span:first-child {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 16px var(--teal);
}

.healthcheck-diagnostic dl {
    display: grid;
    gap: 0.7rem;
}

.healthcheck-diagnostic dl div {
    padding: 1rem;
    border: 1px solid rgba(140, 170, 179, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    animation: healthcheckScanItem 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.healthcheck-diagnostic dl div:nth-child(1) {
    animation-delay: 0.25s;
}

.healthcheck-diagnostic dl div:nth-child(2) {
    animation-delay: 0.55s;
}

.healthcheck-diagnostic dl div:nth-child(3) {
    animation-delay: 0.85s;
}

.healthcheck-diagnostic dl div:nth-child(4) {
    animation-delay: 1.15s;
}

.healthcheck-diagnostic dt {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.healthcheck-diagnostic dd {
    color: rgba(214, 226, 226, 0.64);
    font-size: 0.88rem;
    line-height: 1.55;
}

.healthcheck-problem,
.healthcheck-grid,
.healthcheck-services,
.healthcheck-form-section {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 7rem);
}

.healthcheck-problem {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(2rem, 7vw, 7rem);
    background: #061f28;
}

.healthcheck-kicker {
    color: var(--teal);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.healthcheck-problem h2,
.healthcheck-services h2,
.healthcheck-form-section h2 {
    color: var(--health-ink);
    font-weight: 400;
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: 1;
}

.healthcheck-problem > p {
    max-width: 680px;
    color: rgba(214, 226, 226, 0.72);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 300;
    line-height: 1.9;
}

.healthcheck-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(6, 31, 40, 0.92), rgba(2, 38, 49, 1)), var(--health-bg-deep);
}

.healthcheck-card {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(140, 170, 179, 0.13);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
}

.healthcheck-card--pending {
    opacity: 0;
    transform: translateY(22px);
}

.healthcheck-card--visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1), transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.healthcheck-card--large {
    grid-row: span 2;
    min-height: 596px;
    background: linear-gradient(135deg, rgba(142, 148, 242, 0.2), rgba(2, 38, 49, 0.28)), rgba(255, 255, 255, 0.04);
}

.healthcheck-card--accent {
    background: linear-gradient(135deg, rgba(238, 99, 82, 0.24), rgba(107, 162, 146, 0.12)), rgba(255, 255, 255, 0.04);
}

.healthcheck-card span {
    color: rgba(140, 170, 179, 0.38);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: auto;
}

.healthcheck-card h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.healthcheck-card p {
    max-width: 520px;
    color: rgba(214, 226, 226, 0.68);
    line-height: 1.75;
}

.healthcheck-services {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 7vw, 7rem);
    background: #071c24;
}

.healthcheck-services__intro {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.healthcheck-services__list {
    display: grid;
    border-top: 1px solid rgba(140, 170, 179, 0.18);
}

.healthcheck-services__list div {
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(140, 170, 179, 0.18);
}

.healthcheck-services__list span {
    display: block;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.healthcheck-services__list p {
    color: rgba(214, 226, 226, 0.66);
    line-height: 1.75;
}

.healthcheck-form-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: center;
    scroll-margin-top: 1rem;
    background:
        radial-gradient(circle at 78% 20%, rgba(142, 148, 242, 0.16), transparent 24rem),
        linear-gradient(180deg, #071c24 0%, var(--health-bg-deep) 100%);
}

.healthcheck-form-section__copy {
    max-width: 560px;
}

.healthcheck-form-section__copy h2 {
    margin-bottom: 1.5rem;
}

.healthcheck-form-section__copy p:not(.healthcheck-kicker) {
    color: rgba(214, 226, 226, 0.72);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.healthcheck-form {
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid rgba(140, 170, 179, 0.2);
    border-radius: 28px;
    background: rgba(24, 74, 88, 0.78);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px);
}

.healthcheck-form__message {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.healthcheck-form__message--success {
    background: rgba(107, 162, 146, 0.2);
    color: #d8f0e9;
}

.healthcheck-form__message--error {
    background: rgba(238, 99, 82, 0.18);
    color: #ffe1dd;
}

.healthcheck-form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.healthcheck-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.healthcheck-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 700;
}

.healthcheck-form label em {
    color: rgba(232, 240, 239, 0.58);
    font-style: normal;
    font-weight: 400;
}

.healthcheck-form input,
.healthcheck-form textarea {
    width: 100%;
    border: 1px solid rgba(140, 170, 179, 0.08);
    border-radius: 14px;
    background: rgba(2, 38, 49, 0.8);
    color: var(--health-ink);
    font: inherit;
    font-weight: 400;
    outline: none;
    padding: 0.95rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.healthcheck-form textarea {
    min-height: 112px;
    resize: vertical;
}

.healthcheck-form input::placeholder,
.healthcheck-form textarea::placeholder {
    color: rgba(214, 226, 226, 0.36);
}

.healthcheck-form input:focus,
.healthcheck-form textarea:focus {
    border-color: rgba(142, 148, 242, 0.8);
    background: rgba(2, 38, 49, 0.95);
    box-shadow: 0 0 0 3px rgba(142, 148, 242, 0.16);
}

.healthcheck-form__check {
    flex-direction: row !important;
    align-items: center;
    color: rgba(214, 226, 226, 0.72) !important;
    font-weight: 400 !important;
}

.healthcheck-form__check input {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
}

.healthcheck-form__submit {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: var(--purple);
    color: #071c24;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font: inherit;
    font-weight: 800;
    transition: transform 0.2s, filter 0.2s;
}

.healthcheck-form__submit:hover {
    filter: brightness(1.04);
    transform: translateY(-2px);
}

.healthcheck-form__submit:disabled {
    cursor: wait;
    filter: saturate(0.72);
    opacity: 0.72;
    transform: none;
}

.healthcheck-form.is-sending input,
.healthcheck-form.is-sending textarea {
    opacity: 0.72;
}

.healthcheck-form.is-sending .healthcheck-form__submit::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(7, 28, 36, 0.28);
    border-top-color: #071c24;
    border-radius: 50%;
    animation: healthcheckSpin 0.75s linear infinite;
}

.healthcheck-form__note {
    color: rgba(214, 226, 226, 0.58);
    font-size: 0.84rem;
    line-height: 1.5;
    margin-top: 1rem;
    text-align: center;
}

.healthcheck-thanks {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 78% 18%, rgba(142, 148, 242, 0.16), transparent 28rem),
        radial-gradient(circle at 14% 74%, rgba(107, 162, 146, 0.12), transparent 24rem),
        linear-gradient(180deg, #082f3a 0%, var(--health-bg-deep) 72%);
}

.healthcheck-thanks__panel {
    width: min(720px, 100%);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(140, 170, 179, 0.2);
    border-radius: 28px;
    background: rgba(24, 74, 88, 0.78);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.healthcheck-thanks__panel h1 {
    color: var(--health-ink);
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.healthcheck-thanks__panel p:not(.healthcheck-kicker) {
    color: rgba(214, 226, 226, 0.72);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.healthcheck-thanks__panel a:not(.healthcheck-button) {
    color: var(--health-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@keyframes healthcheckScanItem {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes healthcheckSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .healthcheck-diagnostic dl div {
        animation: none;
    }

    .healthcheck-card--pending,
    .healthcheck-card--visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .healthcheck-form.is-sending .healthcheck-form__submit::after {
        animation: none;
    }
}

@media (max-width: 900px) {
    .healthcheck-hero {
        min-height: auto;
        padding: 0 1.5rem 4rem;
    }

    .healthcheck-anniversary {
        width: calc(100% + 3rem);
        margin: 0 -1.5rem 3rem;
    }

    .healthcheck-hero__body,
    .healthcheck-problem,
    .healthcheck-grid,
    .healthcheck-services,
    .healthcheck-form-section {
        grid-template-columns: 1fr;
    }

    .healthcheck-hero__copy h1 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .healthcheck-diagnostic,
    .healthcheck-services__intro {
        position: static;
    }

    .healthcheck-problem,
    .healthcheck-grid,
    .healthcheck-services,
    .healthcheck-form-section {
        padding: 4rem 1.5rem;
    }

    .healthcheck-card--large {
        min-height: 360px;
    }

    .healthcheck-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 560px) {
    .healthcheck-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .healthcheck-button {
        width: 100%;
    }
}

@media (max-height: 500px) {
    .healthcheck-hero {
        min-height: auto;
    }

    .healthcheck-anniversary {
        margin-bottom: 2rem;
    }
}
