/* Shared by the no, en and de sites: keep the three copies identical. */

:root {
  --navy: #210071;
  --blue: #4d6ae9;
  --blue-hover: #425bc9;
  --text: #4c4e6b;
  --muted: #7a7c90;
  --ghost-white: #f5f5fb;
  --lavender: #e5e7f4;
  --sandy-brown: #ffaa6e;
  --white: #fff;

  /* Flow Design System */
  --brand-blue-200: #edf0fd;
  --brand-blue-300: #c0ccff;
  --brand-blue-600: #2342cc;
  --yellow-200: #fff3eb;
  --ext-orange-550: #834101;

  --font-heading: stratos, sans-serif;
  --font-body: stratos-lights, sans-serif;

  --header-height: 80px;
  --card-shadow: 1px 1px 200px rgb(55 84 170 / 15%);
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: #333;
}

h1,
h2,
h3,
p,
ul,
ol,
blockquote,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
}

[id] {
  scroll-margin-top: var(--header-height);
}

.container {
  max-width: 940px;
  margin-inline: auto;

  @media (max-width: 991px) {
    max-width: 728px;
  }

  @media (max-width: 767px) {
    max-width: none;
    padding-inline: 20px;
  }
}

/* Shared typography */

.eyebrow {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 28px;
  letter-spacing: 0.2px;
  color: var(--blue);

  @media (max-width: 767px) {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 26px;
  }
}

.eyebrow--light {
  color: var(--lavender);
}

.title {
  text-wrap: balance;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
}

.title--xl {
  max-width: 470px;
  margin-bottom: 20px;
  font-size: 50px;
  line-height: 60px;

  @media (max-width: 991px) {
    max-width: none;
    margin-bottom: 28px;
    font-size: 36px;
    line-height: 48px;
  }

  @media (max-width: 767px) {
    font-size: 30px;
    line-height: 40px;
  }

  @media (max-width: 479px) {
    margin-bottom: 24px;
    font-size: 32px;
    line-height: 35px;
  }
}

.title--lg {
  margin-bottom: 18px;
  font-size: 36px;
  line-height: 48px;

  @media (max-width: 767px) {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 30px;
  }
}

.title--md {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0.4px;

  @media (max-width: 767px) {
    margin-bottom: 5px;
    font-size: 20px;
    line-height: 30px;
  }
}

.title--sm {
  margin-block: 20px 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
}

.text {
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 28px;
  color: var(--text);

  @media (max-width: 767px) {
    font-size: 16px;
    line-height: 26px;
  }
}

.lead {
  margin-bottom: 20px;
  font-size: 19px;
  line-height: 29px;
  color: var(--text);

  @media (max-width: 991px) {
    margin-bottom: 45px;
  }

  @media (max-width: 479px) {
    margin-bottom: 20px;
    font-size: 18px;
  }
}

.button {
  display: inline-block;
  height: 48px;
  padding: 13px 26px 9px;
  border-radius: 25px;
  background-color: var(--blue);
  font-size: 16px;
  color: var(--white);
  text-decoration: none;

  &:hover {
    background-color: var(--blue-hover);
  }

  @media (max-width: 479px) {
    display: block;
    height: 50px;
    padding: 14px 18px 18px;
    text-align: center;
  }
}

.section {
  padding-block: 100px;

  @media (max-width: 991px) {
    padding-block: 80px;
  }

  @media (max-width: 767px) {
    padding-block: 60px;
  }
}

.section--tinted {
  background-color: var(--ghost-white);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  border: 1px solid var(--ghost-white);
  background-color: var(--white);
}

.site-header__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
}

.site-header__logo {
  position: relative;
  z-index: 101;
  width: 140px;
  margin-top: 29px;

  @media (max-width: 991px) {
    margin-top: 27px;
  }

  @media (max-width: 767px) {
    margin-top: 28px;
  }
}

.site-header__menu-button {
  display: none;
  padding: 18px;
  color: var(--navy);

  @media (max-width: 991px) {
    display: block;
  }

  @media (max-width: 767px) {
    margin-top: 10px;
    padding: 10px;
  }

  @media (max-width: 479px) {
    margin-top: 18px;
    padding: 5px;
  }
}

.site-header__menu-icon {
  display: block;
  width: 40px;
  height: 40px;

  @media (max-width: 479px) {
    width: 30px;
    height: 30px;
  }
}

.site-header__menu-button--close {
  border-radius: 70px;
  background-color: var(--lavender);
}

.site-header__menu {
  display: flex;
  align-items: flex-start;

  @media (max-width: 991px) {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    display: none;
    padding: var(--header-height) 0 40px;
    background-color: var(--white);
    box-shadow: 0 20px 30px rgb(0 0 0 / 17%);

    &:target {
      display: block;
    }
  }

  @media (max-width: 479px) {
    padding-bottom: 30px;
  }
}

