:root {
    --ink: #0b111b;
    --muted: #667085;
    --paper: #fff;
    --soft: #f2f6ff;
    --blue: #1246e8;
    --blue-bright: #0789f5;
    --navy: #153b78;
    --purple: #6545ef;
    --teal: #083e49;
    --orange: #ff6b35;
    --lime: #aee890;
    --line: #d9e2f2;
    --shadow: 0 18px 50px rgba(14, 38, 86, .14);
    --radius: 22px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Manrope", sans-serif;
    line-height: 1.5
}

button,
a,
label {
    font: inherit
}

button,
a {
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease
}

button:focus-visible,
a:focus-visible,
label:focus-within {
    outline: 3px solid #ffb547;
    outline-offset: 3px
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 72px;
    padding: 0 clamp(20px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease
}

/* transparent — over hero top */
.site-header[data-nav="transparent"] {
    background: transparent;
    box-shadow: none
}

.site-header[data-nav="transparent"] .brand,
.site-header[data-nav="transparent"] .brand strong {
    color: #fff
}

.site-header[data-nav="transparent"] .button-quiet {
    color: #fff;
    background: rgba(255, 255, 255, .15)
}

/* glass — scrolling through hero */
.site-header[data-nav="glass"] {
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .12)
}

.site-header[data-nav="glass"] .brand,
.site-header[data-nav="glass"] .brand strong {
    color: #fff
}

.site-header[data-nav="glass"] .button-quiet {
    color: #fff;
    background: rgba(255, 255, 255, .2)
}

/* white — past hero */
.site-header[data-nav="white"] {
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line)
}

.site-header[data-nav="white"] .brand {
    color: var(--ink)
}

.site-header[data-nav="white"] .brand strong {
    color: var(--blue)
}

.site-header[data-nav="white"] .button-quiet {
    color: var(--ink);
    background: #f1f1ed
}

.brand {
    text-decoration: none;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1.2px;
    transition: color .3s
}

.account-nav {
    display: flex;
    gap: 8px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    border: 0;
    cursor: pointer
}

.button:hover {
    transform: translateY(-2px)
}

.button-quiet {
    color: var(--ink);
    background: #f1f1ed
}

.button-primary {
    color: #fff;
    background: var(--blue)
}

.button-light {
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14)
}

/* Hero */
.hero {
    min-height: 100vh;
    padding-top: 72px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--blue)
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 55, 197, .98) 0%, rgba(9, 55, 197, .83) 36%, rgba(9, 55, 197, .05) 69%)
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, 100%);
    padding: 70px clamp(24px, 6vw, 86px)
}

.eyebrow {
    margin: 0 0 14px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    color: #d6e1ff
}

.hero h1 {
    max-width: 620px;
    margin: 0 0 30px;
    color: #fff;
    font-size: clamp(38px, 5.2vw, 70px);
    line-height: 1.03;
    letter-spacing: 0;
    font-weight: 800
}

.kidney-line {
    position: absolute;
    z-index: 1;
    width: 180px;
    height: 80px;
    border: 22px solid rgba(255, 255, 255, .95);
    border-bottom: 0;
    border-radius: 24px 24px 0 0
}

.kidney-line-top {
    right: -45px;
    top: 72px
}

.kidney-line-bottom {
    left: -65px;
    bottom: -4px
}

/* Analysis section */
.analysis-section {
    background: var(--navy);
    color: #fff;
    padding: 68px 0 88px
}

.section-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 36px
}

.section-heading h2,
.report-intro h2,
.summary-section h2 {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.1;
    letter-spacing: -.5px
}

.section-heading>p {
    max-width: 380px;
    margin: 0;
    color: #c6d8f7;
    font-size: 14px;
    line-height: 1.6
}

.eyebrow-light {
    color: #80c7ff
}

/* Accordion grid */
.accordion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px
}

.parameter {
    align-self: start;
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: background .25s, border-color .25s
}

.parameter:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .18)
}

.parameter.is-open {
    background: var(--paper);
    border-color: transparent
}

.parameter-toggle {
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: 1fr auto 20px;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    border: 0;
    color: #fff;
    background: transparent;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -.1px
}

.parameter.is-open .parameter-toggle {
    color: #fff;
    background: linear-gradient(100deg, #1a1d9f, #1246e8);
    border-radius: 16px 16px 0 0
}

.parameter-toggle svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform .25s;
    flex-shrink: 0
}

.parameter.is-open .parameter-toggle svg {
    transform: rotate(180deg)
}

.parameter-value {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    opacity: .7;
    white-space: nowrap;
    background: rgba(255, 255, 255, .15);
    padding: 3px 9px;
    border-radius: 999px
}

.parameter.is-open .parameter-value {
    background: rgba(255, 255, 255, .25)
}

.parameter-content {
    padding: 0 20px;
    color: var(--ink);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, padding .35s ease
}

.parameter.is-open .parameter-content {
    max-height: 200px;
    opacity: 1;
    padding: 18px 20px 22px
}

.parameter-content strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
    color: var(--navy)
}

.parameter-content p {
    margin: 0;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.6
}

/* Lab photo */
.lab-photo {
    margin: 36px 0 0
}

.lab-photo img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius)
}

.lab-photo figcaption {
    margin-top: 10px;
    color: #b9cae7;
    font-size: 12px
}

