/* General reset */

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

button {
    border: 0;
    background-color: transparent;
    padding: 0;
}

/* Custom styles */

a {
    text-decoration: none;
}

:root {
    --common-white: #FDFDFC;
    --common-yellow: #DEC17F;
}

.header-action-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-action-buttons-org-wrapper {
    display: flex;
    gap: 8px;
    color: #252D35;
    font-weight: 500;
    font-size: 14px;
    margin-right: 32px;
}

.header-action-button-org {
    color: #252D35;
    text-decoration: underline;
    text-decoration-color: var(--common-yellow);
}

.common-link {
    font-size: 14px;
    font-weight: 500;
    padding: 20px;
    background-color: #252D35;
    font-weight: 500;
    color: var(--common-white);
    display: inline-flex;
    justify-content: center;
}

.login-button {
    font-size: 14px;
    font-weight: 500;
    padding-block: 20px;
    background-color: transparent;
    font-weight: 500;
    color: #252D35;
    display: inline-flex;
    justify-content: center;
    width: 128px;
    border: 1px solid #252D35;
}

.secondary-link {
    font-size: 14px;
    font-weight: 500;
    padding: 20px 27px;
    background-color: var(--common-yellow);
    color: #181B1E;
    display: inline-flex;
    justify-content: center;
}

body {
    font-family: "Schibsted Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    background-color: var(--common-white);
}

/* Header */

