/* system modeler homepage.

   developer:   rmiske
   requires:    /common/framework/css/framework.zh-tw.css
   ============================================================== */

/* ==============================================================
   setup the environment
   ============================================================== */
:root {
    --wrapper-h-pad: 3.125rem;
    --mobile-img-pad-bot: 1rem;
    --overview-orange: #f77700;
    --overview-red: #dd1100;
}

main {
    color: var(--grey-53);
    font-family: 'Microsoft YaHei', 'Hiragino Sans GB', Arial, sans-serif;
}
main img, main video { height: auto; max-width: 100%; }

main a { color: var(--overview-red); }
main a:hover { color: var(--overview-orange); }

main hr {
    background: #dbdbdb;
    border: none;
    height: 1px;
    margin: 3rem 0;
}


/*section*/
.page-width {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 var(--wrapper-h-pad);
    width: 100%;
}
.feature.page-width {
    margin: 4rem auto;
}


/*shared override*/
#try-buy-upgrade .width {
    max-width: 100%;
    min-width: 100%;
}


/*grids*/
.feature-grid {
    align-items: center;
    display: grid;
    grid-gap: 0 80px;
    grid-template-columns: 1fr 1fr;
}
.feature div.feature-grid { 
    border-top: 1px solid #dbdbdb;
    padding-top: 4rem;
}
.feature-grid img, .feature-grid video { margin: 0 auto; max-height: 300px; }
.feature-grid .feature-right { font-size: 0; text-align: center; }
.feature-grid.img-on-left .feature-left { order: 2; }
.feature-grid.img-on-left .feature-right { order: 1; }


/*lists*/
main section ul { padding-top: 0.875rem; }
main section ul li {
    padding: 0 0 0.5rem 0.75rem;
    position: relative;
}
main section ul li:before {
    color: #bfbfbf;
    content: '\25AA';
    margin-left: -0.75rem;
    position: absolute;
}



/* ==============================================================
   header
   ============================================================== */
#hdr {
    margin: 5rem auto;
    text-align: center;
}
#hdr img.hdr-901 { max-width: 844px; }
#hdr img.hdr-gear { 
    margin-bottom: 1rem;
    max-width: 100px; 
}
#hdr img.hdr-601 { max-width: 560px; }
#hdr img.hdr-m { max-width: 256px; }


#hero-banner {
    background: #eee;
    position: relative;
}
#hero-banner::before {
    border-top: 3rem solid white;
    content: "";
    position: absolute;
    width: 100%;
    z-index: 1;
}
#hero-banner > div {
    box-shadow: 0 2rem 0.75rem 0.5rem rgba(0,0,0,0.2);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0 auto;
    max-width: 2000px;
    position: relative;
    z-index: 2;
}




/* ==============================================================
   intro (from mathematica.css)
   ============================================================== */
#intro { 
    align-items: center;
    display: grid;
    grid-gap: 3rem;
    grid-template-columns: 1fr 400px;
    margin: 4rem auto; 
}
#intro .left p {
    color: #333;
    font-size: 1.304rem;
    font-weight: 300;
    line-height: 1.7;
    /* margin-bottom: 2rem; */
}
#intro .right {  }
#intro .right > div {
    background: url('/system-modeler/img/wsm-logo.png') top left no-repeat;
    background-size: 104px;
    min-height: 100px;
    padding-left: calc(104px + 1rem);
}
#intro .right > div > p { max-width: 280px; }
#intro .right .p1 {
    color: #333;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: .5rem;
    text-transform: uppercase;
}
#intro .right .p2 { margin-bottom: 1rem; }
#intro .right .p3 { white-space: nowrap; }
#intro .right .p3 a {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #b8b8b8;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    padding: 0.25rem 0.75rem;
}
#intro .right .p3 a:last-child { margin-right: 0; }



/* ==============================================================
   features
   ============================================================== */
.feature h2 {
    color: #222; 
    font-size:1.62rem; 
    line-height: 1.25; 
}
.feature h3 {
    color: #4c7fae;
    font-size: 1.08rem; 
    font-style: italic; 
    line-height: 1.2; 
    padding-top: 1.25rem;
}
.feature p {
    color: #3f3f3f; 
    font-size: 1.2rem; 
    padding-top: 0.25rem;
}

.feature span.li-moretxt {
    color: #626262;
    display:block;
    font-size: 0.875rem;
}


#on-board ul + p {
    padding-left: 0.75rem;
}
.feature a.btn {
    background: var(--overview-red);
    border-radius: 0.25rem;
    color: #fff;
    display: inline-block;
    margin: 0.75rem 0 0.25rem;
    padding: 0.25rem 1.5rem;
}
.btnmoretxt {
    color: #626262;
    font-size: 0.875rem;
}



