/* AI report preview */
.ai-report-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 124px) 0 clamp(56px, 7vw, 92px);
    border-bottom: 1px solid #e3edf6;
    background:
        linear-gradient(120deg, rgba(248,251,254,.98) 0%, rgba(255,255,255,.98) 56%, rgba(232,244,255,.9) 100%),
        radial-gradient(circle at 82% 22%, rgba(0,102,204,.13), transparent 34%);
}

.ai-report-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(10,31,58,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,31,58,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.46), transparent 78%);
}

.ai-report-hero .container,
.ai-report-page .container {
    position: relative;
    z-index: 1;
}

.ai-report-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 38px;
    color: #0066cc;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.ai-report-back:hover {
    color: #004f9f;
}

.ai-report-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: clamp(40px, 7vw, 112px);
    align-items: end;
}

.ai-report-hero__grid > div > span,
.ai-report-generator__head span,
.ai-report-document__header span,
.ai-report-review span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0066cc;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ai-report-hero__grid > div > span::before,
.ai-report-generator__head span::before,
.ai-report-review span::before {
    content: "";
    width: 34px;
    height: 1px;
    background: #0066cc;
}

.ai-report-hero h1 {
    max-width: 1040px;
    margin: 18px 0 22px;
    color: #071f3d;
    font-size: clamp(42px, 5.4vw, 72px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
}

.ai-report-hero p {
    max-width: 820px;
    margin: 0;
    color: #43566f;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.85;
}

.ai-report-hero aside {
    padding: 28px;
    border: 1px solid #d9e7f4;
    border-radius: 4px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 28px 70px rgba(10,45,84,.08);
}

.ai-report-hero aside b,
.ai-report-hero aside em {
    display: block;
    font-style: normal;
}

.ai-report-hero aside b {
    color: #071f3d;
    font-size: 22px;
    font-weight: 900;
}

.ai-report-hero aside em {
    margin-top: 8px;
    color: #5b7088;
    font-size: 14px;
    font-weight: 700;
}

.ai-report-pulse {
    position: relative;
    height: 88px;
    margin-top: 24px;
    border: 1px solid #dce8f3;
    background:
        linear-gradient(90deg, rgba(0,102,204,.08) 0 22%, transparent 22% 100%),
        repeating-linear-gradient(90deg, rgba(10,31,58,.09) 0 1px, transparent 1px 18px);
}

.ai-report-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0,102,204,.18), transparent);
    animation: aiReportSweep 1.8s ease-in-out infinite;
}

.ai-report-page {
    padding: clamp(46px, 7vw, 88px) 0 clamp(68px, 9vw, 118px);
    background: #f8fbfe;
}

.ai-report-workbench {
    display: grid;
    grid-template-columns: minmax(290px, 390px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.ai-report-generator {
    position: sticky;
    top: 118px;
    padding: 28px;
    border: 1px solid #dce8f3;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(10,45,84,.07);
}

.ai-report-generator__head h2 {
    margin: 14px 0 12px;
    color: #071f3d;
    font-size: 28px;
    font-weight: 900;
}

.ai-report-generator__head p {
    margin: 0;
    color: #60758d;
    font-size: 14px;
    line-height: 1.75;
}

.ai-report-progress {
    height: 4px;
    margin: 26px 0 24px;
    overflow: hidden;
    background: #e2edf7;
}

.ai-report-progress i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #13a7ff);
    transition: width .7s cubic-bezier(.22,1,.36,1);
}

.ai-report-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-report-steps li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e2edf7;
    background: #fbfdff;
    color: #536a82;
    transition: border-color .28s ease, background .28s ease, transform .28s ease;
}

.ai-report-steps b {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #cfe1f2;
    border-radius: 50%;
    background: #fff;
    color: #0066cc;
    font-size: 11px;
    font-weight: 900;
}

.ai-report-steps span {
    font-weight: 800;
    line-height: 1.5;
}

.ai-report-steps i {
    color: #12a66a;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .25s ease, transform .25s ease;
}

.ai-report-steps li.is-active {
    border-color: #b9d8f4;
    background: #eef7ff;
    transform: translateX(4px);
}