.header {
    container-type: inline-size;
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-nested {
    flex-grow: 1;
    height: 115px;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-inline: 156px;
}

.header-title {
    display: none;
    font-size: 16px;
    font-weight: 600;
}

.header-logo {
    height: 31px;
}

.header-burger {
    display: none;
}

@container (max-width: 800px) {
    .header-title {
        display: block;
    }

    .header-burger {
        display: block;
    }

    .header-buttons {
        display: none;
    }

    .header-nested {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* Main section 1 */

.main-section1 {
    container-type: inline-size;
}

.main-section1-nested {
    height: 539px;
    position: relative;
}

.main-section1-video-desktop {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.main-section1-video-mobile {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: none;
}

.main-section1-sidebar {
    position: absolute;
    color: var(--common-white);
    left: 120px;
    top: 50%;
    transform: translateY(-50%);
}

.main-section1-sidebar-1 {
    font-size: 16px;
    font-family: "Courier Prime", monospace;
    font-weight: 400;
}

.main-section1-sidebar-2 {
    font-size: 48px;
    font-weight: 600;
    line-height: 110%;
}

.main-section1-sidebar-divider {
    margin-top: 26px;
    width: 34px;
    border: 1.5px solid var(--common-yellow);
}

.main-section1-sidebar-3 {
    margin-top: 22px;
    color: var(--common-white);
    font-size: 20px;
}

.main-section1-sidebar-4 {
    margin-top: 20px;
}

.main-section1-common-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    background-color: #181B1E;
    color: #FBFBFB;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
}

.main-section1-common-banner-icon {
    width: 20px;
    height: 20px;
}

.main-section1-sidebar-5 {
    display: none;
}

.main-section1-banner {
    position: absolute;
    right: 156px;
    transform: translateY(-50%);
}

@container (max-width: 800px) {
    .main-section1-video-desktop {
        display: none;
    }
    
    .main-section1-video-mobile {
        display: block;
    }

    .main-section1-nested {
        height: 761px;
    }

    .main-section1-sidebar {
        top: 343px;
        transform: translate(-50%, 0);
        left: 50%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-right: 16px;
        padding-left: 16px;
        text-align: center;
    }

    .main-section1-sidebar-2 {
        font-size: 40px;
    }

    .main-section1-sidebar-2 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-section1-sidebar-4 {
        width: min(358px, 100%);
    }

    .main-section1-banner {
        display: none;
    }

    .main-section1-sidebar-5 {
        display: flex;
        margin-top: 36px;
    }
}

/* Main section 2 */

.main-section2 {
    container-type: inline-size;
}

.main-section2-nested {
    padding-top: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-section2-secondary-title {
    font-size: 16px;
    font-family: "Courier Prime", monospace;
    font-weight: 400;
}

.main-section2-title {
    color: #181B1E;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    padding-right: 16px;
    padding-left: 16px;
}

.main-section2-cubes {
    margin-top: 48px;
    display: grid;
    height: 372px;
    grid-template-columns: repeat(3, 372px);
    grid-template-rows: repeat(4, min-content) auto;
    row-gap: 16px;
}

.main-section2-cubes-item {
    border: 1px solid #E3E3DF;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
}

.main-section2-cubes-item-head {
    height: 48px;
    width: 100%;
    display: flex;
}

.main-section2-cubes-item-head-step {
    height: 100%;
    aspect-ratio: 1 / 1;
    background-color: #1C1C1C;
    color: #FBFBFB;
    font-family: "Courier Prime", monospace;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-section2-cubes-item-body {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    align-items: center;
    justify-items: center;
}

.main-section2-cubes-item-body-title {
    font-size: 24px;
    font-weight: 600;
    color: #181B1E;
    align-self: start;
}

.main-section2-cubes-item-body-description {
    text-wrap: balance;
    text-align: center;
    color: #565B60;
    font-weight: 400;
    font-size: 19px;
    align-self: start;
    padding-left: 32px;
    padding-right: 32px;
}

.main-section2-cubes-item-body-description-bold {
    font-weight: 600;
}

.main-section2-button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

@container (max-width: 1200px) {
    .main-section2-cubes-item-head{
        justify-content: center;
    }

    .main-section2-cubes {
        height: unset;
        grid-template-columns: 372px;
        grid-template-rows: repeat(3, 372px);
        row-gap: unset;
    }

    .main-section2-cubes-item {
        grid-row: unset;
        grid-template-rows: unset;
    }
}

@container (max-width: 600px) {
    .main-section2-button-wrapper {
        padding-right: 16px;
        padding-left: 16px;
    }

    .main-section2-button-wrapper-nested {
        width: 100%;
    }
}

/* Main section 3 */

.main-section3 {
    container-type: inline-size;
}

.main-section3-nested {
    margin-top: 72px;
    background-color: #1C1C1C;
    padding: 72px 120px;
    display: grid;
    grid-auto-flow: column;
    column-gap: 48px;
    align-items: center;
}

.main-section3-column1 {
    width: 512px;
    text-wrap: balance;
}

.main-section3-column1-small-title {
    font-family: "Courier Prime", monospace;
    color: #F7F7F2;
    font-size: 18px;
}

.main-section3-column1-title {
    padding-top: 8px;
    font-weight: 600;
    font-size: 40px;
    color: #FBFBFB;
}

.main-section3-column1-divider {
    margin-top: 16px;
    width: 34px;
    border: 1.5px solid var(--common-yellow);
}

.main-section3-column1-body {
    padding-top: 24px;
    font-size: 20px;
    color: #F7F7F2;
}

.main-section3-column2 {
    display: grid;
    grid-template-columns: repeat(2, min-content);
    border-radius: 2px;
    overflow: hidden;
    width: fit-content;
}

.main-section3-column2-item {
    width: 331px;
    height: 383px;
}

.main-section3-column2-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #E3E3DF;
}

@container (max-width: 1400px) {
    .main-section3-nested {
        grid-auto-flow: row;
        justify-items: center;
        row-gap: 48px;
        padding: 72px 16px;
    }

    .main-section3-column1 {
        width: min(100%, 512px);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-section3-column2 {
        grid-template-columns: min-content;
    }

    .main-section3-column2-item {
        width: min(100vw, 390px);
        height: unset;
        aspect-ratio: 383 / 390;
    } 
}

/* Main section 4 */

.main-section4 {
    container-type: inline-size;
}

.main-section4-nested {
    padding-top: 72px;
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.main-section4-title {
    font-size: 40px;
    font-weight: 600;
    color: #181B1E;
}

.main-section4-sub-title {
    font-size: 18px;
    max-width: 500px;
    padding-top: 16px;
    color: #181B1E;
}

.main-section4-button {
    margin-top: 40px;
}

/* Main section 5 */

.main-section5 {
    container-type: inline-size;
}

.main-section5-nested {
    display: flex;
    padding-top: 140px;
    padding-left: 140px;
    padding-right: 140px;
}

.main-section5-img {
    flex-shrink: 0;
    width: 455px;
    height: 368px;
    object-fit: cover;
}

.main-section5-body {
    background-color: #F7F7F2;
    flex-grow: 1;
    padding: 58px 48px;
}

.main-section5-body-small-title {
    font-family: "Courier Prime", monospace;
    font-size: 18px;
    color: #565B60;
}

.main-section5-body-title {
    padding-top: 8px;
    color: #181B1E;
    font-size: 40px;
    font-weight: 600;
    line-height: 40px;
}

.main-section5-body-body {
    padding-top: 16px;
    color: #565B60;
    font-size: 18px;
}

.main-section5-body-button:disabled {
    margin-top: 48px;
    color: #FBFBFB;
    background-color: #D1D1CD;
    padding: 20px 21px;
    font-size: 14px;
}

@container (max-width: 1400px) {
    .main-section5-nested {
        flex-direction: column;
        padding-left: 16px;
        padding-right: 16px;
    }

    .main-section5-img {
        width: 100%;
        height: 289px;
    }

    .main-section5-body-button:disabled {
        width: min(100%, 326px);
    }

    .main-section5-body {
        padding: 16px;
    }
}

/* Footer */

.footer {
    container-type: inline-size;
}

.footer-nested {
    margin-top: 104px;
    background-color: #1C1C1C;
    padding: 104px 104px 64px 32px;
    color: #FBFBFB;
}

.footer-sections-wrapper {
    display: flex;
    justify-content: space-between;
}

.footer-section1-logo {
    height: 30px;
}

.footer-section1-title {
    padding-top: 8px;
    font-size: 20px;
    font-weight: 700;
}

.footer-section1-sub-title {
    padding-top: 16px;
    font-size: 20px;
}

.footer-section1-logos {
    padding-top: 8px;
    display: flex;
    gap: 16px;
}

.footer-section2 {
    display: flex;
    gap: 176px;
}

.footer-section2-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 218px;
}

.footer-section2-column-title {
    font-size: 16px;
    font-weight: 700;
}

.footer-section2-column-sub-title {
    font-size: 14px;
}

.footer-section2-column-button {
    border: 1px solid #FBFBFB;
    padding: 20px;
    text-align: center;
    color: #FBFBFB;
}

.footer-bottom {
    font-size: 14px;
    padding-top: 56px;
}

.footer-bottom-underline {
    text-decoration: underline;
}

@container (max-width: 1400px) {
    .footer-nested {
        padding: 64px 16px;
    }

    .footer-sections-wrapper {
        flex-direction: column;
        gap: 32px;
    }

    .footer-section2 { 
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        padding-top: 24px;
    }
}