.site-header__menu-top {
  display: none;

  @media (max-width: 991px) {
    position: absolute;
    top: 0;
    right: 20px;
    display: block;
    height: var(--header-height);
  }
}

.site-header__links {
  display: flex;

  @media (max-width: 991px) {
    display: block;
  }
}

.site-header__link {
  display: inline-block;
  margin-top: 14px;
  padding: 15px 30px 15px 0;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;

  &:hover,
  &:focus {
    color: var(--blue);
  }

  &[aria-current='page'] {
    color: var(--blue);
  }

  @media (max-width: 991px) {
    display: block;
    margin-top: 20px;
    padding-left: 20px;
    font-size: 20px;
    color: var(--navy);
  }

  @media (max-width: 767px) {
    margin-left: 20px;
  }

  @media (max-width: 479px) {
    margin-top: 10px;
    padding-block: 10px;
  }
}

/* Language picker */

.language-picker {
  position: relative;
  margin-top: 20px;
  font-weight: bold;

  @media (max-width: 991px) {
    margin-left: 25px;
  }
}

.language-picker__current,
.language-picker__link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 81px;
  padding: 10px 15px;
  color: #000;
  text-decoration: none;
  transition: background-color 0.1s;

  &:hover {
    background-color: var(--blue);
    color: var(--white);
  }
}

.language-picker__current {
  border-radius: 4px 4px 0 0;
}

.language-picker__list {
  background-color: var(--white);

  li:last-child .language-picker__link {
    border-radius: 0 0 4px 4px;
  }

  @media (min-width: 992px) {
    position: absolute;
    top: 100%;
  }
}

@media (min-width: 992px) {
  .language-picker:not(:hover, :focus-within) .language-picker__list {
    clip-path: inset(50%);
  }
}

.language-picker__flag {
  width: 20px;
  height: 16px;
  object-fit: cover;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: var(--header-height);
  background-color: var(--ghost-white);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  margin-top: 80px;

  @media (max-width: 991px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    text-align: center;
  }

  @media (max-width: 479px) {
    margin-top: 40px;
  }
}

.hero__content {
  margin-top: 40px;

  @media (max-width: 991px) {
    margin-top: 80px;
    margin-bottom: 20px;
  }

  @media (max-width: 767px) {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 60px 0 31px;
  }

  @media (max-width: 479px) {
    margin-top: 0;
    margin-bottom: 37px;
  }
}

.hero__image {
  display: block;
  width: 600px;
  max-width: none;
  height: 600px;
  margin-top: -80px;
  justify-self: end;
  translate: 124px;

  @media (max-width: 991px) {
    justify-self: center;
    width: 514px;
    height: auto;
    margin-top: 2px;
    translate: 27px;
  }

  @media (max-width: 767px) {
    width: 600px;
    translate: none;
  }

  @media (max-width: 479px) {
    width: 100%;
  }
}

/* Steps */

.steps {
  margin-bottom: 200px;

  @media (max-width: 767px) {
    margin-bottom: 60px;
  }

  @media (max-width: 479px) {
    margin-bottom: 50px;
  }
}

.steps__heading {
  margin-bottom: 10px;
  text-align: center;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-block: 28px 28px;
  padding-inline: 20px;
  font-size: 16px;
  font-weight: 400;
  color: var(--blue);
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;

  &:nth-child(odd of .split) {
    margin-bottom: 20px;

    @media (max-width: 991px) {
      margin-bottom: 10px;
    }

    @media (max-width: 479px) {
      margin-bottom: 0;
    }
  }

  &:nth-child(even of .split) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);

    .split__image {
      order: 1;
    }
  }

  @media (max-width: 767px) {
    &,
    &:nth-child(even of .split) {
      grid-template-columns: 1fr;
    }

    &:nth-child(even of .split) .split__image {
      order: 0;
    }
  }
}

.split__image {
  justify-self: center;

  @media (max-width: 991px) {
    padding-inline: 10px;
  }

  @media (max-width: 767px) {
    margin-bottom: 10px;
    padding-inline: 0;
  }
}

.split__content {
  box-sizing: content-box;
  max-width: 370px;
  padding-left: 80px;

  .split:nth-child(even of .split) & {
    padding-left: 100px;
  }

  @media (max-width: 991px) {
    max-width: none;
    padding-inline: 40px;

    .split:nth-child(even of .split) & {
      padding-left: 80px;
      padding-right: 20px;
    }
  }

  @media (max-width: 767px) {
    max-width: 420px;
    margin-inline: auto;
    padding: 10px 20px 60px;
    text-align: center;

    .split:nth-child(even of .split) & {
      padding-inline: 20px;
    }

    .text {
      text-align: left;
    }
  }

  @media (max-width: 479px) {
    &,
    .split:nth-child(even of .split) & {
      padding: 20px 0 60px;
    }

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

/* Carousel */

.carousel {
  position: relative;
  height: 768px;
  background-color: var(--ghost-white);

  @media (max-width: 991px) {
    height: 610px;
  }

  @media (max-width: 479px) {
    height: 640px;
  }
}

.carousel__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-margin-top: 0;
}

.carousel__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  height: 100%;

  @media (max-width: 991px) {
    padding-right: 40px;
  }

  @media (max-width: 767px) {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    padding-inline: 20px;
    text-align: center;
  }

  @media (max-width: 479px) {
    justify-content: flex-start;
    padding-inline: 0;
  }
}

