/* Styles for mathematica power page.

   developer:   rmiske
   requires:    /common/framework/css/framework.en.css
   ========================================================================== */

/* ==========================================================================
   setup the environment
   ========================================================================== */
:root {
    /*measurements*/
    --border-radius: 9px;
    --wrapper-h-pad: 2rem;
    --max-page-width: 1076px;
}

main {
    color: #404040;
    font-family: 'Source Sans Pro', Arial, sans-serif;
}

.page-width {
    margin: 0 auto;
    max-width: calc(var(--max-page-width) + (2 * var(--wrapper-h-pad)));
    padding: 4rem var(--wrapper-h-pad) 3rem;
    width: 100%;
}

img {
    height: auto;
    max-width: 100%;
}

/*text*/
main h1 {
    font-size: 3.75rem;
    white-space: nowrap;
}
main h2 {
    font-size: 2rem;
    font-weight: 600;
    padding-bottom: 1.5rem;
    text-align: center;
}
main h2 + p {
    font-size: 1.375rem;
    margin: 0 auto;
    max-width: 60rem;
    padding-bottom: 2.1rem;
    text-align: center;
}
main a { 
    color: #dd1100; 
}
main a:hover {
    color: #f77700; 
}
.button {
    border: 2px solid #aaa;
    border-radius: 7px;
    color: #fff !important;
    display: inline-block;
    margin-right: 0.75rem;
    padding: 0.5rem 1rem;
}
.button:hover,
.button.primary:hover {
    background: #f00;
    border-color: #f00;
}
.button.primary {
    background: #dd1100;
    border-color: #dd1100;
}
.button.sectioncta {
    background: #fff;
    border-color: #d10000;
    color: #d10000 !important;
}
.button.sectioncta:hover {
    background: #f00 !important;
    border-color: #f00 !important;
    color: #fff !important;
}



/* ==========================================================================
   hero
   ========================================================================== */
#hero {
    background: #181818;
    background-image:
        linear-gradient(0deg, #181818 0%, #424242 100%);
    background-position: center; 
    background-repeat: repeat;
    color: #fff;
    overflow: hidden;
}
#hero .page-width {
    align-items: center;
    gap: 3rem;
    grid-template-columns: 1fr 500px;
    padding-top: 2rem;
}
#hero h1 span {
    background: linear-gradient(22deg, #e7554e 0%, #d55951 55%, #b43640 100%);
    background-clip: text;
    color: transparent;
    font-size: 4rem;
    font-weight: 600;
}
#hero p {
    font-size: 1.5rem;
    font-weight: 300;
    padding: 1.5rem 0 2.25rem;
}
#hero p strong {
    display: block;
}
#hero .button {
    font-size: 1.25rem;
}

.hero-media {
    position: relative;
}
.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    max-width: none;
    pointer-events: none; /* optional: purely decorative */
}
.hero-fg {
    position: relative;
    z-index: 1;
}



/* ==========================================================================
   intro
   ========================================================================== */
#intro {
    padding-bottom: 1rem;
}
#intro .display-g {
    gap: 2.5rem;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 2rem;
}
#intro .display-g > div {
    align-items: center;
    background: #f6f6f6;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: auto 1fr;
    padding: 1.5rem;
}
#intro img {
    width: 4rem;
}
#intro h3 {
    font-size: 1.1875rem;
    font-weight: 600;
    padding-bottom: 0.375rem;
}
#intro > p {
    margin-bottom: 2rem;
}

#intro .button.sectioncta {
    background: #d10000;
    border-color: #d10000;
    color: #fff !important;
}



/* ==========================================================================
   compare
   ========================================================================== */
#blurch {
    background: #f6f6f6 url('/mathematica-power/img/network-background.png') no-repeat top center;
    border: solid #ddd;
    border-width: 1px 0;
}

#compare {
    background: #dfe4e8;
}
#compare .hwrap {
    background: #636363;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
    padding: 1rem 0;
    text-align: left;
}
#compare h2 {
    align-items: center;
    font-size: 1.5rem;
    font-weight: 400;
    gap: 0.75rem;
    grid-template-columns: 4rem 1fr;
    padding-bottom: 0;
    padding-top: 0;
    text-align: left;
}

