@import url(foundation.css);
@import url(typography.css);
@import url(nav.css);

@import url(footer.css);

li.accordion-item,
a.accordion-title {
    margin-bottom: 0;
}

/* ----- Changes for medium and smaller breakpoint ----- */

@media screen and (max-width: 1067px) {

    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}


/* ----- Changes for small breakpoint ----- */

@media screen and (max-width: 735px) {

    section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .nav-links-mobile-container {
        display: block;
        width: 100%;
    }

}

@media screen and (max-width: 470px) {
    section.main.main {
        padding-top: 98px;
    }
    .overview section.beta {
        padding-top: 98px;
    }
}


/* ----- Special elements ----- */

.bbutton {
    padding: 10px 60px 10px 60px;
    margin: 10px;
    background-color: #FF5800;
    color: white;
    border-radius: 3px;
    display: inline-block;
}
.bbutton:hover {
    color: white;
}

.bbutton.ghost {
    background-color: transparent;
    border: 1px solid white;
}

/* ---- beta ---- */
section.beta {
    text-align: center;
    background-color: #FF5800;
    border-bottom-width: 0;
    padding-bottom: 25px;
    padding-top: 42px;
}

section.beta .row {
    margin-top: 33px;
}

section.beta h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size:calc(52px/2);
    line-height:1.15;
}

section.beta p {
    margin-top: 7px;
    margin-bottom: 0;
    font-size:calc(34px/2);
}

section.beta a {
    margin-top: 20px;
    font-size:calc(26px/2);
}

.icon-title.icon-title-not-bold {
    font-weight: 500;
    font-size: calc(50px/2);
    margin-bottom:16px;
}
section.beta .large-center {
    float:none;
    width: 100%;
}

section.beta h2, section.beta p {
    color: #ffffff;
}

.beta-page.bbutton {
    background-color: #FF5800;
}
.beta-page.bbutton span {
    color:#ffffff;
}

.beta-checks ul {
    padding-left: 0;
}

.beta-checks ul li {
    background-image: url("../icon/check_2x.png");
    background-size: 26px 26px;
    vertical-align:middle;
    display: inline-block;
    background-repeat: no-repeat;
    padding-left:36px;
}

.beta-checks .icon-check {
    display: inline-block;
    margin-left: 0;
    margin-right: 10px;
}

.beta-checks .icon-check.last {
    font-size: 19px;
    line-height: 27px;
    color: #54606B;
}

.beta-checks ul li {
    list-style: none;
}


/* ----- Hero sections ----- */

section.hero-background .columns {
    height: 550px;
    padding-top: 34px;
}

.hero-background h1.hero-headline {
    color: #FF5800;
    position: relative;
    margin-top: 150px;
}

.hero-background {
    height: 80vh;
    position: relative;
    width: 100%;
    min-height: 810px;
    background-image: url("../img/hero-beddit_device_2x.png");
    background-size: contain;
    background-position: 200px 470px;
    background-repeat:no-repeat;
    padding-top: 121px;
    overflow-x: hidden;
    overflow-y: hidden;
}

.hero-image-devices {
    background-image: url("../img/hero-apple_devices_2x.png");
    background-size: 410px 614px;
    width: 410px;
    height: 614px;
}


/* Medium */
@media screen and (max-width: 1067px) {
    section.hero-background {
        padding-top: 100px;
        min-height: 820px;
        background-position: 40px 470px;
    }

    section.hero-background .columns {
        padding-top: 48px;
    }

    .hero-background h1.hero-headline {
        color: #FF5800;
        position: relative;
        padding-top: 88px;
        margin-top: 40px;
    }
    .hero-image-devices {
        margin-left: -20px;
    }
}

/* Small */
@media screen and (max-width: 735px) {
    section.hero-background {
        padding-top: 80px;
        min-height: 320px;
        height: 420px;
        overflow: hidden;
        background-position: 10px 240px;
        background-size: 280%;
        background-image: none;
    }
    section.hero-background .columns {
        height: auto;
        padding-top: 88px;
    }
    .hero-image-devices {
        width: 736px;
        height: 360px;
        background-size: 736px 360px;
        margin-left: 0;
        position: relative;
        bottom: 130px;
        left: -350px;
        background-image: url("../img/hero_small_2x.png");
    }
    
    .hero-title {
        text-align: center;
    }
    .hero-background h1.hero-headline {
        line-height: 30px;
        padding-top: 0;
        margin: 0 auto;
    }
    .hero-background .columns.small-offset-1 {
        padding-left: 0;
        padding-top:68px;
    }
}


