:root {
    --text: #455880;
    --title: #333758;
    --primary: #0A58DB;
    --secondary: #000C9C;
    --lightGray: #F7F9FB;
    --gray: #e3e3e3;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    position: relative;
}

a {
    text-decoration: none;
    color: currentColor;
}

ul {
    list-style: none;
}

li {
    display: inline-block;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    color: var(--title);
    line-height: 1.4;
    font-weight: 600;
}

p {
    color: var(--text);
    margin-bottom: 1rem;

}

p:last-child {
    margin-bottom: 0;
}


/* LAYOUT */

.container {
    margin: 0 auto;
    max-width: 1630px;
    padding: 0 6%;
}

.container.is-small {
    max-width: 1440px;
}

.col-2 {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1.4rem;
}

.col-3 {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.4rem;
}

.section {
    padding: 14vmin 0;
    border-bottom: 1px solid rgba(12, 21, 46, .08);
}

.section-header {
    justify-content: space-between;
}

.section-header .section-title {
    flex: 1;
}

.section-title {
    font-size: 2rem;
}

.header {
    background: url('./assets/header.png') no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 0 65%;
    height: 140vh;
    position: relative;
}

.header * {
    color: #fff;
}

.header:before,
.header-fade {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.header:before {
    bottom: 0;
    height: 200px;
    background: #fff;
}

.header-fade {
    bottom: 200px;
    height: 100%;
    background: linear-gradient(358.51deg, rgb(0, 0, 0) -80.37%, rgba(0, 0, 0, 0) 0%);
    z-index: 1;
}

.header-content {
    height: 100%;
    padding-top: 6%;
    position: relative;
    z-index: 2;
}

.header-text {
    grid-gap: .8rem;
    max-width: 600px;
}

.header-text-title {
    font-size: 4rem;
    line-height: 1.2;
}

.header-text-title span {
    background-color: rgba(255, 255, 255, .2);
    border-radius: 8px;
    padding: 4px 16px;
}

.header-text-description {
    color: rgba(255, 255, 255, .8);
    max-width: 600px;
}

.header-text-actions {
    grid-gap: .6rem;
}

.header-features {
    position: relative;
}


.header-features-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.header-features-feature {
    grid-gap: .6rem;
}

.header-features-feature img {
    max-width: 62px;
    margin-bottom: 1rem;
}

.header-features-feature .card-title {
    font-size: 1.4rem;
    max-width: 280px;
}

.feature {
    align-items: center;
    grid-gap: 4rem;
}

.cta .container {
    justify-content: space-between;
}

.cta-numbers {
    justify-content: flex-end;
}

.cta-number {
    font-size: 3rem;
}

.cta-number span {
    padding-top: .8rem;
    border-top: 1px solid #fff;
}

.footer {
    padding-bottom: 40px;
}

.footer-content,
.footer-copy {
    justify-content: space-between;
}

.footer-content {
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.footer-copy {
    padding-top: 32px;
}

.footer-copy * {
    color: rgba(255, 255, 255, .4);
}

.footer-nav a {
    color: rgba(255, 255, 255, .8);
}


/* COMPONENTS */

.logo {
    height: 28px;
}

.logo img {
    width: 140px;
}

.link {
    font-weight: 500;
    transition: opacity .3s ease;
}

.link:hover {
    opacity: .8
}

.btn {
    border-radius: 12px;
    border: 1px solid var(--gray);
    cursor: pointer;
    color: var(--title);
    display: inline-block;
    font-weight: 500;
    line-height: 1.2;
    height: 54px;
    letter-spacing: 0.002857em;
    padding: 15px 25px;
    text-align: center;
    transition: all .3s;
}

.btn:hover {
    border-color: rgb(31 34 38 / 20%);
    color: var(--primary);
    transform: scale(1.05);
}

.btn:not(.outline):hover {
    filter: brightness(120%);
}

.btn.btn-outline {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.btn.btn-outline:hover {
    background-color: #fff;
    color: var(--primary);
}

.btn.btn-primary {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #fff;
}

.btn.btn-secondary {
    border-color: var(--secondary);
    background-color: var(--secondary);
    color: #fff;
}

.btn.btn-lg {
    padding: 12px 24px;
}

.card {
    background-color: #fff;
    padding: 42px;
    border-radius: 24px;
    box-shadow: 0 0 25px rgb(31 34 38 / 10%), 0 5px 100px rgb(31 34 38 / 15%);
    transition: box-shadow .3s ease;
}

.card-title {
    color: var(--title);
}

.card-text {
    color: var(--text);
}

.card:hover {
    box-shadow: 0 0 45px rgb(31 34 38 / 20%), 0 20px 140px rgb(31 34 38 / 15%);
}

.card-link {
    position: absolute;
    bottom: 32px;
}

.card-link i {
    opacity: 0;
    transition: transform .6s ease, opacity .3s ease;
}

.card-link:hover i {
    opacity: 1;
    transform: translateX(4px);
}

.macro {
    min-height: 360px;
}

.feature.is-inverted .feature-text {
    order: 1;
}

.feature.is-inverted .feature-preview {
    order: 0;
}

.feature-title {
    max-width: 400px;
}

.gg-arrow-right {
    box-sizing: border-box;
    position: relative;
    display: block;
    transform: scale(var(--ggs, 1));
    width: 22px;
    height: 22px
}

.gg-arrow-right::after,
.gg-arrow-right::before {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    right: 3px
}

.gg-arrow-right::after {
    width: 8px;
    height: 8px;
    border-top: 2px solid;
    border-right: 2px solid;
    transform: rotate(45deg);
    bottom: 7px
}

.gg-arrow-right::before {
    width: 16px;
    height: 2px;
    bottom: 10px;
    background: currentColor
}

.faq-question {
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--gray);
}

.faq-question:last-child {
    border: none;
}

.panel-title {
    color: var(--title);
    font-size: 1.2rem;
    line-height: 1.5;
    width: 100%;
    position: relative;
    margin: 0;
    display: block;
    cursor: pointer;
}

.panel-title:before {
    content: '+';
    display: inline-block;
    margin-right: 8px;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--primary);
    transform: translateY(2px);
    transition: transform .3s cubic-bezier(0.23, 1, 0.320, 1);
}

.panel-content {
    height: 0;
    overflow: hidden;
    z-index: -1;
    position: relative;
    opacity: 0;
    transition: .4s ease;
}

.panel:checked~.panel-content {
    height: auto;
    margin-top: .8rem;
    opacity: 1;
}

.panel:checked~.panel-title:before {
    transform: translateY(2px) rotate(45deg);
}

.panel {
    display: none;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    grid-gap: 1rem;
}

.tabs label {
    order: 1;
    display: block;
    padding: .6rem;
    margin-right: 0.2rem;
    cursor: pointer;
    color: var(--text);
    background: var(--lightGray);
    border: 1px solid var(--gray);
    border-radius: 42px;
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
    transition: all .3s;
}

.tabs .tab {
    order: 99;
    flex-grow: 1;
    width: 100%;
    display: none;
    margin-top: 3rem;
    background: #fff;
}

.tabs input[type=radio] {
    display: none;
}

.tabs input[type=radio]:checked+label {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.tabs input[type=radio]:checked+label+.tab {
    display: block;
}

.browser-mockup {
    border: 1px solid var(--gray);
    border-top: 2em solid #f1f1f1;
    box-shadow: 0px 22.086px 72.2816px -39.1525px rgba(0, 0, 0, 0.25);
    position: relative;
    border-radius: 12px;
}

.browser-mockup:before {
    display: block;
    position: absolute;
    content: '';
    top: -1.25em;
    left: 1em;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background-color: var(--gray);
    box-shadow: 0 0 0 2px var(--gray), 1.2rem 0 0 2px var(--gray), 2.4rem 0 0 2px var(--gray)
}

.browser-mockup > * {
    display: block;
    width: 100%;
}

.browser-mockup img {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.article {
    transition: all .3s ease;
}

.article:hover  {
    object-fit: contain;
    transform: scale(1.04);
}

.article:hover h1 {
    color: var(--primary)
}


/* HELPERS */

.p-relative {
    position: relative;
}

.rounded {
    border-radius: 12px;
}

.no-border {
    border: none;
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-title {
    background-color: var(--title);
}

.bg-light {
    background-color: var(--lightGray);
}

.c-primary {
    color: var(--primary);
}

.c-white {
    color: white !important;
}

.c-text {
    color: var(--text)
}

.c-title {
    color: var(--title);
}

.d-grid {
    display: grid;
}

.d-block {
    display: block;
}

.d-inlineBlock {
    display: inline-block;
}

.d-flex {
    display: flex;
}

.ai-center {
    align-items: center;
}

.jc-spaceBetween {
    justify-content: space-between;
}

.jc-center {
    justify-content: center;
}

.fd-column {
    flex-direction: column;
}

.mr-small {
    margin-right: .6rem;
}

.mr-medium {
    margin-right: 1rem;
}

.mr-large {
    margin-right: 1.4rem;
}

.mt-small {
    margin-top: .6rem;
}

.mt-medium {
    margin-top: 1rem;
}

.mb-small {
    margin-bottom: .6rem;
}

.mb-medium {
    margin-bottom: 1rem;
}

.mb-large {
    margin-bottom: 1.4rem;
}

.mb-xlarge {
    margin-bottom: 3rem;
}

.my-small {
    margin-top: .6rem;
    margin-bottom: .6rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.gg-small {
    grid-gap: .6rem;
}

.gg-medium {
    grid-gap: 1rem;
}

.gg-large {
    grid-gap: 2rem;
}

.m-0 {
    margin: 0;
}

.ff-mono {
    font-family: 'Fira Code', monospace;
}

.fw-regular {
    font-weight: 400;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.hide-sm {
    display: block;
}

.fs-small {
    font-size: .9rem;
}

.fs-xsmall {
    font-size: .695rem;
}

.ta-center {
    text-align: center;
}

.mw-500 {
    max-width: 500px;
}

.mw-800 {
    max-width: 800px;
}


/* MEDIA QUERIES */

@media (max-width: 1080px) {
    html {
        font-size: 16px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .header {
        height: auto;
    }

    .header-text {
        margin: 6rem 0;
    }

    .header-text-title {
        font-size: 2.3rem;
    }

    .header-text-title span {
        border-radius: 4px;
        padding: 2px 8px;
    }

    .brands .reviews {
        flex-direction: column;
        grid-gap: .6rem;
    }

    .header-features-feature .card-title {
        font-size: 1.2rem;
    }

    .feature {
        grid-gap: 2rem;
    }

    .feature .feature-text,
    .feature.is-inverted .feature-text {
        order: 1;
    }

    .feature .feature-preview,
    .feature.is-inverted .feature-preview {
        order: 0;
    }

    .feature-actions {
        flex-direction: column;
    }

    .cta-numbers {
        justify-content: flex-start;
    }

    .footer-content,
    .footer-links,
    .footer-copy,
    .footer-copy-links {
        flex-direction: column;
        grid-gap: 1rem;
    }

    .footer-content,
    .footer-links,
    .footer-nav ul {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-nav ul {
        flex-wrap: wrap;
        grid-gap: 8px;
    }

    .footer-copy p,
    .footer-copy-links {
        text-align: center;
    }

    .card {
        padding: 26px;
    }

    .macro {
        min-height: 320px;
    }

    .article img {
        width: 100%;
    }

    .col-3,
    .col-2 {
        grid-template-columns: 1fr;
    }

    .tabs {
        justify-content: flex-start;
    }

    .tabs .tab,
    .tabs label {
        order: initial;
    }

    .tabs .tab {
        margin-top: 1.4rem;
        margin-bottom: 1.4rem;
    }

    .tabs label {
        width: 100%;
        margin-right: 0;
        margin-top: 0.2rem;
        text-align: left;
        padding-left: 1.4rem;
    }

    .hide-sm {
        display: none;
    }

    .mw-500,
    .mw-800 {
        max-width: 100%;
    }
}