#compare > .page-width {
    padding-top: 3rem;
}
#compare table { 
    border-collapse: collapse; 
    margin: 0 auto 2rem;
} 
#compare th, 
#compare td { 
    background: #f5f5f5;
    border: 1px solid #a6a6a6; 
    padding: 0.5rem;
}
#compare th { 
    font-weight: 400;
    text-align: left;
}
#compare td {
    text-align: right;
}
#compare td:nth-child(3) {
    background: #fff;
    border-left: 3px solid #d10000;
    border-right: 3px solid #d10000;
}
#compare tr:last-child td:nth-child(3) {
    border-bottom: 3px solid #d10000;
}
#compare th span,
#compare td span { 
    font-weight: 300; 
}
#compare td strong,
#compare table + p strong {
    font-size: 1.125rem;
}

#compare thead th {
    color: #fff;
    font-size: 1.25rem;
    text-align: center;
}
#compare thead th:first-child {
    background: transparent;
    border: none;
}
#compare thead th:nth-child(2) {
    color: #444;
}
#compare thead th:nth-child(3) {
    background: #d10000;
    border: 3px solid #d10000;
}

#compare .sub th {
    padding-left: 1.5rem;
}
#compare .sub th::before {
    color: #a6a6a6;
    content: "\25AA";
    padding-right: 0.25rem;
}

.botwrap {
    background: #d10000;
}
.botwrap .page-width {
    padding-bottom: 1rem;
    padding-top: 1rem;
}



/* ==========================================================================
   network
   ========================================================================== */
#network {
    text-align: center;
}
#network .display-g {
    gap: 1rem;
    margin-bottom: 2rem;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    text-align: left;
}
#network h3 {
    font-size: 1.125rem;
    font-weight: 600;
}
#network a {
    background: url('/mathematica-power/img/icon-contact.svg') no-repeat left center;
    background-size: 3.625rem;
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 1rem;
    padding: 0.9375rem 0 2.5rem 4.375rem;
    text-align: left;
}
#network a::after,
#network a:hover {
    color: #dd1100;
}



/* ==========================================================================
   scale
   ========================================================================== */
#scale .page-width {
    padding-top: 1rem;
}
#scale h2 {
    border-top: 1px solid #a6a6a6;
    font-size: 2.1875rem;
    padding-top: 3.5rem;
}
#scale h2 + p {
    padding-bottom: 2rem;
}
#scale h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    padding-bottom: 0.25rem;
}
#scale h3 span {
    color: #6e6e6e;
    font-size: 0.875rem;
    font-style: italic;
    position: relative;
    text-transform: uppercase;
    bottom: 0.375rem;
}
#scale a:hover h3 {
    color: #dd1100;
}
#scale .display-g {
    gap: 1.25rem;
    grid-template-columns: 1fr 1fr 1fr;
}
#scale .display-g > * {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    color: #404040;
    padding: 1.5rem;
}
#scale .display-g > * > div:first-child {
    height: 77px; /*same as tallest img*/
}
#scale .display-g p {
    color: #666;
    font-size: 0.9375rem;
}

#scale .display-g + p {
    font-size: 1.3125rem;
    text-align: center;
}
#scale .button {
    border-color: #fff;
    font-size: 1rem;
    margin-left: 0.5rem;
}



/* ==========================================================================
   q and a
   ========================================================================== */
#q-and-a {
    gap: 2rem 4rem;
    grid-template-columns: 1fr 1fr;
}
#q-and-a h2 {
    color: #dd1100;
    font-size: 35px;
    grid-column-end: span 2;
}
#q-and-a details {
    border-bottom: 1px solid #dfdfdf;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
}
#q-and-a summary {
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    list-style: none;
    padding-right: 2rem;
    position: relative;
}
#q-and-a summary::-webkit-details-marker {
    display: none;
}
#q-and-a summary::after {
    background: url('/mathematica-power/img/caret.svg') no-repeat;
    content: "";
    height: 0.667rem;
    position: absolute;
    right: 0;
    top: 0.5rem;
    transition: transform 0.2s;
    width: 1rem;
}
#q-and-a details[open] summary::after {
    transform: rotate(180deg);
}
.faq-answer {
    margin-top: 0.75rem;
}
.faq-answer p + p,
.faq-answer p + ul {
    margin-top: 0.75rem;
}
.faq-answer li {
    padding: 0 0 0.75rem 0.75rem;
    position: relative;
}
.faq-answer li:before {
    color: #808080;
    content: '\25AA';
    margin-left: -0.75rem;
    position: absolute;
}