/* ----- Benefit sections ----- */

section.benefit {
    text-align: center;
    padding-top: 150px;
    padding-bottom:250px;
    border-bottom-width: 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}

section.benefit table {
    width: 100%;
}

section.benefit table td {
    width: 20%;
    vertical-align: top;
}

section.benefit.orange table td:nth-child(2) {
    padding-left: 0;
    padding-right: 0;
}


section.benefit .row.intro {
    margin-top: 40px;
}

/* Medium */
@media screen and (max-width: 1067px) {
    section.benefit {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    section.benefit .row.intro {
        margin-top: 0;
    }
}

/* Small */
@media screen and (max-width: 735px) {
    section.benefit {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

section.benefit .details-container {
    position: relative;
    margin-top: 20px;
}

/* Animation related things only for large */
@media screen and (min-width: 1068px) {
    section.benefit .details {
        position: absolute;
        bottom: -400px;
    }
    section.benefit .details.show-details {
        bottom: -100px;
    }
}

section.benefit.dark {
    background-color: rgb(34, 48, 61);
/*    background-image: url("../img/measure_bg_large_2x.jpg");*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

section.benefit.orange {
    background-color: #FF5800;
/*    background-image: url("../img/sometimes_bg_large_2x.jpg");*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

@media screen and (max-width: 1067px) {
    section.benefit.dark {
        background-color: rgb(34, 48, 61);
/*        background-image: url("../img/measure_bg_large_2x.jpg");*/
        background-size: cover;
        background-repeat: no-repeat;
        background-position: 32% 0%;
    }
    section.benefit.orange {
    background-color: #FF5800;
/*    background-image: url("../img/sometimes_bg_large_2x.jpg");*/
    background-size: cover;
    background-repeat: no-repeat;
        background-position: 32% 0%;
}
}



section.benefit h1,
section.benefit h2,
section.benefit h5,
section.benefit p {
    color: white;
}
section.benefit h2{
    margin-bottom: 0;
}

section.benefit.dark .intro p {
    max-width: 550px;
    margin: 0 auto;
}

section.benefit.orange .intro p {
    max-width:430px;
    margin: 0 auto;
}

@media screen and (max-width: 735px) {
    section.benefit .intro p {
        width: 90%;
    }
}

section.benefit h2 img {
    width: 50px;
    margin-bottom: 10px;
}

section.benefit p.icon-caption {
    margin-top: 0;
}

section.benefit.dark h2 {
    color: #FF5800;
}


/* ----- How it works section ----- */

.overview section.how-it-works {
    padding: 65px 0;
}

.overview section.how-it-works .background-container {
    background-image: url("../img/just_sleep_large.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 417px 230px;
}

.overview section.how-it-works .show-for-medium {
    display: none;
}
.overview section.how-it-works .show-for-small {
    display:none;
}

@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .overview section.how-it-works .background-container {
        background-image: url("../img/just_sleep_large_2x.png");
    }
}


.overview section.how-it-works .disclaimer p {
    margin: 0 auto;
    width: auto;
    text-align: center;
    font-size: 11px;
    opacity: 0.7;
}

/* Small and Medium */
@media screen and (max-width: 1067px) {
    .overview section.how-it-works .show-for-small.background-container {
        display:none;
    }
    .overview section.how-it-works .background-container {
        background-image: none;
        width:80%;
        margin-top:60px;
        display:flex;
        flex-direction: row;
    }
    .overview section.how-it-works .row .medium-4 {
        display:inline-block;
        margin:0 20px;
    }
    .overview section.how-it-works .beddit-hardware {
        margin: 0 auto;
        background-image: url("../img/just_sleep_large.png");
        height: 230px;
        width: 417px;
        background-repeat: no-repeat;
        background-position: 60% 100%;
    }
    .overview section.how-it-works h3 {
        margin-bottom: 60px;
    }

    .overview section.how-it-works .disclaimer p {
        margin-top: 45px;
    }

}

/* Small */
@media screen and (max-width: 735px) {
    .overview section.how-it-works {
        overflow-x: hidden;
    }
    .overview section.how-it-works .show-for-small.background-container {
        display:flex;
    }
    .overview section.how-it-works .background-container {
        flex-direction: column;
    }
    .overview section.how-it-works .show-for-medium {
        display: none;
    }
    .overview section.how-it-works .row .small-6 {
        width: 50%;
    }
    .overview section.how-it-works {
        background-position: 0% 30%;
    }
    .overview section.how-it-works h3 {
        margin-bottom: 60px;
        color: #202E3B;
    }
    .overview section.how-it-works li {
        text-align: center;
    }
    .overview section.how-it-works dt {
        color: #FF5800;
    }
    .overview section.how-it-works nav.orbit-bullets.scrolled {
        background-color: transparent;
    }
    .overview section.how-it-works h4 {
        margin-bottom: 0;
        line-height: 18px;
    }
}


.overview section.how-it-works h3 {
    text-align: center;
}

.overview section.how-it-works dt {
    font-size: 20px;
    letter-spacing: -0.2px;
    line-height: 23px;
    color: #4D5964;
    position: relative;
    margin-top: 32px;
}

.overview section.how-it-works dd {
    margin-bottom: 60px;
    letter-spacing: -0.15px;
    margin-left: 0;
    margin-top: 6px;
}

.overview section.how-it-works .caption-title {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 18px;
    color: rgb(38, 52, 64);
}

.overview section.how-it-works .list-number {
    display: block;
    position: absolute;
    top: -32px;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background-color: #4D5964;
    color: white;
    text-align: center;
    padding-top: 2px;
}

.overview section.how-it-works .caption-copy {
    font-size: 13px;
    line-height: 17px;
    color: rgb(117, 127, 137);
}

@media screen and (max-width: 1067px) {
    .overview section.how-it-works .caption-copy {
        margin-top: 6px;
    }
}

/* ----- App introduction carousel ----- */

section.app-screens .small-only {
    display: none;
}
section.app-screens {
    background-color: #F6F8FB;
}

section.app-screens .section-headline {
    margin-bottom: 80px;
}

section.app-screens .caption-title {
    font-size: calc(28px/2);
    font-size: 16px;
    line-height: 18px;
    color: rgb(38, 52, 64);
}

section.app-screens .caption-copy {
    font-size: 13px;
    line-height: 17px;
    color: rgb(117, 127, 137);
    margin-top: 6px;
    color: #757f89;
}
section.app-screens .flipster__item p.caption-copy {
    margin-top: 6px;
}
section.app-screens .flipster__button svg {
    display: none;
}
section.app-screens .flipster__button {
    background:url("../img/app-intro/pad_left.png");
    height: 52px;
    width: 52px;
    top: 40%;
    opacity: 0.7;
}

section.app-screens .flipster__button:hover {
    opacity: 1;
}
section.app-screens .flipster__button:nth-child(3) {
    background:url("../img/app-intro/pad_right.png");
}
section.app-screens .flipster--flat .flipster__item__content {
    transform: none;
}

section.app-screens .app-intro-small {
    display:none;
}
section.app-screens .app-intro-large {
    display: block;
    text-align: center;
}

section.app-screens .flipster__item p {
    display: block !important;
    width: 200px;
    text-align: center;
    margin: 0 auto;
}

section.app-screens {
    padding-top: calc(188px/2);
    padding-bottom: calc(188px/2);
}

section.app-screens h5 {
    margin-bottom: 0;
    margin-top: 20px;
}


section.app-screens .app-cta {
    text-align: center;
    text-decoration: underline;
    color: #ff5b00;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 40px;
}
section.app-screens .app-cta:before {
    display: inline-block;
    content: " ";
    height: 34px;
    width: 34px;
    background-image: url("../img/beddit_icon_large_2x.png");
    background-size: 34px 34px;
    background-position: center center;
    background-repeat: no-repeat;
    right: 10px;
    top: 11px;
    position: relative;
}

.screens-figure {
    height: 381px;
    width: 190px;
    background-size: 190px 381px;
    margin:0 auto;
}

/* phone screen gallery on small only*/
@media screen and (max-width: 735px) {
    section.app-screens .app-intro-large {
        display: none !important;
    }
    section.app-screens .app-intro-small {
        display: block;
        max-height: 500px;
    }
    .app-screens .small-12.columns {
        padding: 0;
    }
    .app-intro {
        overflow: hidden;
    }
    section.app-screens .app-cta {
        margin-top: 40px;
    }
    .app-screens .flipster__container {
        overflow-x: visible;
        height: 100% !important;
        width: 100%;
    }
    section.app-screens .small-only {
        display: block;
        cursor: pointer;
    }
}

.phone-section-1 {
    background-image: url("../img/app-intro/morning_notification_large.png");

}
.phone-section-2 {
    background-image: url("../img/app-intro/nightly_results_large.png");

}
.phone-section-3 {
    background-image: url("../img/app-intro/sleep_trends_large.png");
}
.phone-section-4 {
    background-image: url("../img/app-intro/education_large.png");
}
/*--retina image --*/
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .phone-section-1 {
        background-image: url("../img/app-intro/morning_notification_large_2x.png");
    }
    .phone-section-2 {
        background-image: url("../img/app-intro/nightly_results_large_2x.png");

    }
    .phone-section-3 {
        background-image: url("../img/app-intro/sleep_trends_large_2x.png");
    }
    .phone-section-4 {
        background-image: url("../img/app-intro/education_large_2x.png");
    }
}


@media screen and (max-width: 1067px) {
    section.app-screens .app-intro-large .columns {
        display: block;
        text-align: center;
        min-width: 150px;
    }
    section.app-screens .section-headline {
        margin-bottom: 60px;
    }
    .screens-figure {
        height: 240px;
        width: 120px;
        background-size: 120px 240px;
    }
    section.app-screens .app-intro-large .row {
        display: flex;
        justify-content: center;
    }
}


@media screen and (max-width: 735px) {
    .screens-figure {
        height: 381px;
        width: 190px;
        background-size: 190px 381px;
    }
}


#app-intro, .app-intro-small {
    height: 580px;
    margin-top: 40px;
}
#app-intro li, .app-intro-small li{
    height: 500px;
    width: 25%;
    text-align: center;
}
#app-intro h5 {
    color: #263440;
    margin-top: 20px;
}
.app-intro-small h5 {
    color: #263440;
    margin-top: 20px;
    margin-bottom: 6px;
}
#app-intro img, .app-intro-small img {
    width: 100%;
}