.carousel__inner--wide-text {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.carousel__content {
  @media (max-width: 767px) {
    margin-bottom: 80px;
    padding-inline: 20px;
  }

  @media (max-width: 479px) {
    padding-bottom: 30px;
  }

  .text {
    @media (max-width: 479px) {
      margin-bottom: 0;
    }
  }
}

.carousel__media {
  display: flex;
  align-items: center;
  translate: 40px;

  @media (max-width: 767px) {
    justify-content: center;
    height: 320px;
    translate: none;
  }

  @media (max-width: 479px) {
    align-items: flex-start;
    height: 360px;
  }
}

.carousel__image {
  max-width: 200%;
  height: auto;

  @media (max-width: 767px) {
    max-width: 430px;
  }

  @media (max-width: 479px) {
    max-width: 90vw;
    padding-top: 62px;
  }
}

.carousel__image--phone {
  max-width: 170%;
  margin-left: 80px;
  translate: -190px;

  @media (max-width: 991px) {
    max-width: 180%;
    translate: -140px;
  }

  @media (max-width: 767px) {
    max-width: 420px;
    margin-left: 0;
    translate: none;
  }

  @media (max-width: 479px) {
    max-width: 370px;
    padding-top: 0;
  }
}

.carousel__image--form {
  max-width: 250%;
  margin-left: -110px;

  @media (max-width: 991px) {
    max-width: 240%;
    margin-left: -100px;
  }

  @media (max-width: 767px) {
    max-width: 100%;
    margin-left: 0;
  }

  @media (max-width: 479px) {
    max-width: 170vw;
    margin-left: 200px;
    padding-top: 30px;
  }
}

.carousel__devices {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;

  @media (max-width: 991px) {
    gap: 12px;
  }

  @media (max-width: 767px) {
    justify-content: center;
  }

  @media (max-width: 479px) {
    margin-block: 10px;
  }
}

.carousel__arrow {
  position: absolute;
  inset-block: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;

  @media (max-width: 991px) {
    align-items: flex-end;
    padding: 0 0 20px 20px;
  }
}

.carousel__arrow--prev {
  left: 0;
}

.carousel__arrow--next {
  right: 0;
  scale: -1 1;

  @media (max-width: 991px) {
    padding: 0 20px 20px 0;
  }
}

.carousel__dots {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding-top: 10px;

  @media (max-width: 991px) {
    margin-bottom: 4px;
  }

  @media (max-width: 479px) {
    margin-bottom: 22px;
  }
}

.carousel__dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #abb7f0;
}