/* Actions / Features */
.actions-section {
    padding: 72px 0 80px;
    background: linear-gradient(176deg, var(--navy) 0 18%, #f8faff 18%)
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.feature-card {
    position: relative;
    border-radius: 24px;
    padding: 36px 32px 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 8px 40px rgba(14, 38, 86, .12)
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .06;
    background: radial-gradient(circle at 80% 20%, #fff, transparent 60%)
}

.feature-upload {
    background: linear-gradient(135deg, #2d2fa8, #1246e8)
}

.feature-ai {
    background: linear-gradient(135deg, var(--teal), #0d6b80)
}

.feature-monitor {
    background: linear-gradient(135deg, #c44b1a, var(--orange))
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.feature-icon svg {
    width: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.feature-body {
    flex: 1
}

.feature-body strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -.3px
}

.feature-body p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.65
}

.feature-step {
    position: absolute;
    bottom: 20px;
    right: 24px;
    font-size: 52px;
    font-weight: 800;
    color: rgba(255, 255, 255, .1);
    line-height: 1;
    letter-spacing: -2px;
    pointer-events: none
}

/* Report */
.report-section {
    padding: 72px 0 110px;
    background: linear-gradient(171deg, var(--paper) 0 22%, var(--purple) 22% 78%, var(--paper) 78%)
}

.report-layout {
    display: grid;
    grid-template-columns: .85fr 1.35fr;
    align-items: center;
    gap: 64px
}

.report-intro {
    color: #fff
}

.report-intro p:last-child {
    max-width: 380px;
    color: #e7e1ff
}

.report-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 25px;
    box-shadow: var(--shadow);
    overflow: auto
}

.report-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px
}

.report-head div {
    display: flex;
    flex-direction: column
}

.report-head span {
    font-size: 11px;
    color: var(--muted)
}

.report-badge {
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--soft)
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px
}

th,
td {
    padding: 13px;
    text-align: left;
    border-bottom: 1px solid #e9eef7
}

th {
    font-size: 10px;
    text-transform: uppercase;
    color: #52617a;
    background: var(--soft)
}

td:nth-child(2) {
    font-weight: 800;
    color: var(--navy)
}

/* Summary */
.summary-section {
    padding: 20px 0 84px;
    text-align: center
}

.summary-kicker {
    font-weight: 800;
    color: var(--blue);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px
}

.summary-copy {
    margin: 13px auto 30px;
    max-width: 780px;
    color: var(--muted)
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px
}

.metric {
    min-height: 120px;
    padding: 24px;
    border-radius: 20px;
    background: var(--lime);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.metric strong {
    font-size: 29px
}

.metric span {
    font-size: 12px
}

.medical-note {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 12px
}

/* Footer */
.site-footer {
    padding: 44px 20px 34px;
    text-align: center;
    border-top: 1px solid var(--line)
}

.partner-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px 40px;
    margin-bottom: 34px
}

.partner-list img {
    height: 36px;
    width: auto;
    opacity: .6;
    filter: grayscale(1);
    transition: opacity .2s, filter .2s
}

.partner-list img:hover {
    opacity: 1;
    filter: none
}

.footer-brand {
    display: inline-block
}

.site-footer p {
    font-size: 11px;
    color: var(--muted)
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 10;
    transform: translate(-50%, 120px);
    opacity: 0;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    box-shadow: var(--shadow);
    transition: .25s
}

.toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1
}

/* Responsive */
@media(max-width:780px) {
    .site-header {
        height: 64px;
        padding: 0 16px
    }

    .brand {
        font-size: 21px
    }

    .button {
        min-height: 36px;
        padding: 0 13px
    }

    .hero {
        min-height: 100vh;
        min-height: 100svh;
        align-items: center
    }

    .hero-image {
        object-position: 60% center
    }

    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(8, 49, 184, .55) 0%,
            rgba(8, 49, 184, .92) 50%,
            rgba(8, 49, 184, .98) 100%)
    }

    .hero-content {
        padding: 100px 22px 60px;
        display: flex;
        flex-direction: column;
        align-items: flex-start
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(32px, 8vw, 44px)
    }

    .eyebrow {
        margin-bottom: 8px
    }

    .kidney-line {
        display: none
    }

    .analysis-section {
        padding: 52px 0 72px
    }

    .section-shell {
        width: min(100% - 28px, 1180px)
    }

    .section-heading {
        display: block
    }

    .section-heading>p {
        margin-top: 12px
    }

    .accordion-grid {
        grid-template-columns: 1fr
    }

    .lab-photo img {
        height: 190px
    }

    .actions-section {
        padding-bottom: 54px;
        background: linear-gradient(177deg, var(--navy) 0 12%, #f8faff 12%)
    }

    .feature-grid {
        grid-template-columns: 1fr
    }

    .feature-card {
        padding: 28px 24px 24px
    }

    .report-section {
        padding: 50px 0 82px;
        background: linear-gradient(174deg, var(--purple) 0 72%, var(--paper) 72%)
    }

    .report-layout {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .report-card {
        padding: 15px
    }

    .metric-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .metric {
        min-height: 96px
    }

    .partner-list {
        gap: 10px
    }

    .toast {
        white-space: nowrap;
        max-width: calc(100% - 28px);
        overflow: hidden;
        text-overflow: ellipsis
    }
}

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

    *,
    *::before,
    *::after {
        transition: none !important
    }
}