.lcai-aeo-wrap {
    max-width: 1120px;
    margin: 28px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
}

.lcai-aeo-hero,
.lcai-aeo-form,
.lcai-aeo-report {
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(17,24,39,.09);
}

.lcai-aeo-hero {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
    padding: 30px;
    border: 2px solid #00bfff;
    background:
        radial-gradient(circle at 12% 18%, rgba(0,191,255,.18), transparent 24%),
        radial-gradient(circle at 86% 8%, rgba(142,11,39,.14), transparent 26%),
        linear-gradient(180deg, #fff 0%, #fff8f1 100%);
    margin-bottom: 18px;
}

.lcai-kicker {
    color: #8e0b27;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.lcai-aeo-hero h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    font-weight: 950;
}

.lcai-aeo-hero p {
    margin: 0;
    max-width: 760px;
    color: #374151;
    line-height: 1.6;
    font-size: 17px;
}

.lcai-hero-badge {
    background: #8e0b27;
    color: white;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 0 0 4px rgba(142,11,39,.12);
}

.lcai-aeo-form {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 24px;
}

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

.lcai-form-grid label {
    font-weight: 900;
    font-size: 14px;
    color: #374151;
}

.lcai-form-grid label span {
    color: #8e0b27;
}

.lcai-form-grid input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 7px;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 16px;
    outline: none;
}

.lcai-form-grid input:focus {
    border-color: #00bfff;
    box-shadow: 0 0 0 4px rgba(0,191,255,.15);
}

.lcai-full {
    grid-column: 1 / -1;
}

.lcai-aeo-button,
.lcai-help-button {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(135deg, #8e0b27 0%, #b91c1c 56%, #00bfff 160%);
    color: #fff !important;
    border: none;
    border-radius: 16px;
    padding: 14px 24px;
    font-weight: 950;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 13px 28px rgba(142,11,39,.25);
}

.lcai-aeo-button[disabled],
.lcai-help-button[disabled] {
    opacity: .72;
    cursor: not-allowed;
}

.lcai-small-note,
.lcai-muted {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
}

.lcai-aeo-loading {
    margin-top: 18px;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #8e0b27;
}

.lcai-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e5e7eb;
    border-top-color: #8e0b27;
    border-radius: 50%;
    animation: lcai-spin 1s linear infinite;
}

@keyframes lcai-spin {
    to { transform: rotate(360deg); }
}

.lcai-aeo-results {
    margin-top: 22px;
}

.lcai-aeo-report {
    padding: 28px;
    border: 2px solid #00bfff;
    background:
        radial-gradient(circle at 90% 8%, rgba(0,191,255,.16), transparent 25%),
        radial-gradient(circle at 12% 16%, rgba(142,11,39,.10), transparent 25%),
        linear-gradient(180deg, #fff 0%, #fff8f1 100%);
}

.lcai-report-top {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    align-items: stretch;
}

.lcai-report-top h2 {
    margin: 0;
    font-size: 76px;
    line-height: .9;
    font-weight: 950;
    color: #8e0b27;
}

.lcai-report-top p {
    margin: 6px 0 10px;
    font-weight: 900;
}

.lcai-grade {
    display: inline-block;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 950;
}

.lcai-grade.strong { background: #dcfce7; color: #166534; }
.lcai-grade.good { background: #dbeafe; color: #1d4ed8; }
.lcai-grade.fair { background: #fef3c7; color: #92400e; }
.lcai-grade.weak { background: #fee2e2; color: #991b1b; }

.lcai-report-meta {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
    display: grid;
    gap: 8px;
    align-content: center;
}

.lcai-report-meta strong {
    font-size: 18px;
    overflow-wrap: anywhere;
}

.lcai-report-meta span {
    color: #374151;
    font-weight: 700;
}

.lcai-section,
.lcai-help-box {
    margin-top: 18px;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: rgba(255,255,255,.88);
}

.lcai-section h3,
.lcai-help-box h3 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.2;
}

.lcai-section h4 {
    margin: 16px 0 8px;
}

.lcai-section p,
.lcai-help-box p {
    line-height: 1.65;
    margin-top: 0;
}

.lcai-section ul {
    margin: 0;
    padding-left: 20px;
}

.lcai-section li {
    margin: 8px 0;
    line-height: 1.55;
}

.lcai-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.lcai-breakdown-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
}

.lcai-breakdown-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-weight: 950;
}

.lcai-meter {
    margin-top: 12px;
    height: 9px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.lcai-meter span {
    display: block;
    height: 100%;
    background: #8e0b27;
    border-radius: 999px;
}

.lcai-breakdown-card.strong .lcai-meter span { background: #16a34a; }
.lcai-breakdown-card.good .lcai-meter span { background: #2563eb; }
.lcai-breakdown-card.fair .lcai-meter span { background: #d97706; }
.lcai-breakdown-card.weak .lcai-meter span { background: #dc2626; }

.lcai-rec,
.lcai-schema-issue {
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
    margin-top: 14px;
}

.lcai-rec:first-of-type,
.lcai-schema-issue:first-of-type {
    border-top: none;
    padding-top: 0;
}

.lcai-rec h4 {
    margin: 0 0 6px;
    color: #8e0b27;
    font-size: 18px;
}

.lcai-impact {
    background: #fff7ed;
    border-left: 4px solid #8e0b27;
    padding: 10px 12px;
    border-radius: 10px;
    line-height: 1.55;
}

.lcai-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.lcai-profile-grid div {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
}

.lcai-profile-grid strong,
.lcai-profile-grid span {
    display: block;
}

.lcai-profile-grid span {
    margin-top: 5px;
    color: #374151;
    line-height: 1.4;
}

.lcai-help-box {
    border-color: #00bfff;
}

.lcai-help-status {
    margin-top: 14px;
    font-weight: 900;
}

.lcai-help-status.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 12px 14px;
}

.lcai-help-status.error,
.lcai-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .lcai-breakdown-grid,
    .lcai-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lcai-report-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .lcai-aeo-hero {
        display: block;
    }

    .lcai-hero-badge {
        display: inline-block;
        margin-top: 14px;
    }

    .lcai-form-grid,
    .lcai-breakdown-grid,
    .lcai-profile-grid {
        grid-template-columns: 1fr;
    }

    .lcai-aeo-hero,
    .lcai-aeo-form,
    .lcai-aeo-report {
        padding: 20px;
        border-radius: 18px;
    }
}


.lcai-pdf-box {
    margin-top: 18px;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: rgba(255,255,255,.88);
}

.lcai-pdf-box h3 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.2;
}

.lcai-pdf-box p {
    line-height: 1.65;
    margin-top: 0;
}

.lcai-pdf-button {
    display: inline-block;
    margin-top: 12px;
    background: #111827;
    color: #fff !important;
    border: none;
    border-radius: 16px;
    padding: 13px 22px;
    font-weight: 950;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 13px 28px rgba(17,24,39,.18);
}