@media screen and (max-width: 735px) {
    #app-intro li, .app-intro-small li {
        width: 50%;
    }
}



/* ----- Path to good sleep ----- */

section.path-to-good-sleep {
    padding-bottom: 0;
}

section.path-to-good-sleep .row {
    padding-bottom: 100px;
}

section.path-to-good-sleep > .row:last-child {
    padding-bottom: 0px;
}

section.path-to-good-sleep h1,
section.path-to-good-sleep h4 {
    color: #FF5800;
}

.row.sleep-path {
    border-left: 1px solid #FF5800;
    position: relative;
}

h2.sleep-path-point {
    background-color: #FF5800;
    display: block;
    width: 50px;
    height: 50px;
    padding-top: 13px;
    text-align: center;
    border-radius: 25px;
    color: white;
    font-size: 31px;
    line-height: 31px;
    margin: 0;
    position: absolute;
    left: -25px;
}

h2.sleep-path-start {
    border: 1px solid #FF5800;
    background-color: white;
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    margin: 0;
    position: absolute;
    left: -25px;
}


/* ----- What our users say ----- */

section.testimonials {
    background-color: #F6F8FB;
}

section.testimonials blockquote {
    background-color: #D4D9DF;
    padding: 0;
    margin-bottom: 20px;
}

