/* STYLE.CSS
----------------------------------------------- */

/* Static
----------------------------------------------- */

body.static-page {
    background: white;
}

.static-page main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

.static-page main .hero {
    position: relative;
    text-align: center;
    padding: 64px 0;
}

.static-page main .hero h1 {
    font-size: 44px;
    line-height: 1.1;
    font-weight: 500;
}

.static-page main .hero h4 {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    color: var(--text-color);
}

.static-page main .hero h1 + h4 {
    margin-top: 16px;
}

.static-page section {
    padding-bottom: 44px;
}

.static-page section h2 {
    line-height: 1.6;
    font-size: 24px;
    font-weight: normal;
}

.static-page section p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.static-page section ul {
    padding-left: 32px;
}

.static-page section ul li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.static-page section p a { text-decoration: underline; }

.static-page section h2 + p, .static-page section h2 + ul { margin-top: 16px; }
.static-page section p + p, .static-page section p + ul, .static-page section ul + p { margin-top: 16px; }

.static-page footer {
    text-align: center;
    background: white;
    padding: 10px 32px;
    color: var(--placeholder-color);
}

.static-page footer a { 
    color: inherit;
    text-decoration: none;
}

.static-page footer ul li {
    display: inline-block;
    font-size: 12px;
}

.static-page footer ul li:not(:last-of-type) {
    padding-right: 8px;
    margin-right: 8px;
    border-right: 1px solid var(--regular-border-color);
}

/* Home
----------------------------------------------- */
.chat-box { 
    margin: 32px 32px 8px;
    /* width: 100%; */
    padding: 32px 32px;
    background: white;
    border-radius: 12px;
    border:1px solid var(--light-border-color);
}
.chat-row:not(:last-of-type){ margin-bottom: 12px; }
.chat-row.left { text-align: left; }
.chat-row.right { text-align: right; }
img.chat { display: inline; }
img.chat.single { height: 34.73px; }
img.chat.double { height: 54.78px; }

body.home-page {
    display: flex;
    min-height: var(--height-full-screen);
    flex-direction: column;
    background: white;
}

.home-page main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: url('../images/home-bg.jpg') no-repeat center center fixed; 
    background-size: cover;  */
    position: relative;
    background-image: url('/static/images/backgrounds/etienne-boulanger-aafOjsh-9jU-unsplash-warm.jpg');
    /* background-image: url('/static/images/backgrounds/christin-hume-Hcfwew744z4-unsplash-warm.jpg'); */
    background-position: center;
    background-size: cover;
    /* border-top: 0.5px solid rgb(210, 214, 220);
    border-bottom: 0.5px solid rgb(210, 214, 220); */
}

.home-page main:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* background-color: rgba(255,255,255,0.9); */
    background-color: rgba(0,0,0,0.24);
    /* background-color: rgba(84, 105, 212,0.9); */
    z-index: 0;
}

.home-page main .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px;
    border-radius: 4px;
    background: #eef3f8;
    background: linear-gradient(0deg,white 0%,#eef3f8 80%);
}

.home-page main .hero h1 {
    font-size: 44px;
    line-height: 1.1;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 6px solid white;
}

.home-page main .hero h4 {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    color: var(--body-text-color);
}

.home-page main .hero h1 + h4 {
    margin-top: 32px;
}

.home-page main .hero ul {
    font-size: 13px;
    line-height: 2.1;
    list-style: disc;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: bold;
    text-align: left;
}

.home-page main .hero .button.primary,
.home-page main .hero .button.secondary {
    /* max-width: 240px; */
}

.home-page footer {
    text-align: center;
    background: white;
    padding: 10px 32px;
    color: var(--placeholder-color);
}

.home-page footer a { 
    color: inherit;
    text-decoration: none;
}

.home-page footer ul li {
    display: inline-block;
    font-size: 12px;
}

.home-page footer ul li:not(:last-of-type) {
    padding-right: 8px;
    margin-right: 8px;
    border-right: 1px solid var(--regular-border-color);
}


/* Account
----------------------------------------------- */

.account-page {
    
}

.account, .setup {
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 64px;
}

/* #account-custom-links-list .cell-list {
    max-height: 400px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
} */

