/*
 * cloud-servers.css
 * Page-specific styles for /cloud-servers (VPS plans).
 * Loaded only on that page via $pageCss in cloud-servers.php.
 * Builds on the shared .product_card / .inner_grid styles in main.css.
 */

/* ---- Section rhythm: tighter than the sitewide 60px gaps ---- */
.vps_section {
    gap: 28px;
}
.vps_section_intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.vps_section_intro p {
    margin: 10px 0 0;
}

/* ---- Hero band (VPS and dedicated pages): navy with lime accents, white text ---- */
.vps_hero {
    background-color: #2f4655;
    background-image:
        radial-gradient(circle at 88% 12%, rgba(173, 209, 58, 0.22) 0, rgba(173, 209, 58, 0) 38%),
        linear-gradient(135deg, #36525f 0%, #2f4655 45%, #22394a 100%);
    border-bottom: 7px solid #add13a;
    overflow: hidden;
    padding-top: 64px;
    padding-bottom: 72px;
}
/* Dot grid like server status lights, fading in from the right */
.vps_hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 45%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.6px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 100%);
    mask-image: linear-gradient(to left, #000 0%, transparent 100%);
    pointer-events: none;
}
.vps_hero > .inner_grid {
    position: relative;
    z-index: 1;
}
.vps_hero .ariane {
    margin: 0 0 10px;
    color: #add13a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.vps_hero h1 {
    margin-top: 0;
    color: #fff;
}
.vps_hero .larger_paragraph {
    max-width: 1150px;
    font-size: 25px;
    line-height: 42px;
    color: #dbe5ea;
}
.vps_hero .vps_hero_points li {
    color: #fff;
}
.vps_hero .vps_hero_points .fa {
    color: #add13a;
}
.vps_hero .vps_hero_actions .blue_button {
    background: #add13a;
    border-color: #add13a;
    color: #2f4655;
    font-weight: 600;
}
.vps_hero .vps_hero_actions .blue_button:hover {
    background: #c3e05c;
    border-color: #c3e05c;
    color: #2f4655;
}
.vps_hero .vps_hero_actions .gray_button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}
.vps_hero .vps_hero_actions .gray_button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ---- Hero ---- */
.vps_hero_points {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}
.vps_hero_points li {
    font: normal normal 600 17px/26px Montserrat;
    color: #2f4655;
}
.vps_hero_points .fa {
    color: #8fb12a;
    margin-right: 8px;
}
.vps_hero_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}
.vps_hero_actions .blue_button,
.vps_hero_actions .gray_button {
    padding: 14px 32px;
    font: normal normal 600 17px/22px Montserrat;
    border-radius: 50px;
}

/* main.css sets button { width: 100% } sitewide; these buttons size to content */
.vps_picker_buttons button,
button.vps_more_toggle {
    width: auto;
}

/* ---- App picker (sits directly above the plan cards) ---- */
.vps_picker {
    width: 100%;
    max-width: 1600px;
    background: #f4f7f9;
    border-radius: 24px;
    padding: 18px 24px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}
.vps_picker_label {
    flex: 1 1 100%;
    margin: 0;
    font: normal normal 600 16px/22px Montserrat;
    color: #2f4655;
}
/* App cards: logo + name + short description (Bluehost-style stack selector) */
.vps_picker_buttons {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.vps_picker_buttons .vps_app_card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 16px;
    border: 2px solid #d3dbe1;
    border-radius: 16px;
    background: #fff;
    color: #2f4655;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.vps_picker_buttons .vps_app_card:hover {
    border-color: #add13a;
}
.vps_picker_buttons .vps_app_card[aria-pressed="true"] {
    background: #2f4655;
    border-color: #2f4655;
    color: #fff;
}
.vps_app_icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #2f4655;
}
.vps_app_card[aria-pressed="true"] .vps_app_icon {
    color: #add13a;
}
.vps_app_text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.vps_app_name {
    font: normal normal 600 16px/20px Montserrat;
}
.vps_app_desc {
    font: normal normal normal 13px/18px Montserrat;
    color: #5b6f7c;
}
.vps_app_card[aria-pressed="true"] .vps_app_desc {
    color: #d3dde3;
}
/* Brand logos (see _audit/logo-credits.md). Claude and OpenClaw marks read on
   light and dark. n8n: full logo, min 100px wide; black version on the white
   card, white version once the card is selected (navy background). */
.vps_app_card img {
    display: block;
    flex: 0 0 auto;
}
.vps_app_card .vps_logo_on_dark {
    display: none;
}
.vps_app_card[aria-pressed="true"] .vps_logo_on_light {
    display: none;
}
.vps_app_card[aria-pressed="true"] .vps_logo_on_dark {
    display: block;
}
.vps_app_card[data-app="n8n"] {
    padding-left: 22px;
}
.vps_picker_note {
    flex: 1 1 100%;
    margin: 0;
    font-size: 16px;
    line-height: 26px;
}