/* ----- Changes for medium and smaller breakpoint ----- */

@media screen and (max-width: 1067px) {
    section.testimonials blockquote {
        max-width: 630px;
    }
}

section.testimonials blockquote p {
    margin: 20px;
    font-size: 20px;
    line-height: 27px;
}

section.testimonials blockquote .pull-quote {
    background-color: #202E3B;
    color: white;
}

section.testimonials blockquote .pull-quote p.quote {
    font-size: 30px;
    line-height: 36px;
    color: #EEF0F3;
    position: absolute;
    bottom: 0px;
}
@media screen and (max-width: 735px) {
    section.testimonials blockquote .pull-quote p.quote {
        font-size: 16px;
        line-height: 21px;
    }
}

section.testimonials blockquote .pull-quote p.author-title {
    color: #FF5800;
    font-size: 12px;
    line-height: 23px;
    margin-bottom: 0;
}
section.testimonials blockquote .pull-quote p.author-name {
    color: #7A848D;
    font-size: 12px;
    line-height: 16px;
    margin-top: 0;
}

section.testimonials table {
    margin: 0;
}

section.testimonials td {
    vertical-align: top;
    width: 50%;
    padding: 0;
    position: relative;
}

section.testimonials td img {
    width: 100%;
}

section.testimonials .blog-link {
    color: #4D5964;
}