/* .account-cell.appear-1 {
    animation-delay: 0s;
}

.account-cell.appear-2 {
    animation-delay: 0.3s;
}

.account-cell.appear-3 {
    animation-delay: 0.6s;
}

@keyframes hide { from { opacity: 0; } to { opacity: 0; } }
@keyframes slideIn { 
    0%      { opacity: 0; transform: translateY(20px); }
    100%    { opacity: 1; transform: translateY(0); }
} */

.account-cell {
    /* animation-name: hide, slideIn; */
    /* animation-duration: 0.6s; */
    /* animation-timing-function: cubic-bezier(0.000, 0.000, 0.000, 1.00); */
    /* animation-iteration-count: 1; */
     
    /* transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.6s cubic-bezier(0.000, 0.000, 0.000, 1.00);
    transition-delay: 0.3s; */
    /* opacity:0; */

    padding: 0 0 0;
    background-color: white;
    border: 1px solid var(--regular-border-color);
    border-radius: var(--default-border-radius);
    overflow: hidden;
}

.account-cell:not(:first-of-type) {
    margin-top: 16px;
}

.account-cell .header {
    text-align: center;
    padding: 57px 20px 40px;
    border-bottom: 1px solid var(--light-border-color);
}

.account-cell .header .account-logo-box {
    display: inline-block;
    max-width: 392px;
    position: relative;
}

.account-cell .header .account-logo {
    max-width: 80%;
    max-height: 140px;
}

.account-cell .header .account-logo-box + h1 {
    margin-top: 24px;
}

.account-cell .header h1 {
    font-size: 32px;
    letter-spacing: -0.04rem;
    font-weight: 500;
    line-height: 1.1;
}

.account-cell .header p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: normal;
}
.account-cell .row {
    padding: 32px;
    position: relative;
}

.account-cell .row:empty {
    display: none;
}

.account-cell .row:not(:first-of-type) {
    border-top: 1px solid rgba(0,0,0,0.08);
}

.account-cell ul.setup-steps {
    list-style: none;
}

.account-cell ul.setup-steps li.row {
    position: relative;
    counter-increment: counter;
    padding-left: 72px;
}

.account-cell ul.setup-steps li.row:before {
    display: flex;
    align-items: center;
    justify-content: center;
    content: counter(counter);
    position: absolute;
    padding-left: 2px;
    top: 0;
    left: 0;
    bottom: 0;
    width: 72px;
    font-size: 32px;
    font-weight: 200;
}

.account-cell .setup-steps .row.completed:before {
    /* content: '✓'; */
    content: ' ';
    background-image: url('../images/icon-check.svg');
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: center;
}

.account-cell .row:empty { display: none; }
.account-cell .row:last-of-type {
    /* margin-bottom: 44px; */
}

.account-cell .row h2 {
    font-size: 20px;
    line-height: 1.4;
}

.account-cell .row h2 + p {
    margin-top: 2px;
}

.account-cell .row h4 {
    font-size: 13px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text-color);
}

.account-cell .row p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 8px;
    color: var(--text-color);
}

.account-cell a {
    text-decoration: underline;
    /* box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6),
    0 1px 0 0 currentColor; */
}


/* Pill */

.pill {
    display: inline-block;
    font-size: 11px;
    height: 18px;
    line-height: 18px;
    border-radius: 3px;
    font-weight: 500;
    padding: 0 6px;
}

.pill.void {
    color: var(--text-color);
    background-color: var(--regular-shade-color);
}

.pill.success {
    color: var(--dark-success-color);
    background-color: var(--light-success-color);
}

.pill.neutral {
    color: var(--dark-neutral-color);
    background-color: var(--light-neutral-color);
}

.pill.success-to-neutral {
    color: var(--dark-success-color);
    background-image: linear-gradient(to right, var(--light-success-color), var(--light-neutral-color));
}

.pill[class*="icon"]:before {
    content: '';
    opacity: 0.66;
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 4px;
    -webkit-mask-size: contain;
    mask-size: contain; 
 }

.pill.icon-card:before {     
    -webkit-mask: url('/static/images/minicon-card.svg') no-repeat 0 0;
    mask: url('/static/images/minicon-card.svg') no-repeat 0 0; 
}