.ai-report-steps li.is-complete i {
    opacity: 1;
    transform: scale(1);
}

.ai-report-document {
    position: relative;
    overflow: hidden;
    min-height: 840px;
    padding: clamp(28px, 4vw, 54px);
    border: 1px solid #d6e2ef;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(10,45,84,.12);
    opacity: .28;
    transform: translateY(14px);
    filter: blur(1px);
    transition: opacity .65s ease, transform .65s ease, filter .65s ease;
}

.ai-report-document.is-ready {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.ai-report-document::before {
    content: "TENUMED";
    position: absolute;
    top: 48%;
    left: 50%;
    z-index: 0;
    color: rgba(0,102,204,.045);
    font-size: clamp(70px, 11vw, 150px);
    font-weight: 900;
    letter-spacing: .08em;
    transform: translate(-50%, -50%) rotate(-18deg);
    pointer-events: none;
}

.ai-report-document > * {
    position: relative;
    z-index: 1;
}

.ai-report-document__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 28px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 2px solid #0a2544;
}

.ai-report-document__header h2 {
    margin: 12px 0 8px;
    color: #071f3d;
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 900;
    line-height: 1.12;
}

.ai-report-document__header p {
    margin: 0;
    color: #6a7e95;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
}

.ai-report-document__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 18px;
    border: 1px solid #dce8f3;
    background: #f8fbfe;
}

.ai-report-document__meta small {
    color: #7d8fa3;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.ai-report-document__meta strong {
    margin-bottom: 8px;
    color: #071f3d;
    font-size: 14px;
    font-weight: 900;
}

.ai-report-match {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 30px 0;
    border: 1px solid #dce8f3;
}

.ai-report-match div {
    padding: 18px;
    border-right: 1px solid #dce8f3;
}

.ai-report-match div:last-child {
    border-right: 0;
}

.ai-report-match span {
    color: #b38a33;
    font-size: 11px;
    font-weight: 900;
}

.ai-report-match b {
    display: block;
    margin: 10px 0 16px;
    color: #0a2544;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.45;
}

.ai-report-match i {
    display: block;
    height: 5px;
    background: #e4eef7;
}

.ai-report-match i::before {
    content: "";
    display: block;
    width: var(--score);
    height: 100%;
    background: #0066cc;
}

.ai-report-document__sections {
    display: grid;
    gap: 0;
    border-top: 1px solid #dce8f3;
}

.ai-report-document__sections section {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 22px;
    padding: 26px 0;
    border-bottom: 1px solid #dce8f3;
}

.ai-report-document__sections span {
    color: #b38a33;
    font-size: 13px;
    font-weight: 900;
}

.ai-report-document__sections h3 {
    margin: 0 0 10px;
    color: #071f3d;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
}

.ai-report-document__sections p {
    margin: 0;
    color: #425672;
    font-size: 16px;
    line-height: 1.9;
}

.ai-report-review {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 34px;
    padding: 28px;
    background: linear-gradient(135deg, #071f3d 0%, #0a4c88 100%);
    color: #fff;
}

.ai-report-review span {
    color: #84c5ff;
}

.ai-report-review span::before {
    background: #84c5ff;
}

.ai-report-review h3 {
    margin: 12px 0 10px;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}

.ai-report-review p {
    max-width: 690px;
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 1.8;
}

.ai-report-review a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    background: #fff;
    color: #0066cc;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 20px 44px rgba(0,0,0,.18);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ai-report-review a:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 54px rgba(0,0,0,.22);
}

@keyframes aiReportSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 1180px) {
    .ai-report-workbench,
    .ai-report-hero__grid,
    .ai-report-document__header,
    .ai-report-review {
        grid-template-columns: 1fr;
    }

    .ai-report-generator {
        position: static;
    }
}

@media (max-width: 767px) {
    .ai-report-hero {
        padding: 42px 0 34px;
    }

    .ai-report-hero h1 {
        font-size: 36px;
    }

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

    .ai-report-match div:nth-child(2n) {
        border-right: 0;
    }

    .ai-report-match div:nth-child(-n+2) {
        border-bottom: 1px solid #dce8f3;
    }

    .ai-report-document__sections section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ai-report-review a {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}