/* ========================================================================== 
   pods
   ========================================================================== */
#more-info {
    background: #f6f6f6;
    padding: 4rem 0;
}
#more-info h2 {
    color: #3f3f3f; 
    font-size: 1.6rem;
    font-weight: 600; 
    padding: 3rem 1.5rem;
    text-align: center;
}


.podly {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.podly > a {
    background: #fff;
    border: 1px solid #f1f1f3; 
    border-radius: 1rem;
    box-shadow: 2.5px 1.7px 5px 0px rgba(0, 0, 0, 0.07);
    display: grid;
    grid-gap: 1rem;
}
.podly > a > span { 
    color: #333;
    font-size: 1.1rem;
}
.podly > a > span > span { color: var(--overview-red); }
.podly > a:hover > span > span { color: var(--overview-orange); }

.podly-icons > a {
    grid-template-rows: 50px 1fr;
    padding: 1.5rem;
}

.podly-tiles > a {
    grid-template-rows: auto 1fr;
}
.podly-tiles > a > span { padding: 0.5rem 1.5rem 1.5rem; }
.podly-tiles img {
    border-radius: 1rem 1rem 0 0;
    border-bottom: 1px solid #e9e9e9;
}

.podly-list {
    justify-items: center;
    margin-top: 2rem;
}
.podly-list h3 {
    color: #222; 
    font-size: 1.1rem; 
    font-weight: 600;
}

.podly > a > span > i { 
    display: block; 
    font-size: 0.875rem;
    font-style: normal;
    text-transform: uppercase;
}



/* ==========================================================================
   carousel
   ========================================================================== */
.cd-hero { 
    max-width: 540px;
    position: relative; 
}
.cd-hero__slider { 
    height: calc(300px + 2rem); 
    overflow: hidden;
    position: relative;
    width: 100%;
}
.cd-hero__slide {
    height: 100%;
    left: 0;
    position: absolute;
    text-align: center;
    top: 0;
    width: 100%;
    /* Force Hardware Acceleration */
    -webkit-transform: translateZ(0px);
    transform: translateZ(0px);
    will-change: transform;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.cd-hero__slide.cd-hero__slide--selected {
    /* this is the visible slide */
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}
.cd-hero__slide.cd-hero__slide--move-left {
    /* slide hidden on the left */
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
}
.cd-hero__slide.cd-hero__slide--is-moving,
.cd-hero__slide.cd-hero__slide--selected {
    /* the cd-hero__slide--is-moving class is assigned to the slide which is moving outside the viewport */
    -webkit-transition: -webkit-transform 0.5s;
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
}
html:not(.js-enabled) .cd-hero__slide { display: none; }
html:not(.js-enabled) .cd-hero__slide.cd-hero__slide--selected { display: block; }


/* hero slider nav */
.cd-hero__nav { 
    background: #fff;
    bottom: 0;
    height: 1.125rem;
    position: absolute;
    width: 100%;
    z-index: 2;
}
.cd-hero__nav nav,
.cd-hero__nav ul,
.cd-hero__nav li,
.cd-hero__nav a { height: 100%; }

.cd-hero__nav nav {
    display: block;
    margin: 0 auto;
    position: relative;
}
.cd-hero__nav ul.outer-ul {
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}
.cd-hero__nav li { 
    line-height: 1.125rem; 
    padding-bottom: 0; 
}
.cd-hero__nav ul.outer-ul li.scroll {
    overflow: hidden;
    width: 100%;
}
.cd-hero__nav ul.inner-ul {
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    overflow: hidden;
}
.cd-hero__nav ul.inner-ul > li { flex: 0 0 auto; }
.cd-hero__nav .dot {
    background: transparent;
    border-radius: 100%;
    border: 2px solid var(--grey-a6);
    cursor: pointer;
    display: inline-block;
    height: 12px;
    margin: 0 4px;
    width: 12px;
}
.cd-hero__nav li.cd-selected .dot { background: var(--grey-a6); }
.cd-hero__nav .dot:hover { border-color: var(--link-hover); }
.cd-hero__nav li.cd-selected .dot:hover { background: var(--link-hover); }



/* ========================================================================== 
   video
   ========================================================================== */
/*general*/
.wri-video { position: relative; text-align: center; }
.wri-video br { display: none; }

.wri-video:hover::before, .wri-video:hover::after, 
.wri-video:active::before, .wri-video:active::after, 
.wri-video.paused::before, .wri-video.paused::after, 
.wri-video.paused:active::before, .wri-video.paused:active::after {
    bottom: 0; 
    content: '';
    left: 0; 
    margin: auto;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0; 
}


/*border (before)*/
.wri-video:hover::before,
.wri-video:active::before,
.wri-video.paused::before,
.wri-video.paused:hover::before,
.wri-video.paused:active::before {
    background: rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    height: 72px;
    width: 84px;
}
.wri-video:active::before,
.wri-video.paused:hover::before,
.wri-video.paused:active::before {
    border-color: #fff;
}


/*icons (after)*/
.wri-video:hover::after,
.wri-video:active::after,
.wri-video.paused::after,
.wri-video.paused:hover::after,
.wri-video.paused:active::after {
    background: url('/language/core-areas/assets/img/shared/icon-play.svg') no-repeat;
}
.wri-video:hover::after,
.wri-video:active::after {
    height: calc(50px * 0.84); 
    width: calc(27px * 0.84); 
}
.wri-video.paused::after,
.wri-video.paused:hover::after, .wri-video.paused:active::after {
    height: 50px; 
    width: 25px;
}
.wri-video:hover::after { background: url('/language/core-areas/assets/img/shared/icon-pause.svg') no-repeat; }
.wri-video:active::after { background: url('/language/core-areas/assets/img/shared/icon-pause-hover.svg') no-repeat; }
.wri-video.paused:hover::after, .wri-video.paused:active::after { background: url('/language/core-areas/assets/img/shared/icon-play-hover.svg') no-repeat; }

.wri-video.with-placeholder:not(.paused) video { display: block; }
.wri-video.with-placeholder:not(.paused) img { display: none; }
.wri-video.with-placeholder.paused video { display: none; }
.wri-video.with-placeholder.paused img { display: block; }


/*no overlay*/
.wri-video.no-overlay::before, .wri-video.no-overlay::after { display: none; }



/* ==============================================================
   responsive breakpoint styles
   ============================================================== */
@media (max-width: 1200px) {
    /*setup*/
    :root {
        /*measurements*/
        --wrapper-h-pad: 3rem; /*45px*/
        --docs-padding: 10px; 
    }


    /*header*/
    #hdr { margin: 3rem auto; }
    #hdr img.hdr-901 { max-width: 645px; }
    #hero-banner { grid-template-columns: repeat(3, 1fr); }

}


@media (max-width: 900px) {
    /*setup*/
    :root {
        --wrapper-h-pad: 2rem;
    }
    .feature-grid { grid-template-columns: 1fr !important; }
    .feature-grid img, .feature-grid video, .cd-hero { margin-bottom: 1.75rem; margin-top: 1.75rem; }
    .feature-grid img, .feature-grid video { display: block !important; }


    /*header*/
    #hdr { margin: 1.5rem auto; }
    #hero-banner > div { grid-template-columns: repeat(3, 1fr); }


    /*intro (from mathematica.css)*/
    #intro { 
        margin: 2rem auto; 
        grid-template-columns: 1fr;
    }
    #intro .right { margin: 0 auto; }
    #intro .right .p1 {
        font-size: 14px;
        margin-top: 1rem;
    }
    #intro .right .p3 { margin-bottom: 1rem; }
    #intro .right .p3 a { font-size: 14px; }


    /*pods*/
    .podly {
        grid-gap: 3rem;
        grid-template-columns: 1fr; 
    }
    .podly > a {
        margin: 0 auto;
        max-width: 360px; 
    }
    .podly-icons > a {
        align-items: center;
        grid-template-columns: 50px 1fr;
        grid-template-rows: 1fr;
        max-width: 625px;
        width: 100%;
    }
    .podly-list { 
        grid-template-columns: repeat(3, 1fr);
        padding-top: 2rem;
    }


    /*carousel*/
    .cd-hero { margin-left: auto; margin-right: auto; }


    /*video > general */
    .wri-video:hover::before, .wri-video:hover::after, 
    .wri-video:active::before, .wri-video:active::after, 
    .wri-video.paused::before, .wri-video.paused::after, 
    .wri-video.paused:active::before, .wri-video.paused:active::after {
        bottom: var(--mobile-img-pad-bot);
    }
}


@media (max-width: 600px) {
    /*setup*/
    :root {
        --wrapper-h-pad: 1rem; /*line up with global menu*/
    }
    section.feature div[id$="-content"] {
        padding-left: var(--wrapper-h-pad);
        padding-right: var(--wrapper-h-pad);
    }


    /*header*/
    #hdr { margin: 2rem auto; }
    #hdr img.hdr-gear { max-width: 56px; }


    /*intro (from mathematica.css)*/
    #intro .right > div {
        background-position: top right;
        min-height: 100px;
        padding-left: 0;
        padding-top: 70px;
    }


    /*pods*/
    .podly-icons > a { max-width: 360px; }
    .podly-list { 
        grid-template-columns: 1fr;
        justify-items: start;
        max-width: 360px;
    }
}


@media (max-width: 320px) {}


@media print {}