
/* =========================================
   1. VARIABLES
   ========================================= */

:root {
    --muted: #5c5c5c;
    --default-spacing: 1rem;
    --default-border-radius: 10px;
    --default-font-size: 17px;
}


/* =========================================
   2. GENERAL STYLES
   ========================================= */

/* The page is at least as tall as the screen: main takes up the extra height. */
body {
    font: var(--default-font-size)/1.55 Inter, 'Segoe UI', sans-serif;
    color: #000;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

/* Core content of a page: a centred column */

.content {
    max-width: 800px;
    margin: 0 auto;
}

.content p {
    margin-top: 1rem;
    color: var(--muted);
}

main > .w-100 {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--muted);
    text-decoration: none;
}

a:hover {
    color: #000;
}

h1, h2, h3, strong {
    font-weight: 600;
}

h1 {
    max-width: 18ch;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.12;
}

h3 {
    font-size: 22px;
}

.section-title {
    text-align: center;
    font-size: 30px;
}


/* fit-content keeps the dotted line under the text when a link is a block or a flex item. */
main a, footer a {
    position: relative;
    width: fit-content;
    color: black;
    text-decoration: underline;
    text-decoration-style: solid;
    transition: color 0.3s ease;
}

main a::after, footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    border-bottom: 1px dotted currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

main a:hover, footer a:hover {
    color: var(--text-color-dark);
    text-decoration-color: transparent;
}

main a:hover::after, footer a:hover::after {
    opacity: 1;
}


/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */

#top {
    background: #dedede;
    background: linear-gradient(90deg, rgba(222, 222, 222, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(222, 222, 222, 1) 100%);
}

/* Logo (header and footer) */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 9px;
}

nav a {
    font-size: 15px;
}


/* Language selector */

.lang {
    display: flex;
    border: 1px solid #000;
    border-radius: 5px;
    overflow: hidden;
}

.lang a {
    padding: 5px 10px;
    font-size: 13px;
}

.lang [aria-current=true] {
    background: #000;
    color: #fff;
}


/* =========================================
   4. BANNER
   ========================================= */

#banner {
    background: #f2e1f1;
    background: linear-gradient(90deg, rgba(242, 225, 241, 1) 0%, rgba(255, 203, 194, 1) 30%, rgba(224, 206, 222, 1) 100%);
}

.lede {
    max-width: 60ch;
    color: var(--muted);
}


/* =========================================
   5. FEATURES SECTION
   ========================================= */

.feature-card {
    border-radius: 20px;
    padding: 30px;
    background: linear-gradient(45deg, #f1ddda, #fff);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.feature-card.lavender {
    background: linear-gradient(45deg, #f0e5ef 53%, #fff);
}

.feature-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Application icons */

.feature-card h3 img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}


/* Feature lists */

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.feature-card li {
    font-size: 15px;
    color: var(--muted);
}

.feature-card li strong {
    display: block;
    color: #000;
    font-size: 16px;
}


/* Feature text and screenshots (feature pages) */

.feature-card p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}

.feature-shot {
    display: block;
    width: 100%;
    height: auto;
    margin: auto 0;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}


/* Centred screenshot with its caption */

.screenshot {
    margin: 2rem auto 0;
    text-align: center;
}