/* ==========================================================================
   cta
   ========================================================================== */
#cta {
    padding: 1rem  var(--wrapper-h-pad) 4rem;
}
#cta .page-width {
    align-items: center;
    background: 
        url('/mathematica-power/img/cta-background.png'),
        linear-gradient(37deg, #d91313 0%, #f84242 100%);
    background-position: right, center;
    background-repeat: no-repeat, repeat;
    background-size: 525px, auto;
    border-radius: var(--border-radius);
    color: #fff;
    gap: 2rem;
    grid-template-columns: 1fr auto;
    padding: 3.5rem var(--wrapper-h-pad) 3.5rem;
}
#cta h2 {
    font-size: 1.75rem;
    padding-bottom: 0.5rem;
    text-align: left;
}
#cta h2 + p {
    font-size: 1.0625rem;
    margin: 0;
    max-width: none;
    padding-bottom: 0;
    text-align: left;
}
#cta .button {
    border-color: #fff;
    font-size: 1.375rem;
}



/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */
@media (max-width: 1200px) {
}


@media (max-width: 900px) {
    /*hero*/
    #hero {
        background-image:
            url('/mathematica-power/img/hero-background-900.png'),
            linear-gradient(0deg, #181818 0%, #424242 100%);
        background-position: right center, center; 
        background-repeat: no-repeat, repeat;
        background-size: 340px;
    }
    #hero .page-width {
        grid-template-columns: 1fr;
    }
    #hero p {
        max-width: 55vw;
    }


    /*grids*/
    #intro .display-g,
    #scale .display-g,
    #q-and-a {
        margin-left: auto;
        margin-right: auto;
        max-width: 468px;
    }

    #intro .display-g,
    #scale .display-g,
    #q-and-a {
        grid-template-columns: 1fr;
    }

    #network .display-g {
        grid-template-columns: 1fr 1fr;
    }
    
    #q-and-a {
        gap: 0;
    }
    #q-and-a h2 {
        grid-column-end: span 1;
        padding-bottom: 3rem;
    }

    
    /*and the rest*/
    #scale .display-g > * > div:first-child {
        max-height: 62px; /*80%*/
    }
    #scale img {
        transform: scale(0.8);
        transform-origin: top left;
    }
    #scale h3 {
        font-size: 1.3rem;
    }
    #scale .display-g p {
        font-size: 1.15rem;
    }
}


@media (max-width: 600px) {
    .button {
        margin: 0.5rem 0.375rem;
    }


    /*hero*/
    #hero {
        text-align: center;
        background-image:
            url('/mathematica-power/img/hero-background-600.png'),
            linear-gradient(0deg, #181818 0%, #424242 100%);
        background-position: top 135px center, center; 
        background-size: 900px;
    }
    #hero h1 {
        margin-bottom: 1.7rem;
    }
    #hero h1 span {
        display: block;
        line-height: 0.7;
    }
    #hero p {
        margin: 0 auto;
        max-width: 82vw;
    }
    #hero p strong {
        font-size: 1.9rem;
        margin-bottom: 0.7rem;
    }
    

    /*and the rest*/
    #intro h2 {
        font-size: 1.8rem;
    }
    #intro > p {
        margin-bottom: 0;
    }
    .botwrap .page-width {
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
    }
    #network a {
        line-height: 1.3;
        padding: 0.9375rem 0 2.125rem 4.375rem;
    }
    #cta .page-width {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    #q-and-a h2 {
        font-size: 2rem;
    }
}


@media (max-width: 320px) {
}