html {
    scroll-behavior: smooth;
}

#palvelu {
    scroll-margin-top: 120px;
}

#contact {
    scroll-margin-top: 150px;
}

#hinnasto {
    scroll-margin-top: 50px;
}

#lisaa {
    scroll-margin-top: 100px;
}

#hinnasto-muut {
    scroll-margin-top: 80px;
}

/* --------------------------------------------------------------- */
/* HERO-OSIO */
.hero {
    background: #052352;
    padding: 100px 20px 100px;
    color: #fff;
    overflow: hidden;
}

@media (max-width: 1400px) { .hero { padding: 40px 20px 100px } }

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

/* TEXT */
.hero-content h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: -webkit-linear-gradient( #FF72C0, #9e3770);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 16px;
}

/* CTA */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-cta:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* HERO CTA GROUP */
.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ensisijainen (olemassa oleva) */
.hero-cta.primary {
    background: linear-gradient(135deg, #FF72C0, #052352);
}

.hero-cta.primary:hover {
    box-shadow: 0 10px 30px rgba(255, 79, 163, 0.4);
}

/* toissijainen */
.hero-cta.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* mobiili */
@media (max-width: 900px) {
    .hero {
        padding-top: 50px;
    }
    .hero-content h1 {
        margin-bottom: 50px;
    }
    .hero-cta-group {
        margin-left: auto;
        margin-right: auto;
        margin-top: 50px;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 500px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        width: 100%;
        justify-content: center;
        margin-top: 0px;
    }
}

/* VISUAL */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual img {
    max-width: 260px;
    border-radius: 28px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}

.hero-visual img.back {
    position: absolute;
    right: -40px;
    top: 40px;
    transform: scale(0.95);
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-visual {
        display: none;
    }

    .hero-visual img.back {
        display: none;
    }
}

/* HERO ANIMATION */
.hero-content > * {
    opacity: 0;
    transform: translateY(24px);
}

.hero-visual {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
}

/* aktivoitu tila */
.hero.animate .hero-content > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.animate .hero-visual {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 1s ease, transform 1s ease;
}

/* porrastus tekstille */
.hero.animate .hero-content > *:nth-child(1) { transition-delay: 0.1s; }
.hero.animate .hero-content > *:nth-child(2) { transition-delay: 0.25s; }
.hero.animate .hero-content > *:nth-child(3) { transition-delay: 0.4s; }
.hero.animate .hero-content > *:nth-child(4) { transition-delay: 0.55s; }

/* HERO GLOW BACKGROUND */
.hero {
    position: relative;
    overflow: hidden;
}

/* yhteinen glow-kerros */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle,
                rgba(255, 255, 255, 0.45),
                rgba(255, 255, 255, 0) 70%);
);
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
}

/* HERO GLOW – AMBIENT MOTION */
.hero::before,
.hero::after {
    animation: heroGlowFloat 28s ease-in-out infinite;
}

