@charset "utf-8";
/* Enigma Mail – startsidan, Om, Support och felsidan (gamla css/style.css, samma utseende). */

html { background: #000; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #1a1a40, #000);
    color: #ffffff;
    min-height: 100vh;
}

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.logo { text-align: center; padding: 20px 0; }
.logo img { max-height: 200px; width: auto; height: auto; }

.hero { text-align: center; padding: 0 20px 20px; max-width: 1100px; margin: 0 auto; }
.hero h1 { font-size: 3em; margin: .4em 0; }
.hero p { font-size: 1.5em; margin-top: 10px; }

.buttons { margin-top: 30px; }

.button {
    display: inline-block;
    text-decoration: none;
    padding: 15px 30px;
    margin: 10px;
    font: bold 1rem Arial, sans-serif;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}
.button-primary { background: linear-gradient(45deg, #0ff, #00f); color: #000; }
.button-primary:hover { background: linear-gradient(45deg, #00f, #0ff); color: #fff; }
.button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.features, .benefits, .pricing { padding: 50px 20px; text-align: center; }
.features h2, .benefits h2, .pricing h2, .testimonials h2 { font-size: 2em; margin-bottom: 20px; }

.feature-cards, .benefit-cards, .pricing-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #1a1a40;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    flex: 1 1 260px;
    max-width: 360px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-10px); }
.card-icon { font-size: 2em; margin-bottom: 10px; }

.testimonials { padding: 50px 20px; background: #111; text-align: center; }
.testimonial-slider { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.testimonial { max-width: 300px; }

ol.villkor { list-style: none; padding: 0; font-size: 1.15em; line-height: 1.6; max-width: 800px; margin: 0 auto; }
ol.villkor li { margin-bottom: 8px; }

footer { padding: 30px 20px; background: #000; color: #999; text-align: center; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: #999; text-decoration: none; margin: 0 10px; transition: color 0.3s ease; }
.footer-links a:hover { color: #0ff; }

/* ---- inloggningsrutan ---- */
input[type=text], input[type=email], input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    inset: 0;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}
.modal.oppen { display: block; }

.modal-content {
    background-color: #fefefe;
    color: #000;
    margin: 5% auto 15% auto;
    border: 1px solid #888;
    width: 80%;
    max-width: 650px;
}
.modal-content form .button { width: 50%; min-width: 180px; margin: 12px 0 0; }

.imgcontainer { text-align: center; margin: 24px 0 12px 0; position: relative; }
img.avatar { height: 150px; width: auto; border-radius: 50%; }
.container { padding: 16px; }

.close {
    position: absolute;
    right: 25px;
    top: 0;
    background: none;
    border: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.close:hover, .close:focus { color: red; }

.modal-besked { text-align: center; font-size: 1.1em; line-height: 1.5; margin: 0 0 12px; }

.animate { animation: animatezoom 0.6s; }
@keyframes animatezoom { from { transform: scale(0) } to { transform: scale(1) } }

/* ---- bannern "Inloggningen misslyckades" ---- */
#messageBanner {
    visibility: hidden;
    position: fixed;
    top: 0; left: 0; right: 0;
    min-height: 50px;
    box-sizing: border-box;
    background-color: #ff4d4d;
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: normal;
    z-index: 1000;
    opacity: 0;
    transition: opacity 1s ease-in-out, visibility 1s;
}
#messageBanner.show { visibility: visible; opacity: 1; }

@media (max-width: 700px) {
    .hero h1 { font-size: 2em; }
    .hero p { font-size: 1.15em; }
    .features h2, .benefits h2, .pricing h2, .testimonials h2 { font-size: 1.5em; }
    .modal-content { width: calc(100% - 32px); }
    .modal-content form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .card, .animate { transition: none; animation: none; }
    .card:hover { transform: none; }
}