.pill.icon-bank:before {     
    -webkit-mask: url('/static/images/minicon-bank.svg') no-repeat 0 0;
    mask: url('/static/images/minicon-bank.svg') no-repeat 0 0; 
}

.pill.void:before    { background-color: var(--text-color); }
.pill.success:before { background-color: var(--dark-success-color); }
.pill.neutral:before { background-color: var(--dark-neutral-color); }
.pill.success-to-neutral:before { background-color: var(--dark-success-color); }


/* Settings Toggle */

section.account-settings-cell.closed .account-settings-content { display: none; }

.account-settings-title { display: block; }
.account-settings-title a { text-transform: none; font-weight: normal; }
.account-settings-content a.disabled { text-decoration: none; pointer-events: none; }

section.account-settings-cell .account-settings-title { cursor: pointer }
section.account-settings-cell .account-settings-title-toggle::after         { content: 'Hide'; }
section.account-settings-cell.closed .account-settings-title-toggle::after  { content: 'Show'; }


/* Preview Iframe */

.preview-iframe-cell {
    height: var(--preview-cell-height);
    background: var(--regular-shade-color);
    font-size: 0;
    position: relative;
    overflow:hidden;
    border-radius: var(--default-border-radius);

    user-select: none !important;
    -moz-user-select: none !important;
    -khtml-user-select: none !important;
    -webkit-user-select: none !important;
    -o-user-select: none !important;

    pointer-events: none;
}

.preview-iframe {
    border: calc(1/var(--preview-scale)*1px) solid var(--regular-border-color);
    width: calc(1/var(--preview-scale)*100%);
    height: calc(1/var(--preview-scale)*var(--preview-cell-height));
    border-radius: calc(1/var(--preview-scale)*var(--default-border-radius));
    overflow: hidden;
    transform: scale(var(--preview-scale));
    transform-origin: top left;
    /* transition: all 0.3s ease 0s; */
}

/* Preview.mobile v1 (fills preview cell's height) */

.preview-iframe-cell.mobile {
    border: 1px solid var(--regular-border-color); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-iframe-cell.mobile .preview-iframe {
    border-color: var(--regular-border-color);
    border-radius: 22px;
    min-width: calc(var(--preview-mobile-width) * 2);
    max-width: calc(var(--preview-mobile-width) * 2);
    height: calc(1/var(--preview-scale)*(var(--preview-cell-height) - 75px)); /* 75 is arbitrary inner vertical  padding */
    transform-origin: center;
}

/* Preview.mobile v2 (fills preview cell's height) */

/* .preview-iframe-cell.mobile .preview-iframe {
    margin-left: 50%;
    width: 400px;
    transform: scale(var(--preview-scale)) translateX(-200px);
} */


/* Auth Page
----------------------------------------------- */

.auth-page {
    min-height: var(--height-full-screen);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    max-width: 448px;
    padding: 24px;
    flex: 1; /* child fills horiz. space like non-flex */
}

.auth-box h1 {
    display: flex;
    align-items:center;
    justify-content: center;
}

/* .auth-box h1 .logo {
    height: 23px;
    margin-right: 5px;
} */

.auth-box p {
    font-size: 14px;
    text-align: center;
}

.auth-box form .text-divider-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box form .text-divider-box .divider-line {
    background: rgb(210, 214, 220); /* #d2d6dc */
    flex-grow: 1; /* child fills leading/trailing space */
    height: 1px;
}

.auth-box form .text-divider-box .divider-text {
    font-size: 14px;
    padding: 2px 8px;
    color: var(--text-color);
}


/* Media: Mobile
--------------------------------------------------------------------------------------------------------------------- */

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

    .home-page header {
        background-color: #eef3f8;
    }

    .home-page main {
        background: linear-gradient(0deg,white 0%,#eef3f8 80%);
    }
    
    .home-page main:before {
        display: none;
    }

    .home-page main .hero {
        padding: 24px;
        background: none;
    }

    .home-page main .hero, .account-cell {
      border-radius: 0;
      border-left: none;
      border-right: none;
    }

    .account-cell .row {
        padding: 32px 20px;
    }
}