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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header — sulautuu heroon */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 72px;
    gap: 40px;
}

.logo, .footer-logo {
    font-size: 21px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.3px;
    margin-right: auto;
}

.logo span, .footer-logo span { color: #1a5276; }

nav { display: flex; gap: 32px; }

nav a {
    font-size: 15px;
    color: #555;
    font-weight: 500;
    transition: color 0.15s;
}
nav a:hover { color: #1a1a2e; }

.nav-cta {
    background: #1a5276;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 24px;
    transition: background 0.15s;
    white-space: nowrap;
}
.nav-cta:hover { background: #15456a; }

/* ============================================
   HERO
   ============================================ */
.hero {
    background: #ede7f6;
    padding: 110px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 580px;
}

/* Orgaaniset deko-ympyrät */
.hero-deco-1 {
    position: absolute;
    top: -100px;
    right: -60px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 70px solid rgba(255,255,255,0.45);
    pointer-events: none;
}

.hero-deco-2 {
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 55px solid rgba(255,255,255,0.3);
    pointer-events: none;
}

.hero-deco-3 {
    position: absolute;
    top: 35%;
    right: 38%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-left h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.05;
    color: #1a1a2e;
    margin-bottom: 22px;
}

.hero-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 28px;
    line-height: 1.65;
    max-width: 400px;
}

.hero-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #1a1a2e;
    font-weight: 600;
}

.hero-bullets li::before {
    content: "\2713";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #1a5276;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
}

.hero-trust {
    font-size: 14px;
    color: #888;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.hero-trust strong { color: #1a1a2e; }

/* ============================================
   HERO CARD / LASKURI
   ============================================ */
.hero-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 16px 56px rgba(0,0,0,0.08);
    overflow: visible;
}

.hero-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #888;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field { margin-bottom: 28px; }

.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-euro {
    display: flex;
    align-items: center;
    border: 2px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    background: #f6f6f8;
    margin-bottom: 14px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input-euro:focus-within {
    border-color: #1a5276;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26,82,118,0.08);
}

.input-euro input {
    border: none;
    padding: 18px 20px;
    font-size: 28px;
    font-weight: 700;
    font-family: inherit;
    color: #1a1a2e;
    width: 100%;
    outline: none;
    background: transparent;
}

.input-suffix {
    padding: 18px 22px;
    font-size: 20px;
    color: #bbb;
    font-weight: 500;
}

/* ============================================
   SLIDER — valkoinen pallukka, toborrow-tyyli
   ============================================ */
/* Slider wrapper */
.slider-wrap {
    position: relative;
    padding-bottom: 4px;
}

.slider-bubble {
    position: absolute;
    top: -36px;
    background: #1a5276;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
    z-index: 10;
}

.slider-bubble::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1a5276;
}

.slider-wrap:hover .slider-bubble,
.slider-wrap:active .slider-bubble,
input[type="range"]:focus + .slider-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 99px;
    background: #e4e4e8;
    outline: none;
    cursor: pointer;
    margin: 4px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 0px 0px 1px rgba(0,0,0,0.04);
    cursor: pointer;
    margin-top: -11px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    border-color: #1a5276;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18), 0 0 0 4px rgba(26,82,118,0.08);
}

input[type="range"]::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb:hover {
    border-color: #1a5276;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 99px;
}

input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 99px;
    background: #e4e4e8;
}

input[type="range"]::-moz-range-progress {
    background: #1a5276;
    height: 8px;
    border-radius: 99px;
}

/* ============================================
   BUTTON
   ============================================ */
.btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: #1a5276;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, transform 0.1s;
    margin: 8px auto 0;
    animation: btnGlow 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 5s ease-in-out infinite;
}
.btn-primary:hover {
    background: #15456a;
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(26, 82, 118, 0.7);
}