section.testimonials .blog-link i {
    font-size: 200%;
    color: #FF5800;
    vertical-align: middle;
}


/* ----- Tech Specs ----- */

section.tech-specs {
    padding-top: 85px;
    padding-bottom: 113px;
}
section.tech-specs .row{
    overflow: hidden;
}
section.tech-specs .list {
    padding-top: 16px;
    margin-bottom: 26px;
    width: 100%;
    border-top: 1px solid rgba(117, 127, 137, 0.27);
    clear: both;
}
section.tech-specs .list .caption-title {
    margin-top: 0;
    width: 45%;
    display: block;
    float: left;
    padding-right: 15px;
}
section.tech-specs .list ul {
    line-height: 1.4;
    padding-left: 0;
    margin-top: 0;
    list-style-type: none;
    display: block;
    float: left;
    width: 55%;
}
section.tech-specs .list ul.sub {
    padding-left: 20px;
    margin-top: 0;
    list-style-type: none;
    display: block;
    float: none;
    width: 100%;
}

section.tech-specs .column:last-child:not(:first-child), section.tech-specs .columns:last-child:not(:first-child) {
float: left;
}

section.tech-specs .image-beddit-pad {
    background-image: url("../img/tech_image_large.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
    height: 90px;
    width: 100%;
    margin-top: 40px;
}
@media screen and (max-width: 1067px) {

    section.tech-specs {
        padding-top: 75px;
        padding-bottom: 65px;
    }

    section.tech-specs .image-beddit-pad {
        width: 90%;
        margin: 40px auto 0;
    }
}

/* ----- invest ----- */

section.invest {
    text-align: center;
    background-color: #FF5800;
    border-bottom-width: 0;
    padding-bottom: 65px;
    padding-top: 65px;
}

section.invest p, section.invest h2{
    margin-top: 0;
    margin-bottom: 25px;
    color: white;
}

section.invest .bbutton {
    margin: 30px 0 30px 0;
}
@media screen and (max-width: 735px) {
    section.invest p{
        margin-bottom: 30px;
    }
    section.invest h2{
        margin-bottom: 20px;
    }
}

/*---- using-the-beddit-sleep-tracker / FAQ  / contact----*/
.using-the-beddit-sleep-tracker .main p, .faq .main p, .faq .main a, .faq .main ol li, .contact .main p, .backpage .main p, .backpage .main ol li, .backpage .main ul li {
    font-size: 19px;
    letter-spacing: -0.21px;
    line-height: 27px;
    color: #54606B;
    margin-bottom: 16px;
}

.contact section {
    min-height: 70vh;
    padding-top: 50px;
}

.faq a.accordion-title.icon-title {
    margin-bottom: 0;
}
.using-the-beddit-sleep-tracker, .faq .main p a, .contact .main p a, .backpage .main a {
    color: #1585cf !important;
}

.using-the-beddit-sleep-tracker section,
.faq section,
.contact section, .backpage .main {
    padding-top: 100px;
    padding-bottom: 100px;

    border-bottom-width: 2px;
    border-bottom-color: #D4D9DF;
    border-bottom-style: solid;
}

/* ----- Changes for medium and smaller breakpoint ----- */

@media screen and (max-width: 1067px) {

    .using-the-beddit-sleep-tracker section,
    .faq section,
    .contact section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

}


/* ----- Changes for small breakpoint ----- */

@media screen and (max-width: 735px) {

    .using-the-beddit-sleep-tracker section,
    .faq section,
    .contact section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

}
