#io-imei-app {
    color: #1f2933;
    background: #fff;
}

#io-imei-app * {
    box-sizing: border-box;
}

#io-imei-app .io-imei-shell {
    width: min(100% - 32px, 1080px);
    margin: 0 auto;
}

#io-imei-app .io-imei-hero {
    padding: 56px 0 32px;
    background: #f7f7f5;
    border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}

#io-imei-app .io-imei-copy {
    max-width: 760px;
}

#io-imei-app h1,
#io-imei-app h2,
#io-imei-app p {
    margin: 0;
}

#io-imei-app h1 {
    color: #111827;
    font-size: clamp(2rem, 6vw, 4.25rem);
    line-height: 1;
    font-weight: 750;
    letter-spacing: 0;
}

#io-imei-app .io-imei-copy p {
    max-width: 680px;
    margin-top: 18px;
    color: #4b5563;
    font-size: 1.08rem;
    line-height: 1.65;
}

#io-imei-app .io-imei-form {
    max-width: 820px;
    margin-top: 32px;
}

#io-imei-app label {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 650;
}

#io-imei-app .io-imei-control {
    display: grid;
    gap: 12px;
}

#io-imei-app input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    color: #111827;
    background: #fff;
    border: 1px solid #c8cdd3;
    border-radius: 8px;
    font: inherit;
    font-size: 1.08rem;
    letter-spacing: 0;
}

#io-imei-app input:focus {
    outline: 3px solid rgba(17, 24, 39, 0.14);
    border-color: #111827;
}

#io-imei-app button {
    min-height: 58px;
    padding: 0 22px;
    color: #fff;
    background: #111827;
    border: 1px solid #111827;
    border-radius: 8px;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

#io-imei-app button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

#io-imei-app .io-imei-hint {
    margin-top: 10px;
    color: #667085;
    font-size: 0.95rem;
    line-height: 1.5;
}

#io-imei-app .io-imei-legal {
    margin-top: 24px;
    color: #98a2b3;
    font-size: 0.82rem;
    line-height: 1.55;
    max-width: 760px;
}

#io-imei-app .io-imei-section,
#io-imei-app .io-imei-faq {
    padding: 32px 0;
}

#io-imei-app .io-imei-stack {
    display: grid;
    gap: 16px;
}

#io-imei-app .io-imei-result,
#io-imei-app .io-imei-cta,
#io-imei-app details {
    border: 1px solid rgba(31, 41, 51, 0.12);
    border-radius: 8px;
    background: #fff;
}

#io-imei-app .io-imei-result {
    display: grid;
    gap: 16px;
    padding: 18px;
}

#io-imei-app .io-imei-result[hidden],
#io-imei-app .io-imei-cta[hidden] {
    display: none;
}

#io-imei-app .io-imei-result.is-error {
    border-color: rgba(153, 27, 27, 0.25);
    color: #7f1d1d;
    background: #fff8f8;
}

#io-imei-app .io-imei-result img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 8px;
    background: #fafafa;
}

#io-imei-app .io-imei-kicker {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

#io-imei-app .io-imei-device-name {
    margin-top: 4px;
    color: #111827;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 750;
}

#io-imei-app .io-imei-device-meta {
    margin-top: 6px;
    color: #4b5563;
    line-height: 1.5;
}

#io-imei-app .io-imei-cta {
    display: grid;
    gap: 18px;
    align-items: center;
    padding: 20px;
    background: #f7f7f5;
}

#io-imei-app .io-imei-cta h2,
#io-imei-app .io-imei-faq h2 {
    color: #111827;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: 0;
}

#io-imei-app .io-imei-cta p {
    margin-top: 8px;
    color: #4b5563;
    line-height: 1.6;
}

#io-imei-app .io-imei-faq-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

#io-imei-app details {
    padding: 16px 18px;
}

#io-imei-app summary {
    color: #111827;
    font-weight: 700;
    cursor: pointer;
}

#io-imei-app details p {
    margin-top: 10px;
    color: #4b5563;
    line-height: 1.6;
}

@media (min-width: 720px) {
    #io-imei-app .io-imei-hero {
        padding: 76px 0 42px;
    }

    #io-imei-app .io-imei-control {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    #io-imei-app button {
        min-width: 150px;
    }

    #io-imei-app .io-imei-result {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        padding: 22px;
    }

    #io-imei-app .io-imei-cta {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 24px;
    }
}

/* --- Pay note + full report (Phase 3) --- */
#io-imei-app .io-imei-pay-note {
    margin-top: 10px;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Two-tier CTA (GSX premium, gated) --- */
#io-imei-app .io-imei-cta-tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
#io-imei-app .io-imei-tier {
    display: grid;
    gap: 8px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
#io-imei-app .io-imei-tier[hidden] { display: none; }
#io-imei-app .io-imei-tier-gsx {
    border-color: #111827;
    background: #fbfbfa;
}
#io-imei-app .io-imei-tier button {
    margin-top: 8px;
    justify-self: start;
}
@media (min-width: 720px) {
    #io-imei-app .io-imei-cta-tiers {
        grid-template-columns: 1fr 1fr;
    }
    #io-imei-app .io-imei-cta-tiers .io-imei-pay-note {
        grid-column: 1 / -1;
    }
}

#io-imei-app .io-imei-report {
    display: grid;
    gap: 24px;
    padding: 22px;
    border: 1px solid rgba(31, 41, 51, 0.12);
    border-radius: 8px;
    background: #fff;
}

#io-imei-app .io-imei-report[hidden] {
    display: none;
}

#io-imei-app .io-imei-report.is-error {
    border-color: rgba(153, 27, 27, 0.25);
    color: #7f1d1d;
    background: #fff8f8;
}

#io-imei-app .io-imei-report-head {
    display: grid;
    gap: 16px;
    align-items: center;
}

#io-imei-app .io-imei-report-head img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 8px;
    background: #fafafa;
}

#io-imei-app .io-imei-report-group h3 {
    margin: 0 0 12px;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#io-imei-app .io-imei-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}

#io-imei-app .io-imei-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-top: 1px solid rgba(31, 41, 51, 0.08);
}

#io-imei-app .io-imei-row:first-child {
    border-top: 0;
}

#io-imei-app .io-imei-row-label {
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.4;
}

#io-imei-app .io-imei-badge {
    flex: none;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 650;
    line-height: 1.3;
    white-space: nowrap;
}

#io-imei-app .io-imei-st-good    { color: #166534; background: #ecfdf3; }
#io-imei-app .io-imei-st-warn    { color: #92400e; background: #fffaeb; }
#io-imei-app .io-imei-st-bad     { color: #991b1b; background: #fef3f2; }
#io-imei-app .io-imei-st-neutral { color: #344054; background: #f2f4f7; }

@media (min-width: 720px) {
    #io-imei-app .io-imei-report {
        padding: 28px;
    }

    #io-imei-app .io-imei-report-head {
        grid-template-columns: auto minmax(0, 1fr);
    }
}
