/* 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-400: #395dfa;
  --brand-blue-600: #2342cc;
  --brand-blue-800: #210071;
  --grey-100: #f8f8f8;
  --grey-150: #eaeaeb;
  --grey-200: #f3f3f4;
  --grey-300: #dbdbde;
  --grey-400: #bcbcc2;
  --grey-500: #6e6d79;
  --grey-700: #3d3d4e;
  --grey-900: #0c0c21;
  --green-200: #e6f8f0;
  --green-500: #007a53;
  --yellow-200: #fff3eb;
  --ext-orange-550: #834101;
  --flow-shadow-100: 0 2px 3px 0 rgb(0 0 0 / 3%), 0 2px 4px 0 rgb(35 66 204 / 3%);
  --flow-shadow-200:
    0 2px 8px 0 rgb(0 0 0 / 5%), 0 2px 8px 0 rgb(35 66 204 / 5%), 0 3px 10px 0 rgb(0 0 0 / 3%);
  --flow-shadow-300:
    0 4px 8px 0 rgb(35 66 204 / 5%), 0 8px 24px 0 rgb(0 0 0 / 5%), 0 6px 16px 0 rgb(0 0 0 / 5%),
    0 2px 6px 0 rgb(0 0 0 / 14%);
  --flow-shadow-500:
    0 12px 50px 0 rgb(0 0 0 / 10%), 0 4px 8px 0 rgb(35 66 204 / 8%), 0 8px 30px 0 rgb(0 0 0 / 13%),
    0 2px 6px 0 rgb(0 0 0 / 20%);

  --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);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.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;
  }
}

.button--light {
  background-color: var(--white);
  color: var(--navy);

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

.button--dark {
  background-color: var(--navy);
}

.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);
}

/* Landing pages in the Flow Design System */

.landing {
  padding-top: var(--header-height);
  color: var(--grey-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;

  :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset) {
    margin: 0;
    padding: 0;
  }

  :where(ul, ol) {
    list-style: none;
  }

  :where(h1, h2, h3) {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--brand-blue-800);
    letter-spacing: normal;
  }

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

  :where(sup) {
    position: relative;
    top: -0.5em;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
  }

  :where(a) {
    color: var(--brand-blue-600);
  }

  :where(svg[fill='none']) {
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  :focus-visible {
    outline: 2px solid var(--brand-blue-400);
    outline-offset: 2px;
  }
}

.landing__eyebrow {
  color: var(--brand-blue-600);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.landing__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--brand-blue-600);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.2px;
  text-decoration: none;

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

.landing .landing__button {
  color: #fff;
}

.landing .landing__button--light {
  background: #fff;
  color: var(--brand-blue-600);

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

.landing-trust {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.landing-trust__top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-block: 1px solid var(--brand-blue-300);
}

.landing-trust__title {
  flex: 1 1 240px;
  color: var(--brand-blue-800);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.landing-trust__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;

  div {
    display: flex;
    flex-direction: column-reverse;
  }

  dd {
    color: var(--brand-blue-600);
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 600;
    line-height: 40px;
  }

  dt {
    font-size: 14px;
    line-height: 20px;
  }
}

.landing .landing-trust__label {
  margin-bottom: -4px;
  color: var(--grey-500);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.landing-trust__logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 24px;
  align-items: center;

  li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 4px 8px;
  }

  img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  @media screen and (max-width: 991px) {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* 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 with a phone screenshot */

.hero--phone .hero__content {
  @media (min-width: 992px) {
    margin-top: -16px;
  }

  @media (min-width: 768px) and (max-width: 991px) {
    margin-top: 66px;
  }
}

/* The negative bottom margin and the hero's overflow: hidden crop the phone at the section edge */
.hero__phone {
  display: block;
  width: 320px;
  margin: -24px auto -150px;
  /* drop-shadow follows the phone's outline; box-shadow would follow the image box */
  filter: drop-shadow(1px 1px 100px rgb(55 84 170 / 25%));

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

  @media (max-width: 767px) {
    width: 260px;
    margin: 42px auto -140px;
  }
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

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

    .button + .button {
      margin-top: 12px;
    }
  }
}

/* Split image and text rows */

.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;
    }
  }
}

/* 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;
}

/* 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;
  }
}

/* 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%;
  }
}

/* Health check and TSB pages */

.narrow-heading {
  max-width: 480px;
}

.modules__lede {
  max-width: 620px;
  margin-bottom: 0;
}

.module__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background-color: var(--brand-blue-200);
  color: var(--brand-blue-600);

  svg {
    width: 28px;
    height: 28px;
  }
}

.section--blue {
  background-color: var(--brand-blue-200);
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 50px;

  .card {
    aspect-ratio: 1;
    padding: 16px 14px;
  }

  .title--md {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 24px;
  }

  .text {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 18px;
    text-wrap: wrap;
  }

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

    .card {
      aspect-ratio: auto;
      padding: 24px;
    }

    .title--md {
      margin-bottom: 6px;
      font-size: 20px;
      line-height: 30px;
    }

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

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

.flow__step {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 22px;
  color: var(--sandy-brown);
}

.contact--wide {
  max-width: 940px;

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

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

  .title,
  .text {
    max-width: 620px;
  }
}