.carousel:not(:has(.carousel__slide:target)) li:first-child .carousel__dot,
.carousel:has(#slide1:target) li:nth-child(1) .carousel__dot,
.carousel:has(#slide2:target) li:nth-child(2) .carousel__dot,
.carousel:has(#slide3:target) li:nth-child(3) .carousel__dot,
.carousel:has(#slide4:target) li:nth-child(4) .carousel__dot,
.carousel:has(#slide5:target) li:nth-child(5) .carousel__dot,
.carousel:has(#slide6:target) li:nth-child(6) .carousel__dot,
.carousel:has(#slide7:target) li:nth-child(7) .carousel__dot,
.carousel:has(#slide8:target) li:nth-child(8) .carousel__dot {
  background-color: var(--blue);
}

/* Testimonials */

.testimonials {
  padding-block: 100px;
  text-align: center;

  @media (max-width: 991px) {
    padding-block: 80px;
  }

  @media (max-width: 767px) {
    padding-block: 60px;
  }
}

.testimonials__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-block: 60px 70px;

  @media (max-width: 991px) {
    margin-bottom: 80px;
  }

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-block: 50px 60px;
  }
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 20px;
  font-size: 14px;
  color: var(--muted);

  @media (max-width: 991px) {
    padding-inline: 30px;
  }

  @media (max-width: 767px) {
    padding-inline: 20px;
  }

  @media (max-width: 479px) {
    padding-inline: 10px;
  }
}

.testimonial__photo {
  margin-bottom: 23px;

  @media (max-width: 479px) {
    margin-bottom: 17px;
  }
}

.testimonial__quote {
  margin-bottom: 20px;
  line-height: 26px;

  @media (max-width: 479px) {
    margin-bottom: 35px;
  }
}

.testimonial__name {
  margin-bottom: 3px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-style: normal;
  color: var(--blue);

  .testimonial:nth-child(even) & {
    color: #ff964d;
  }
}

.testimonial__role {
  margin-bottom: 3px;
  color: rgb(122 124 144 / 70%);
}

/* Customer logos */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  place-items: center;
  gap: 16px;

  @media (max-width: 767px) {
    grid-template-columns: repeat(2, 1fr);

    img {
      max-width: 150px;
    }
  }

  @media (max-width: 479px) {
    img {
      max-width: 100%;
      margin-block: 10px;
    }
  }
}

/* Card */

.card {
  position: relative;
  border-radius: 14px;
  background-color: var(--white);

  /* Shadow on a layer behind the whole list, so it never paints over a neighbouring card */
  &::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    box-shadow: var(--card-shadow);
    pointer-events: none;
  }
}

.card-list {
  isolation: isolate;
}

/* Research */

.research {
  background: var(--ghost-white) url('../images/fyr.png') no-repeat 100% 100%;
}

.research__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }
}

.research-card {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 32px 40px;

  @media (max-width: 991px) {
    padding-inline: 20px;
  }

  @media (max-width: 767px) {
    padding: 30px;
  }
}

.research-card__type {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 22px;
  color: var(--sandy-brown);
}

.research-card__quote {
  margin-bottom: 17px;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: var(--navy);

  @media (max-width: 991px) {
    margin-bottom: 12px;
  }
}

.research-card__source {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

.research-card__link {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-top: auto;
  font-size: 17px;
  line-height: 26px;
  color: var(--blue);
  text-decoration: none;

  &:hover {
    color: var(--blue-hover);
  }

  @media (min-width: 480px) and (max-width: 767px) {
    margin-top: 20px;
  }
}

/* Security */

.security {
  background-color: var(--navy);
  color: rgb(255 255 255 / 90%);
}

.security__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.security__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  color: var(--white);

  @media (max-width: 479px) {
    margin-bottom: 10px;
  }
}

.security__text {
  font-size: 17px;
  line-height: 28px;

  strong {
    font-family: var(--font-heading);
    font-weight: 400;
  }

  p + p {
    margin-top: 28px;
  }

  a {
    color: var(--ghost-white);
  }

  @media (max-width: 479px) {
    font-size: 16px;
    line-height: 26px;
  }
}

/* Features */

.features__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 10px;

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 59px;
    padding-top: 30px;
  }
}

.feature-list {
  padding-left: 28px;

  li {
    position: relative;
    margin-block: 20px;
  }

  li::before {
    content: '';
    position: absolute;
    top: 2px;
    left: -28px;
    width: 20px;
    height: 20px;
    background-image: url('../images/checkmark.svg');
  }
}

/* Contact */

.contact {
  max-width: 680px;

  @media (max-width: 767px) {
    max-width: none;
  }

  .text {
    margin-block: 16px 0;
    padding-bottom: 10px;
    font-size: 14px;
  }
}

/* Footer */

.site-footer {
  padding-block: 100px 60px;
  background-color: var(--navy);
  font-size: 16px;
  line-height: 30px;
  color: var(--ghost-white);

  @media (max-width: 991px) {
    padding-block: 80px;
  }

  @media (max-width: 767px) {
    padding-block: 60px;
    text-align: center;
  }
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
  }
}

.site-footer__logo {
  width: 150px;
  margin-bottom: 50px;

  @media (max-width: 767px) {
    width: 20%;
  }

  @media (max-width: 479px) {
    width: 40%;
  }
}

.site-footer__address {
  margin-bottom: 30px;
  font-style: normal;
}

.site-footer__partners {
  display: grid;
  grid-template: 80px 80px / 1fr 1fr;
  place-content: space-between space-around;
  place-items: end start;
  gap: 16px;
  height: 260px;

  @media (max-width: 479px) {
    place-content: center space-between;
    place-items: center;
    height: 180px;
  }
}

.site-footer__partners li {
  width: 100%;
}

.site-footer__partner {
  display: block;

  img {
    display: block;

    @media (max-width: 767px) {
      margin-inline: auto;
    }
  }
}

.site-footer__partner-logo--aleap {
  max-width: 50%;
}

.site-footer__partner-logo--innovasjon-norge {
  max-width: 60%;

  @media (max-width: 767px) {
    max-width: 50%;
  }
}

.site-footer__partner-logo--dam {
  max-width: 40%;

  @media (max-width: 767px) {
    max-width: 30%;
  }
}

.site-footer__partner-logo--g-ba {
  max-width: 80%;

  @media (max-width: 767px) {
    max-width: 60%;
  }
}
