* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

header {
    background: #0a0a0a;
    border-bottom: 3px solid #e63946;
    padding: 40px 20px;
    text-align: center;
}

.logo {
    max-width: 500px;
    margin: 0 auto 30px;
    display: block;
}

.tagline {
    margin-top: 0;
    font-size: 18px;
    color: #e63946;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    margin-bottom: 50px;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid #e63946;
    padding-bottom: 15px;
}

h3 {
    font-size: 18px;
    color: #e63946;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #d0d0d0;
}

/* Justified body text (added 2026-09-29). Hyphenation keeps the word gaps
   even in the narrower two-column boxes. Centred boxes stay centred. */
main p,
main li {
    text-align: justify;
    hyphens: auto;
}

.pricing p,
.contact-section p {
    text-align: center;
    hyphens: manual;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0;
}

.problem-box, .solution-box {
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #e63946;
}

.problem-box {
    background: rgba(230, 57, 70, 0.1);
}

.solution-box {
    background: rgba(46, 213, 115, 0.1);
    border-left-color: #2ed573;
}

.problem-box h2, .solution-box h2 {
    font-size: 20px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 8px;
}

.problem-box h2 {
    color: #e63946;
}

.solution-box h2 {
    color: #2ed573;
}

.problem-box h3 {
    color: #e63946;
}

.solution-box h3 {
    color: #2ed573;
}

.solution-box .spec-label {
    color: #2ed573;
}

/* Phone screenshots of the emulator's own web pages (added 2026-09-29) */
.screenshot-pair {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}

.screenshot-pair figure {
    width: 240px;
    max-width: 100%;
    text-align: center;
}

.screenshot-pair img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #333;
    display: block;
}

.screenshot-pair figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #a0a0a0;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.pricing {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(230, 57, 70, 0.05));
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e63946;
    margin: 30px 0;
}

.pricing-options .pricing {
    margin: 0;
}

.pricing .eligible-countries {
    font-size: 13px;
    color: #a0a0a0;
    line-height: 1.5;
}

/* "Ordering from somewhere else" quote box - added 2026-10-15 */
.quote-box h3 {
    color: #fff;
    font-size: 22px;
    margin: 10px 0;
}

.quote-box a {
    color: #e63946;
    font-weight: 600;
}

.quote-flags {
    font-size: 36px;
    letter-spacing: 4px;
    line-height: 1.3;
}

.quote-flags img,
.pricing img.flag {
    vertical-align: middle;
    border-radius: 3px;
}

.pricing img.flag {
    margin-right: 6px;
}

.quote-box a.quote-btn {
    display: inline-block;
    margin-top: 10px;
    background: #e63946;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
}

.quote-box a.quote-btn:hover {
    background: #ff4d5a;
}

.price {
    font-size: 48px;
    font-weight: bold;
    color: #e63946;
    margin: 15px 0;
}

.shipping {
    font-size: 14px;
    color: #a0a0a0;
    margin-top: 15px;
}

.shipping-uk {
    color: #2ed573;
    font-weight: 600;
}

.contact-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0;
}

.email-link {
    display: inline-block;
    font-size: 20px;
    color: #e63946;
    text-decoration: none;
    font-weight: 600;
    margin: 15px 0;
}

.email-link:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(230, 57, 70, 0.2);
    color: #e63946;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e63946;
}

.social-link:hover {
    background: #e63946;
    color: #fff;
}

.specs {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.spec-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #e63946;
    min-width: 120px;
}

.spec-value {
    color: #d0d0d0;
}

/* Ordered/unordered list styling for guide-style pages (install instructions, etc.) - added 2026-09-02 */
main ol, main ul {
    margin: 0 0 15px 22px;
}

main li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #d0d0d0;
}

main ol li::marker {
    color: #e63946;
    font-weight: 600;
}

.step-block {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #e63946;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
}

.step-block h3 {
    margin-top: 0;
}

.step-block ol, .step-block ul {
    margin-bottom: 0;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e63946;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #e63946;
}

/* Language switcher on translated pages (install guide EN/DE/FR/IT/NL, 2026-10-28) */
.lang-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.lang-switch a,
.lang-switch span {
    color: #a0a0a0;
    text-decoration: none;
}

.lang-switch a:hover {
    color: #e63946;
}

.lang-switch .active {
    color: #e63946;
    font-weight: 600;
}

/* Simple nav bar - added 2026-09-02 now that the site is growing beyond one page */
nav {
    background: #0a0a0a;
    border-bottom: 1px solid #333;
    padding: 14px 20px;
    text-align: center;
}

nav a {
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 4px;
    color: #d0d0d0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin: 0 16px;
    transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: #e63946;
}

/* Buy button in the top links - added 2026-10-11 */
nav a.nav-buy {
    background: #e63946;
    color: #fff;
    padding: 7px 16px;
    border-radius: 6px;
}

nav a.nav-buy:hover {
    background: #ff4d5a;
    color: #fff;
}

footer {
    background: #0a0a0a;
    border-top: 1px solid #333;
    padding: 30px 20px;
    text-align: center;
    color: #808080;
    font-size: 14px;
}

@media (max-width: 768px) {
    h2 {
        font-size: 24px;
    }

    .problem-solution {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .price {
        font-size: 36px;
    }

    .quote-flags {
        font-size: 24px;
        letter-spacing: 0;
    }

    .quote-flags img {
        width: 32px;
        height: 24px;
    }

    .quote-box h3 {
        font-size: 19px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        font-size: 14px;
        padding: 10px 15px;
    }

    header {
        padding: 30px 20px;
    }

    .logo {
        max-width: 350px;
    }

    nav a {
        margin: 0 10px;
        font-size: 13px;
    }
}