@keyframes btnGlow {
    0%, 100% {
        box-shadow: 0 2px 15px rgba(26, 82, 118, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 30px rgba(26, 82, 118, 0.6), 0 0 40px rgba(26, 82, 118, 0.3);
        transform: scale(1.02);
    }
}
@keyframes btnShine {
    0%, 100% { left: -75%; }
    50% { left: 125%; }
}

.form-disclaimer {
    font-size: 14px;
    color: #bbb;
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}
.form-disclaimer a { color: #1a5276; text-decoration: underline; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ============================================
   HOW
   ============================================ */
.how {
    padding: 64px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.how-step {
    padding: 28px;
    border-left: 3px solid #e8e8e8;
    transition: border-color 0.2s;
}

.how-step:hover { border-left-color: #1a5276; }

.how-num {
    font-size: 36px;
    font-weight: 700;
    color: #e4e4e4;
    display: block;
    line-height: 1;
    margin-bottom: 14px;
    transition: color 0.2s;
}

.how-step:hover .how-num { color: #1a5276; }

.how-step h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.how-step p {
    font-size: 16px;
    color: #777;
    line-height: 1.6;
}

/* ============================================
   PARTNERS
   ============================================ */
.partners {
    padding: 56px 0;
    background: #f8f8fa;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.partners-text {
    max-width: 600px;
    margin-bottom: 28px;
}

.partners-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.partners-text p {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
}

.partners-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 48px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-size: 17px;
    font-weight: 700;
    color: #ccc;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 64px 0;
    background: #fff;
}

.faq-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: start;
}

.faq-left h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.faq-left p {
    font-size: 16px;
    color: #888;
    line-height: 1.5;
}

.faq-left a { color: #1a5276; text-decoration: underline; }

.faq-item { border-bottom: 1px solid #e8e8e8; }

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 0;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-q::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
    color: #1a5276;
    flex-shrink: 0;
}

.faq-item.open .faq-q::after { content: "\2013"; }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-a { max-height: 200px; }

.faq-a p {
    padding-bottom: 18px;
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #f5f5f5;
    border-top: 1px solid #e8e8e8;
    font-size: 15px;
    color: #888;
}

.footer-inner {
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #999;
}

.footer-col strong {
    display: block;
    color: #333;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.15s;
}
.footer-col a:hover { color: #1a1a2e; }

.footer-bottom {
    text-align: center;
    padding: 20px 24px;
    border-top: 1px solid #e8e8e8;
    color: #bbb;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-left h1 { font-size: 42px; }

    .faq-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* Mobiili */
@media (max-width: 600px) {
    .wrap { padding: 0 16px; }

    /* Header */
    .header-inner { gap: 12px; }
    nav { display: none; }
    .nav-cta { font-size: 13px; padding: 8px 18px; }

    /* Hero */
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }



    .hero-left h1 {
        font-size: 34px;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .hero-bullets {
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-bullets li {
        font-size: 14px;
    }

    .hero-bullets li::before {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .hero-trust {
        font-size: 12px;
        padding-top: 16px;
    }

    .hero-deco-1 {
        width: 200px;
        height: 200px;
        border-width: 35px;
        top: -50px;
        right: -50px;
    }

    .hero-deco-2 {
        width: 160px;
        height: 160px;
        border-width: 25px;
        bottom: -80px;
        left: -60px;
    }

    .hero-deco-3 { display: none; }

    /* Laskurikortti */
    .hero-card {
        padding: 24px;
        border-radius: 18px;
    }

    .hero-card h2 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .input-euro input {
        padding: 14px;
        font-size: 22px;
    }

    .input-suffix {
        padding: 14px 16px;
        font-size: 16px;
    }

    .field { margin-bottom: 20px; }

    .btn-primary {
        padding: 16px;
        font-size: 16px;
        border-radius: 12px;
    }

    /* Slider bubble mobiilissa */
    .slider-bubble {
        font-size: 10px;
        padding: 3px 6px;
        top: -32px;
    }

    /* How */
    .how { padding: 40px 0; }

    .how-grid { grid-template-columns: 1fr; }

    .how-step {
        border-left: none;
        border-bottom: 1px solid #eee;
        padding: 20px 0;
    }

    .how-step:last-child { border-bottom: none; }

    .how-num { font-size: 28px; margin-bottom: 8px; }
    .how-step h3 { font-size: 16px; }

    /* Partners */
    .partners { padding: 40px 0; }
    .partners-text h2 { font-size: 22px; }
    .partners-text p { font-size: 14px; }

    /* FAQ */
    .faq { padding: 40px 0; }
    .faq-left h2 { font-size: 22px; }
    .faq-q { font-size: 14px; padding: 16px 0; }
    .faq-a p { font-size: 13px; }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 32px 16px;
    }

    .footer-bottom {
        font-size: 12px;
        padding: 16px;
    }

    /* Field row mobiilissa yhdelle riville */
    .field-row {
        grid-template-columns: 1fr;
    }
}
