/* =====================================================
   SERVICE, PRODUCT AND REPORT ABUSE PAGES
   Small additions to the shared .cmds (ssl-domains.css)
   and .cmco (company.css) design. Load after both.
===================================================== */

/* Cards */
.cmpp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.cmpp-cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cmpp-card h3 {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.cmpp-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

/* Hero illustration */
@media (min-width: 1101px) {
    .cmds-hero-visual > .cmpp-hero-img {
        flex: none;
        width: 108%;
        max-width: 720px;
    }
}

/* Cards in the same row as a RECOMMENDED ribbon keep their contents level with it */
@media (min-width: 1101px) {
    .cmpp-plans:has(> :nth-child(-n + 4).is-popular)
        > :nth-child(-n + 4):not(.is-popular),
    .cmpp-plans:has(> :nth-child(n + 5).is-popular)
        > :nth-child(n + 5):not(.is-popular) {
        padding-top: 36px;
    }
}

/* All plans table (dark band) */
.cmds-table.cmpp-all-table {
    min-width: 900px;
    table-layout: auto;
}
.cmpp-all-table :is(th, td) {
    padding: 17px 18px;
    border-bottom: 1px solid #e8eff7;
    font-size: 14px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}
.cmpp-all-table thead th {
    background: #f4f8fd;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}
.cmpp-all-table thead i {
    margin-right: 6px;
    color: var(--blue);
}
.cmpp-all-table tbody th {
    font-weight: 700;
}
.cmds-table.cmpp-all-table tr > th:first-child {
    width: auto;
}
.cmpp-all-table strong {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.cmpp-all-table tr.is-popular :is(th, td) {
    background: #eef7ff;
}
.cmpp-all-table tr:last-child :is(th, td) {
    border-bottom: 0;
}
.cmpp-all-table .cmds-table-order {
    margin: 0;
}
.cmpp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

/* Technology row and locations (dark band) */
.cmpp-tech {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    -webkit-mask: linear-gradient(
        90deg,
        transparent,
        #000 9%,
        #000 91%,
        transparent
    );
    mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
#cmsv-tech {
    overflow-x: clip;
}
.cmpp-tech-row {
    display: flex;
    width: max-content;
    animation: cmpp-drift 70s linear infinite;
}
.cmpp-tech-row:nth-child(2) {
    animation-direction: reverse;
    animation-duration: 82s;
}
.cmpp-tech-row ul {
    display: flex;
    flex: none;
    justify-content: space-around;
    min-width: 100vw;
}
.cmpp-tech-row li {
    display: flex;
    flex: none;
    gap: 16px;
    align-items: center;
    margin-right: 18px;
    padding: 12px 26px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
}
.cmpp-tech-row span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #fff;
}
.cmpp-tech-row img {
    display: block;
    width: 40px;
    height: 40px;
}
.cmpp-tech-row:hover {
    animation-play-state: paused;
}
@keyframes cmpp-drift {
    to {
        transform: translateX(-50%);
    }
}
/* Reduced motion: no movement, every logo visible in a wrapped grid */
@media (prefers-reduced-motion: reduce) {
    .cmpp-tech {
        width: auto;
        margin-left: 0;
        -webkit-mask: none;
        mask: none;
    }
    .cmpp-tech-row {
        width: auto;
        animation: none;
    }
    .cmpp-tech-row ul {
        flex: 1;
        flex-wrap: wrap;
        gap: 14px;
        justify-content: center;
        min-width: 0;
    }
    .cmpp-tech-row li {
        margin: 0;
    }
    .cmpp-tech-row ul[aria-hidden] {
        display: none;
    }
}
.cmpp-locations {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.cmpp-locations a {
    display: grid;
    gap: 4px;
    padding: 26px 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.cmpp-locations a:hover {
    border-color: #7cc0ff;
    background: rgba(124, 192, 255, 0.14);
}
.cmpp-locations a:focus-visible {
    outline: 3px solid #7cc0ff;
    outline-offset: 2px;
}
.cmpp-locations i {
    margin-bottom: 14px;
    color: #7cc0ff;
    font-size: 24px;
}
.cmpp-locations strong {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.cmpp-locations span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}
.cmpp-locations small {
    margin-top: 12px;
    color: #7cc0ff;
    font-size: 13px;
    font-weight: 600;
}

/* Steps */
.cmpp-steps {
    grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
}

/* Two-column comparison */
.cmpp-table {
    max-width: 920px;
    margin-inline: auto;
}
.cmpp-table .cmds-table {
    min-width: 0;
}

/* Animated hero (Managed VPS) */
.cmpp-lottie {
    width: min(100%, 520px);
    aspect-ratio: 1;
    margin-inline: auto;
}
.cmpp-lottie svg {
    display: block;
}

/* Report Abuse */
.cmpp-report {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    scroll-margin-top: 100px;
}
.cmpp-types {
    display: grid;
    gap: 6px;
}
.cmpp-types {
    padding: 18px;
    border: 1px solid #e2eaf4;
    border-radius: 18px;
    background: #fff;
}
.cmpp-types > p {
    padding: 2px 14px 8px;
    font-size: 13px;
    font-weight: 600;
}
.cmpp-types a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 500;
}
.cmpp-types a:hover {
    background: #eef5fd;
}
.cmpp-types a[aria-current] {
    border-color: #cfe3f7;
    background: #e7f2ff;
    color: var(--blue);
    font-weight: 600;
}
.cmpp-types i {
    width: 20px;
    color: var(--blue);
    text-align: center;
}
.cmpp-form {
    padding: 32px;
    border: 1px solid #e2eaf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 32, 61, 0.04);
}
.cmpp-form h2 {
    margin-bottom: 6px;
    font-size: 24px;
    letter-spacing: -0.02em;
}
.cmpp-form-head {
    display: flex;
    gap: 16px;
}
.cmpp-form-head .cmco-link-icon {
    --card-accent: var(--blue);
    --card-tint: #e7f2ff;
    flex: none;
    margin: 0;
}
.cmpp-form-head p {
    max-width: 70ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
.cmpp-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.cmpp-field {
    min-width: 0;
}
.cmpp-field.is-wide {
    grid-column: 1 / -1;
}
.cmpp-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}
.cmpp-field :is(input, textarea) {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c3d3e6;
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 15px;
}
.cmpp-field textarea {
    min-height: 120px;
    resize: vertical;
}
.cmpp-field :is(input, textarea):focus-visible {
    border-color: var(--blue);
    outline: 3px solid rgba(8, 120, 212, 0.25);
    outline-offset: 0;
}
.cmpp-field [aria-invalid="true"] {
    border-color: #c62f36;
}
.cmpp-error {
    margin-top: 5px;
    color: #b4232a;
    font-size: 13px;
}
.cmpp-check {
    display: flex;
    grid-column: 1 / -1;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.6;
}
.cmpp-check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}
.cmpp-trap {
    position: absolute;
    left: -9999px;
}
.cmpp-notice {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #e7f2ff;
    font-size: 14px;
    line-height: 1.6;
}
.cmpp-notice.is-done {
    background: #dff5ec;
}
.cmpp-notice.is-error {
    background: #fdeaea;
}
.cmpp-form .cmds-btn {
    margin-top: 24px;
    border: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .cmpp-cards,
    .cmpp-cards-4,
    .cmpp-steps,
    .cmpp-locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 850px) {
    .cmpp-report {
        grid-template-columns: minmax(0, 1fr);
    }
    .cmpp-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cmpp-lottie {
        width: min(100%, 360px);
    }
}
@media (max-width: 600px) {
    .cmpp-cards,
    .cmpp-cards-4,
    .cmpp-steps,
    .cmpp-locations,
    .cmpp-fields {
        grid-template-columns: minmax(0, 1fr);
    }
    .cmpp-form {
        padding: 22px 18px;
    }
    .cmpp-types {
        padding: 10px;
    }
    .cmpp-types > p {
        grid-column: 1 / -1;
    }
    .cmpp-form-head {
        display: block;
    }
    .cmpp-form-head .cmco-link-icon {
        margin-bottom: 12px;
    }
    .cmpp-tech {
        gap: 12px;
    }
    .cmpp-tech-row {
        animation-duration: 55s;
    }
    .cmpp-tech-row:nth-child(2) {
        animation-duration: 64s;
    }
    .cmpp-tech-row li {
        gap: 12px;
        margin-right: 12px;
        padding: 8px 18px 8px 8px;
        font-size: 15px;
    }
    .cmpp-tech-row span {
        width: 50px;
        height: 50px;
    }
    .cmpp-tech-row img {
        width: 32px;
        height: 32px;
    }
    .cmpp-types a {
        padding: 10px;
        font-size: 13px;
    }
    .cmpp-table .cmds-table :is(th, td) {
        padding-inline: 10px;
        font-size: 13px;
    }
    .cmpp-table
        :is(
            .cmds-table-corner small,
            .cmds-table-plan small,
            .cmds-table-plan-icon,
            .cmds-table-feature i
        ) {
        display: none;
    }
    .cmpp-table :is(.cmds-table-plan, td) {
        width: 92px;
    }
}