.screenshot img {
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.caption {
    margin-top: 0.6rem;
    font-style: italic;
    font-size: 75%;
    color: var(--muted);
}


/* More information link */

.more {
    margin-top: auto;
}


/* Keyboard key: pressed down on hover */

.kbd {
    display: inline-block;
    min-width: 2.2em;
    padding: 3px 9px;
    border: 1px solid #b5b5b5;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff, #ececec);
    box-shadow: 0 3px 0 #a5a5a5, 0 4px 6px rgba(0, 0, 0, 0.15);
    font: 600 13px/1.4 Inter, 'Segoe UI', sans-serif;
    color: #333;
    text-align: center;
    cursor: default;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.kbd:hover {
    transform: translateY(3px);
    box-shadow: 0 0 0 #a5a5a5, 0 1px 2px rgba(0, 0, 0, 0.15);
    background: linear-gradient(180deg, #f4f4f4, #e2e2e2);
}


/* =========================================
   6. ABOUT SECTION
   ========================================= */

.about-text {
    max-width: 68ch;
    color: var(--muted);
}


/* =========================================
   7. PRICING SECTION
   ========================================= */

/* Full screen width: the section sits outside any .container. It grows to fill the screen's height, so it
   always touches the footer. */
#pricing {
    flex: 1 0 auto;
    background: #474747;
    background: linear-gradient(90deg, rgba(71, 71, 71, 1) 0%, rgba(156, 96, 153, 1) 50%, rgba(230, 113, 67, 1) 100%);
}

#pricing .section-title {
    color: #fff;
}

.pricing-block {
    height: 100%;
    padding: var(--default-spacing);
    margin-bottom: calc(var(--default-spacing) * 2);
    border-radius: var(--default-border-radius);
    background-color: #f2f2f2;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.pricing-block .plan-name {
    font-variant-caps: small-caps;
    margin-bottom: calc(var(--default-spacing) / 2);
}

.pricing-block .price {
    font-size: calc(var(--default-font-size) * 2);
    margin-bottom: calc(var(--default-spacing) / 2);
}

.pricing-block .price .tax {
    font-size: 50%;
}

.pricing-block .frequency {
    font-variant-caps: small-caps;
    padding-bottom: 20px;
    border-bottom: 1px solid #bbb;
}

/* Handwritten note next to the frequency, as if written on the page with a pen. */
.pricing-block .frequency-text {
    position: relative;
    display: inline-block;
}

.pricing-block .handwritten {
    position: absolute;
    left: calc(100% + 28px);
    top: -1.1em;
    width: max-content;
    max-width: 6.5em;
    font: 600 22px/1 Caveat, 'Segoe Print', cursive;
    font-variant-caps: normal;
    color: #1f4fa8;
    text-align: left;
    transform: rotate(-7deg);
    pointer-events: none;
}

.pricing-block .handwritten-arrow {
    position: absolute;
    left: -30px;
    top: 0.9em;
    width: 28px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pricing-block ul {
    margin: 0;
    padding: 0;
}

.pricing-block li {
    list-style: none;
    margin-bottom: var(--default-spacing);
}


/* =========================================
   8. FOOTER
   ========================================= */

footer {
    font-size: 14px;
    color: var(--muted);
    background: #dedede;
    background: linear-gradient(90deg, rgba(222, 222, 222, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(222, 222, 222, 1) 100%);
}

footer a {
    display: block;
    margin: 7px 0;
}

.footer-title {
    font-size: 15px;
    color: #000;
}

footer hr {
    border-color: #bbb;
}


/* =========================================
   9. RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 767px) {

    #banner {
        text-align: center;
    }

    h1, .lede {
        margin-inline: auto;
    }

    .feature-card {
        padding: 24px;
    }

    #top .container {
        justify-content: center !important;
    }

}

@media (max-width: 575.98px) {

    footer {
        text-align: center;
    }

    /* Links are fit-content blocks: center them with their margins. */
    footer a {
        margin-inline: auto;
    }

}

@media (prefers-reduced-motion: reduce) {

    .feature-card:hover, .pricing-block:hover {
        transform: none;
    }

}


/* =========================================
   9. SUBSCRIBE PAGE (subscribe-now.php)
   ========================================= */

.subscribe-option .subscribe-price {
    font-size: 28px;
    color: #000;
}

.subscribe-option .subscribe-price span {
    font-size: 15px;
    color: var(--muted);
}

main a.btn {
    width: auto;
    align-self: flex-start;
    text-decoration: none;
}

main a.btn-dark {
    color: #fff;
    background-color: #212529;
}

main a.btn::after {
    display: none;
}

/* "Download" buttons at the end of the home page's sections (params.php: download_button). */
.download-row {
    margin-top: 1.5rem;
    text-align: center;
}

main a.download-btn {
    display: inline-block;
    padding-left: 2rem;
    padding-right: 2rem;
}

main a.download-btn.btn-light {
    color: #000;
    background-color: #fff;
}