/* ---- Plan cards ---- */
.vps_cards {
    justify-content: center;
    gap: 30px;
}
.vps_cards .product_card {
    position: relative;
    max-width: 480px;
    margin-bottom: 0;
}
.product_card.vps_featured {
    border: 2px solid #add13a;
}
.vps_featured_banner {
    display: none;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 20px;
    background: #add13a;
    color: #2f4655;
    font: normal normal 700 12px/18px Montserrat;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.vps_featured .vps_featured_banner {
    display: block;
}
.vps_cards .product_card_content {
    padding: 32px 32px 28px;
}
.vps_cards .subtitle {
    margin: 4px 0 10px;
    min-height: 52px;
}
.vps_type_label {
    display: inline-block;
    margin: 0 0 6px;
    padding: 2px 10px;
    border-radius: 12px;
    background: #e6eef2;
    color: #2f4655;
    font: normal normal 600 12px/20px Montserrat;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vps_cards .blue_button {
    display: block;
    margin-top: 14px;
}
.vps_specs {
    list-style: none;
    margin: 20px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #e3e8ec;
}
.vps_specs li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin: 0 0 9px;
    font: normal normal normal 15px/22px Montserrat;
    color: #314f63;
}
.vps_specs li .fa {
    flex: 0 0 auto;
    color: #8fb12a;
}
.vps_specs li.vps_spec_protect {
    font-weight: 600;
    color: #2f4655;
}

/* ---- Show more / fewer plans ---- */
.vps_more_toggle_row {
    width: 100%;
    display: flex;
    justify-content: center;
}
button.gray_button {
    border: none;
    cursor: pointer;
}
.vps_more_toggle .fa {
    margin-left: 8px;
}
.vps_price_note {
    width: 100%;
    margin: 0;
    text-align: center;
}

/* ---- Tiles: apps, included features, data centres ---- */
.vps_tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1600px;
}
.vps_tile {
    background: #fff;
    border: 1px solid #dfe5ea;
    border-radius: 20px;
    padding: 26px 26px 22px;
    box-sizing: border-box;
}
.vps_tile_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #2f4655;
    color: #add13a;
    font-size: 22px;
    margin-bottom: 14px;
}
/* Brand logo in place of the navy icon box (light background, so the
   standard/colour version of each logo is used) */
.vps_tile_logo {
    display: flex;
    align-items: center;
    height: 46px;
    margin-bottom: 14px;
}
.vps_tile_logo img {
    width: auto;
    max-height: 46px;
}
.vps_chips span img {
    display: block;
}
.vps_tile h3 {
    margin: 0 0 8px;
    font: normal normal 600 21px/28px Montserrat;
    color: #2f4655;
}
.vps_tile p {
    margin: 0;
    font-size: 16px;
    line-height: 25px;
}
.vps_tile .vps_tile_meta {
    margin-top: 12px;
    font: normal normal 600 14px/20px Montserrat;
    color: #6f8f1c;
}
.vps_tile ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vps_tile ul li {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 24px;
}
.vps_tile ul .fa {
    color: #8fb12a;
    margin-right: 8px;
}
.vps_chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.vps_chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: #f1f4f6;
    color: #2f4655;
    font: normal normal 600 14px/20px Montserrat;
}
.vps_footnote {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #5b6f7c;
}

/* ---- Comparison table ---- */
.vps_compare_wrap {
    width: 100%;
    overflow-x: auto;
}
.vps_compare {
    width: 100%;
    min-width: 680px;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dfe5ea;
    border-radius: 20px;
    overflow: hidden;
}
.vps_compare th,
.vps_compare td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e8edf0;
    font: normal normal normal 15px/22px Montserrat;
    color: #314f63;
}
.vps_compare thead th {
    background: #2f4655;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}
.vps_compare thead th.vps_compare_us {
    background: #8fb12a;
    color: #2f4655;
}
.vps_compare tbody th {
    font-weight: 600;
    color: #2f4655;
    width: 18%;
}
.vps_compare td.vps_compare_us {
    background: #f6faec;
    font-weight: 600;
    color: #2f4655;
}
.vps_compare tr:last-child th,
.vps_compare tr:last-child td {
    border-bottom: none;
}

/* ---- FAQ (native details/summary, no JS needed) ---- */
.vps_faq {
    width: 100%;
}
.vps_faq details {
    border-bottom: 1px solid #dde3e7;
    padding: 18px 0;
}
.vps_faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font: normal normal 600 20px/28px Montserrat;
    color: #2f4655;
}
.vps_faq summary::-webkit-details-marker {
    display: none;
}
.vps_faq summary::after {
    content: "+";
    font-weight: 400;
    font-size: 26px;
    line-height: 26px;
    color: #add13a;
}
.vps_faq details[open] summary::after {
    content: "\2212";
}
.vps_faq details p {
    margin: 12px 0 0;
}

@media only screen and (max-width: 1100px) {
    .vps_tiles,
    .vps_picker_buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media only screen and (max-width: 420px) {
    .vps_picker_buttons {
        grid-template-columns: 1fr;
    }
}
@media only screen and (max-width: 700px) {
    .vps_hero {
        padding-top: 40px;
        padding-bottom: 48px;
    }
    .vps_hero .larger_paragraph {
        font-size: 18px;
        line-height: 29px;
    }
    .vps_hero::after {
        width: 70%;
    }
    .vps_tiles {
        grid-template-columns: 1fr;
    }
    .vps_picker {
        padding: 20px;
    }
    .vps_cards .subtitle {
        min-height: 0;
    }
    .vps_faq summary {
        font-size: 17px;
        line-height: 24px;
    }
    .vps_hero_points li {
        font-size: 15px;
    }
}

/* Show more plans: navy with a lime edge so it stands out from the grey page */
button.vps_more_toggle {
    background: #2f4655;
    color: #fff;
    border: 2px solid #add13a;
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(47, 70, 85, 0.25);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
button.vps_more_toggle:hover,
button.vps_more_toggle:focus-visible {
    background: #add13a;
    color: #0b1215;
    transform: translateY(-2px);
}
