/* Granite Site Checkup (#1314). Builds on granite.css; phone first. */

.checkup-hero {
    padding: 3rem 1.25rem 2.5rem;
}

.checkup-eyebrow {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--granite-light);
    margin: 0 0 0.75rem;
}

.checkup-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.15;
    color: var(--granite-white);
    margin: 0 0 0.75rem;
}

.checkup-hero .granite-hero-description a {
    color: var(--granite-gold);
}

.checkup-hero .granite-cta {
    display: block;
    max-width: 22rem;
    margin: 0 auto;
}

.checkup-checks {
    background: var(--granite-white);
    color: var(--granite-text);
}

.checkup-checks h2 {
    color: var(--granite-dark);
}

.checkup-check-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 40rem;
    display: grid;
    gap: 1rem;
}

.checkup-check-list li {
    border-left: 4px solid var(--granite-gold);
    background: #fff;
    border-radius: 6px;
    padding: 1rem 1.1rem;
}

.checkup-check-list h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--granite-dark);
    margin: 0 0 0.35rem;
}

.checkup-check-list p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--granite-text);
    margin: 0;
}

/* Inputs at 16px or larger stop iOS zooming the page on focus. */
.checkup-request .contact-form-wrapper .form-group input {
    font-size: 1rem;
}

.checkup-request .contact-form-wrapper button[type="submit"] {
    width: 100%;
    min-height: 3rem;
}

/* === Domain form in the hero === */
.checkup-start {
    max-width: 32rem;
    margin: 1.5rem auto 0;
    text-align: left;
}

.checkup-start-label {
    display: block;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    color: var(--granite-light);
    margin-bottom: 0.4rem;
}

.checkup-start-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkup-start-row input {
    width: 100%;
    box-sizing: border-box;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    font-family: 'IBM Plex Sans', sans-serif;
    /* 16px or larger stops iOS zooming the page on focus. */
    font-size: 1.05rem;
    border: 2px solid var(--granite-mid);
    border-radius: 6px;
    background: #fff;
    color: var(--granite-dark);
}

.checkup-start-row input:focus {
    outline: none;
    border-color: var(--granite-gold);
}

.checkup-start-row .granite-cta {
    border: 0;
    cursor: pointer;
    min-height: 3rem;
    width: 100%;
}

.checkup-field-error,
.checkup-form-error {
    color: #ffb4a8;
    font-family: 'IBM Plex Sans', sans-serif;
    margin: 0.5rem 0 0;
}

.checkup-form-error ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}

.checkup-start-note {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.checkup-alt {
    text-align: center;
    margin: 1.5rem auto 0;
    font-family: 'IBM Plex Sans', sans-serif;
}

.checkup-alt a,
.checkup-share a,
.granite-contact-intro a,
.checkup-start-note a {
    color: var(--granite-gold);
}

.checkup-alt a {
    color: var(--granite-dark);
    font-weight: 500;
}

.checkup-notice {
    max-width: 32rem;
    margin: 0 auto 1.5rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--granite-gold);
    background: rgba(255, 255, 255, 0.06);
    color: var(--granite-white);
    font-family: 'IBM Plex Sans', sans-serif;
    text-align: left;
}

/* === Progress === */
.checkup-domain {
    word-break: break-word;
}

.checkup-progress {
    max-width: 32rem;
    margin: 1rem auto 0;
    text-align: left;
    font-family: 'IBM Plex Sans', sans-serif;
}

.checkup-progress-bar {
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.checkup-progress-bar span {
    display: block;
    height: 100%;
    background: var(--granite-gold);
    transition: width 0.4s ease;
}

.checkup-progress-now {
    color: var(--granite-white);
    font-weight: 500;
    margin: 0.85rem 0 0.2rem;
}

.checkup-progress-count {
    color: var(--granite-light);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.checkup-progress-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    color: var(--granite-light);
}

/* === Status chips === */
.checkup-chip {
    display: inline-block;
    min-width: 6.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.checkup-chip-pass { background: #dcefe2; color: #1f5131; }
.checkup-chip-warn { background: #fbefcf; color: #6b4e00; }
.checkup-chip-fail { background: #f9d9d4; color: #8a1c0d; }
.checkup-chip-unknown { background: #e6e7ea; color: #444b57; }

/* === Score === */
.checkup-score {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    border: 6px solid var(--granite-gold);
    margin: 0.5rem auto 1rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.checkup-score-good { border-color: #6fbf87; }
.checkup-score-fair { border-color: var(--granite-gold); }
.checkup-score-poor { border-color: #e2725f; }

.checkup-score-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--granite-white);
}

.checkup-score-out-of {
    font-size: 0.85rem;
    color: var(--granite-light);
}

.checkup-score-summary {
    max-width: 32rem;
    margin: 0 auto 1.5rem;
    color: var(--granite-white);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* === Results === */
.checkup-results {
    background: var(--granite-white);
    color: var(--granite-text);
}

.checkup-group {
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.checkup-group h2 {
    color: var(--granite-dark);
    text-align: left !important;
    font-size: 1.35rem !important;
}

.checkup-rows {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.checkup-row {
    background: #fff;
    border-radius: 6px;
    padding: 0.9rem 1rem;
    border-left: 4px solid #c9cbd1;
    font-family: 'IBM Plex Sans', sans-serif;
}

.checkup-row-pass { border-left-color: #6fbf87; }
.checkup-row-warn { border-left-color: var(--granite-gold); }
.checkup-row-fail { border-left-color: #e2725f; }

.checkup-row-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkup-row-head h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--granite-dark);
}

.checkup-row-detail {
    margin: 0.35rem 0 0;
    word-break: break-word;
}

.checkup-row-why {
    margin: 0.5rem 0 0;
    color: var(--granite-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === Share === */
.checkup-share {
    background: var(--granite-white);
    text-align: center;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--granite-text);
}

.checkup-share a {
    color: var(--granite-dark);
    font-weight: 500;
}

.checkup-share-url {
    font-family: 'IBM Plex Mono', monospace;
    word-break: break-all;
    color: var(--granite-dark);
}

@media (min-width: 769px) {
    .checkup-hero {
        padding: 5rem 2rem 4rem;
    }

    .checkup-title {
        font-size: 2.75rem;
    }

    .checkup-hero .granite-cta {
        display: inline-block;
    }

    .checkup-check-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 56rem;
    }

    .checkup-start-row {
        flex-direction: row;
    }

    .checkup-start-row .granite-cta {
        width: auto;
        white-space: nowrap;
    }
}
