body {
    background-color: white;
    color: black;
    margin: 0;
    font-family: "Lucida Grande", system-ui, -apple-system, Arial, sans-serif, sans-serif;
    font-size: 100%;
}

a, a:visited {
    text-decoration: none;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.center {
    margin: auto;
}

#title {
    color: white;
    font-size: 1.5em;
    line-height: 5rem;
    margin-left: 0.3125rem;
}

#navi {
    font-size: 1.25em;
    line-height: 5rem;
    padding-right: 1.25rem;
    margin-left: 0.3125rem;
}

#vpnwb_logo {
    padding: 0.625rem;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1.5rem;
}

#header {
    padding-left: 1.25rem;
    background-image: linear-gradient(to bottom right, #173A70, #102A56);
    width: 100%;
    height: 5rem;
    vertical-align: middle;
}

#footer {
    padding-right: 1.25rem;
    margin: 5rem 0 1.25rem 0;
    vertical-align: bottom;
    text-align: right;
}

.navi-link {
    color: #cbd8f0;
    min-width: 6.25rem;
    display: inline-block;
    text-align: center;
}

.navi-link:hover {
    color: #60A5FA;
}

.selected {
    color: #60A5FA !important;
}

.small {
    font-size: small;
}

#content, #content-small {
    background-image: linear-gradient(to bottom right, #457fca, #5691c8);
    color: white;
    width: 100%;
}

#content-small {
    height: 9.375rem;
    overflow: hidden;
}

.avc-image, .avc-image-pref {
    max-width: 100%;
    display: block;
}

.main {
    max-width: 50rem;
}

.text-title, h2 {
    font-size: 1.5em;
    font-weight: normal;
    color: #4499dd;
}

.mailto, .pagelink {
    color: #4499dd;
}

.mailto:hover, .pagelink:hover {
    color: #1155aa;
}

strong {
    display: block;
    margin-bottom: 0.625rem;
    margin-top: 0.625rem;
}

.text-content {
    color: #2b2c2d;
}

#imageframe {
    padding-top: 0.625rem;
}

/* What's New / changelog */
.release {
    margin: 1.5rem 0;
}

.release-title {
    color: #4499dd;
    font-size: 1.25em;
    font-weight: normal;
    margin-bottom: 0.25rem;
}

.release.upcoming .release-title {
    font-style: italic;
}

.release-date {
    color: #888888;
    font-size: 0.8em;
    margin-left: 0.5rem;
}

.release-notes {
    margin-top: 0.25rem;
}

.release-notes li {
    margin-bottom: 0.35rem;
}

/* Marketing page: hero + feature grid */
.cu-hero {
    text-align: center;
    padding: 48px 20px 56px;
}
.cu-hero img.cu-icon {
    width: 132px;
    height: 132px;
    margin-bottom: 18px;
    border-radius: 28px;
}
.cu-hero h1 {
    margin: 0 0 8px;
    font-size: 2.4rem;
    font-weight: 600;
}
.cu-hero .cu-tagline {
    margin: 0 auto;
    max-width: 620px;
    font-size: 1.2rem;
    line-height: 1.5;
    opacity: 0.95;
}
.cu-download {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 34px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background-color: #1155aa;
    border-radius: 10px;
}
.cu-download:hover { background-color: #0d4488; }
.cu-req {
    margin-top: 14px;
    font-size: 0.9rem;
    opacity: 0.85;
}
.cu-section { padding: 8px 0 16px; }
.cu-section h2 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 6px;
}
.cu-lead {
    text-align: center;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 720px;
}
.cu-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.cu-feature {
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 22px 24px;
    background-color: #fafafa;
}
.cu-feature h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: #1155aa;
}
.cu-feature p { margin: 0; line-height: 1.55; }
.cu-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin: 30px auto 8px;
    max-width: 720px;
    list-style: none;
    padding: 0;
    font-size: 0.92rem;
}
.cu-badges li {
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    padding: 6px 16px;
    background-color: #fafafa;
}
.cu-source {
    margin-top: 18px;
    background-color: #555c66;
    font-size: 1rem;
    padding: 11px 26px;
}
.cu-source:hover { background-color: #444a52; }

/* Media Queries */
@media only screen and (max-width: 850px) {
    .main, .avc-image-pref {
        max-width: 40.625rem;
    }

    /* Hide the title here (not at 660px): the 4-link nav collides with it
       sooner than the old 3-link nav did. */
    #title {
        display: none;
    }
}

@media only screen and (max-width: 750px) {
    .main, .avc-image-pref {
        max-width: 34.375rem;
    }
}

@media only screen and (max-width: 660px) {
    .main, .avc-image-pref {
        max-width: 28.125rem;
    }
}

@media only screen and (max-width: 720px) {
    .cu-features { grid-template-columns: 1fr; }
}

@media only screen and (max-width: 480px) {
    body {
        zoom: 0.80;
    }
}

@media only screen and (max-width: 400px) {
    body {
        zoom: 0.75;
    }
}

@media only screen and (max-width: 360px) {
    body {
        zoom: 0.70;
    }
}

@media only screen and (max-width: 340px) {
    body {
        zoom: 0.60;
    }
}

@media only screen and (max-width: 300px) {
    body {
        zoom: 0.50;
    }
}

@media only screen and (max-width: 230px) {
    body {
        zoom: 0.40;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body, .text-content, #content, #content-small {
        background-color: #2b2c2d;
        color: #bbbbbb;
    }

    #content, #content-small {
        background-image: linear-gradient(to bottom right, #1e3c72, #2a5298);
    }

    .cu-feature, .cu-badges li {
        background-color: #333435;
        border-color: #4a4b4c;
    }
    .cu-feature h3 { color: #6fa8e6; }
    .cu-download { background-color: #2a6fd0; }
    .cu-download:hover { background-color: #3f82e0; }
    .cu-source { background-color: #4a5159; }
    .cu-source:hover { background-color: #5a626b; }
}