@keyframes heroGlowFloat {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, 30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* varmista että sisältö on glow'n päällä */
.hero-inner {
    position: relative;
    z-index: 1;
}

/* MOCKUP GLOW */
.hero-visual {
    position: relative;
}

/* MOCKUP GLOW – AMBIENT */
.hero-visual::before {
    animation: mockupGlowFloat 22s ease-in-out infinite;
}

@keyframes mockupGlowFloat {
    0% {
        transform: translate(-50%, -50%) translate(0, 0);
    }

    50% {
        transform: translate(-50%, -50%) translate(-25px, 20px);
    }

    100% {
        transform: translate(-50%, -50%) translate(0, 0);
    }
}

@media (max-width: 600px) {

    .hero::before,
    .hero::after,
    .hero-visual::before {
        animation-duration: 40s;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero::before,
    .hero::after,
    .hero-visual::before {
        animation: none;
    }
}

/* varmista että kuvat ovat glow'n päällä */
.hero-visual img {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------- */
/* KUVAUS-OSIO */

.service-description {
    max-width: 900px;
    margin: 80px auto 0px;
    padding: 0 20px;
    text-align: left;
}

.service-description h2 {
    font-size: 36px;
    margin-bottom: 24px;
    background: -webkit-linear-gradient(#FF72C0, #052352);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.service-description p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.service-highlights {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    max-width: 700px;
    text-align: left;
}

.service-highlights li {
    font-size: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: -webkit-linear-gradient(#FF72C0, #052352);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.service-highlights li::before {
    content: "✓";
    color: #00c853;
    font-weight: bold;
}

@media (max-width: 600px) {
    .service-description h2 {
        font-size: 28px;
    }

    .service-highlights {
        grid-template-columns: 1fr;
    }
}

/* MOBILE POLISH – SERVICE DESCRIPTION */
@media (max-width: 600px) {

    .service-description {
        text-align: left;
        padding: 0 20px;
    }

    .service-description p {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.75;
        margin-bottom: 18px;
    }

    /* erotetaan checklistat selkeäksi blokiksi */
    .service-highlights {
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .service-highlights li {
        font-size: 18px;
        margin-bottom: 14px;
    }
}

    .arrowdown {
        margin-top: 30px;
    }

    .arrowdown p {
        text-align: center;
        font-size: 30px;
        background: -webkit-linear-gradient(#FF72C0, #052352);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
    }

/* --------------------------------------------------------------- */
/* HINNASTO-OSIO */
.pricing-section {
    max-width: 1100px;
    margin: 20px auto;
    margin-bottom: 0px;
    padding: 0 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    min-height: 820px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(50px);
    border-top-right-radius: 5em;
}

.pricing-card.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 2s ease, transform 2s ease;
}

/* pieni porrastus */
.pricing-card:nth-child(2) {
    transition-delay: 0.15s;
}

.pricing-header {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #052352;
    color: #fff;
    padding: 40px 30px;
    text-align: center;
}

.pricing-header h3 {
    margin: 0 0 12px;
    font-size: 28px;
    background: -webkit-linear-gradient(#FF72C0, #9e3770);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.pricing-header p {
    font-size: 15px;
    opacity: 0.9;
}

.pricing-price {
    text-align: center;
    padding: 30px;
    background: #f5f5f5;
}

.pricing-price .from {
    font-size: 18px;
    font-weight: 600;
    background: -webkit-linear-gradient(#FF72C0, #052352);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.pricing-price .amount {
    font-size: 44px;
    font-weight: 800;
    display: block;
    margin: 6px 0;
    background: -webkit-linear-gradient(#FF72C0, #052352);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.maintenance {
    font-size: 14px;
    color: #555;
}

.pricing-features {
    min-height: 220px;
    list-style: none;
    padding: 30px;
    margin: 0;
    flex: 1;
}

.pricing-features li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    background: -webkit-linear-gradient(#FF72C0, #052352);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.pricing-cta {
    margin: 20px;
    padding: 16px;
    border-radius: 999px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #FF72C0, #052352);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    padding-right: 56px;
}

/* CTA SVG ARROW */
.pricing-cta::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    pointer-events: none;
}

.card.highlight { /* Yhteydenottolomakkeen highlight smooth-scrollin jälkeen */
    box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.2);
    transition: box-shadow 0.4s ease;
}

.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 79, 163, 0.5);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 80px rgba(10, 37, 64, 0.25);
}

/* CTA reagoi myös hoveriin */
.pricing-card:hover .pricing-cta {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 79, 163, 0.45);
}

.pricing-card.featured {
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------- */
/* PROSESSIN ETENEMINEN -OSIO */
.process-section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

.process-title {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #FF72C0, #052352);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-card {
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    padding: 32px 28px;
    background: #fff;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    border-top-right-radius: 5em;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.process-card h3 {
    margin-top: 40px;
    margin-bottom: 12px;
    font-size: 20px;
    background: -webkit-linear-gradient(#FF72C0, #052352);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.process-card p {
    color: #5c6b80;
    font-size: 15px;
    line-height: 1.6;
}

.process-number {
    position: absolute;
    top: 24px;
    left: 28px;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF72C0,#052352);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animaatio */
.process-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.process-card:nth-child(2) {
    transition-delay: 0.2s;
}

.process-card:nth-child(3) {
    transition-delay: 0.4s;
}

.process-card:nth-child(4) {
    transition-delay: 0.6s;
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
  .pricing-card:hover {
    transform: none;
    box-shadow: none;
  }
  .process-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* --------------------------------------------------------------- */
/* VÄLI-CTA -OSIO */
.cta-section {
    max-width: 900px;
    margin: 80px auto;
    margin-top: 0px;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7ff, #ffffff);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(40px);
    border-top-right-radius: 5em;
}

.cta-section:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

/* CTA SECTION ANIMATION */

.cta-section.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* sisällön porrastus */
.cta-section>* {
    opacity: 0;
    transform: translateY(16px);
}

.cta-section.animate>* {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-section.animate>*:nth-child(1) {
    transition-delay: 0.15s;
}

.cta-section.animate>*:nth-child(2) {
    transition-delay: 0.30s;
}

.cta-section.animate>*:nth-child(3) {
    transition-delay: 0.45s;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
    background: -webkit-linear-gradient(#FF72C0, #052352);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.cta-section p {
    font-size: 17px;
    opacity: 0.85;
    margin-bottom: 32px;
}

.cta-button {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #FF72C0, #052352);
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 79, 163, 0.4);
}

/* CTA BUTTON PULSE (ONE TIME) */
.cta-button.pulse {
    animation: ctaPulse 0.9s ease-out;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 79, 163, 0.6);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(255, 79, 163, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 79, 163, 0);
    }
}

// --------------------------------------------- //
// MUUT-PALVELUT SIVUJEN LISÄYS-TYYLIT

.pricing-section2 {
    max-width: 1200px;
    margin: 20px auto;
    margin-bottom: 0px;
    padding: 0 20px;
}

.pricing-grid2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.pricing-card2 {
    min-height: 820px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    border-top-right-radius: 5em;
}

.pricing-card2:hover {
    box-shadow: 0 5px 35px #555;
}

@media (max-width: 1100px) {
    .pricing-grid2 {
        grid-template-columns: 1fr;
    }
}