/* --- MUUTTUJAT --- */
:root {
    --primary-color: #1a5e6d;
    --primary-hover: #134652;
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #f9fbfb;
    --white: #ffffff;

    --card-blue: #dcf2fd;
    --card-green: #e6f6eb;
    --card-orange: #ffede0;
    --card-purple: #f4ebfa;
    --card-yellow: #fdf5d3;
    --card-pink: #fce8e8;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- NAVIGOINTI --- */
.navbar {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-subtext {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: -4px;
    letter-spacing: 0.5px;
}

/* --- HERO-OSIO & LAITTEIDEN ASETTELU --- */
.hero {
    padding: 80px 0;
    background-color: var(--white);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.device-mockups {
    position: relative;
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.browser-frame {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.browser-header {
    background: #f3f4f6;
    padding: 10px 12px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red {
    background-color: #ef4444;
}

.dot.yellow {
    background-color: #f59e0b;
}

.dot.green {
    background-color: #10b981;
}

.browser-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.phone-screenshot {
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 180px;
    height: auto;
    border: 6px solid var(--text-main);
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* --- OMINAISUUDET --- */
.features {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.card-blue {
    background-color: var(--card-blue);
}

.card-green {
    background-color: var(--card-green);
}

.card-orange {
    background-color: var(--card-orange);
}

.card-purple {
    background-color: var(--card-purple);
}

.card-yellow {
    background-color: var(--card-yellow);
}

.card-pink {
    background-color: var(--card-pink);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--text-main);
}

.badge {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

/* --- SOVELLUSKAUPPOJEN PAINIKKEET --- */
.store-badges {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.store-badges .badge {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.store-badges .badge img {
    height: 44px;
    width: auto;
    border-radius: 6px;
}

.badge-premium {
    background-color: #ffd700;
    color: #333;
}

/* --- HINNASTO --- */
.pricing {
    padding: 80px 0;
    background-color: #f9fafa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

.premium-card {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pricing-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #333;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 24px 0;
    color: #111;
}

.price span {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    text-align: left;
    flex-grow: 1;
}

.features-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: #444;
    border-bottom: 1px solid #eee;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.btn-outline {
    display: inline-block;
    padding: 14px 24px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--white);
    padding: 40px 0;
    border-top: 1px solid #eaeaea;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.footer-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* --- MOBIILI (Responsiivisuus) --- */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 2.2rem;
    }

    .phone-screenshot {
        width: 130px;
        right: -10px;
        bottom: -20px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Keskitetään kauppojen painikkeet mobiilissa, kun tekstitkin on keskitetty */
    .store-badges {
        justify-content: center;
    }
}