/* Page typography */

:root {
  --mb: 2em;
}

@media (min-width: 768px) {
  :root {
    --h1: 2.75rem;
  }
}

main h1, main .h1 {
  margin-bottom: 1.5em;
}

main h2, main .h2 {
  font-size: var(--h1);
}

main h2:not([class^='mb']):not([class*=' mb']), main .h2:not([class^='mb']):not([class*=' mb']) {
  margin-bottom: 1em;
}


main h3 {
  margin-top: 2em;
  margin-bottom: .625em;
}

main h3, main .h3 {
  font-size: 1.5em;
}

.cta h3, .cta .h3 {
  font-size: 1.25em;
}

main {
  font-size: 19px;
  line-height: 1.325;
}

@media (min-width: 768px) {
  main {
    font-size: 21px;
  }
}

@media (min-width: 1200px) {
  main {
    font-size: 22px;
  }
}

@media (min-width: 1560px) {
  main {
    font-size: 24px;
    line-height: 1.35;
  }
}

main p, main ul, main ol {
  margin-bottom: var(--mb);
}

main ul, main ol {
  --lmb: .625em;
}

main p+ul, main p+ol {
  margin-top: calc(-1 * var(--mb) + var(--lmb));
}

main ul li:not(:last-child), main ol li:not(:last-child) {
  margin-bottom: var(--lmb);
}

main ul, main ol {
  padding-left: 1.25em;
  line-height: 1.2em;
}

main ul li, main ol li {
  padding-left: .25em;
}

main small {
  font-size: clamp(15px, .625em, 19px);
}


/* Page layout */

.container {
  width: min(46rem - 4rem, 100% - 3rem);
  margin-inline: auto;
}

.cta:not([class*=' mt']) {
  margin-top: calc(var(--mb) * 2);
}

.cta:not([class*=' mb']) {
  margin-bottom: calc(var(--mb) * 3);
}




/* Common page styles */

.face picture:first-child img {
  position: relative;
}

.face picture:nth-child(2) img, .face picture:nth-child(3) img {
  position: absolute;
  top: -1px;
  left: 0;
}

.face picture:nth-child(3) {
  top: -2px;
}


/* Butterflies */

.butterflies {
  --width: clamp(3rem, 16vw, 5rem);
  height: calc(var(--width) * 2.5);
  width: min(var(--md-container) - 4rem, 100% - 3rem);
  margin-top: clamp(4rem, 15vh, 6rem);
  margin-inline: auto;
  position: relative;
}

.butterflies>div {
  width: var(--width);
  position: absolute;
}

.js .butterflies>div {
  opacity: .001;
}

.butterflies>div>span {
  display: block;
  position: relative;
}

.butterflies>div>span {
  cursor: pointer;
}

.butterflies>div>span:active {
  opacity: .85;
  margin-top: 2px;
}

.butterflies picture img {
  vertical-align: top;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.butterflies .face {
  width: calc(var(--width) * .75);
  display: block;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.butterflies .wing {
  display: block;
  position: absolute;
  top: -25%;
  width: 100%;
}

.butterflies .face+.wing {
  right: 70%;
}

.butterflies .wing+.wing {
  left: 70%;
}

.butterflies .wing+.wing img {
  transform: scaleX(-1);
}

.butterflies .joep {
  top: calc(var(--width) * .8);
  left: 0;
}

.butterflies .joep>span {
  transform: rotate(-4deg);
}

.butterflies .tim {
  top: 0;
  left: calc(50% - var(--width) / 2);
}

.butterflies .tim>span {
  transform: rotate(8deg);
}

.butterflies .tim .wing {
  top: -32%;
}

.butterflies .gijs {
  top: var(--width);
  right: 0;
}

.butterflies .gijs>span {
  transform: rotate(28deg);
}



/* Bumpercar */

.bumper {
  width: clamp(14rem, 58%, 18rem);
  display: block;
  margin-inline: auto;
  position: relative;
}

.bumper, .bumper .car {
  transform-origin: bottom left;
}

.bumper:before, .bumper:after {
  content: '';
  display: block;
  background: var(--green);
  height: 2px;
  position: absolute;
  left: -50%;
  right: 30%;
  bottom: 20%;
}

.bumper:after {
  z-index: 6;
  bottom: 13%;
  left: -40%;
}

.bumper picture:first-child img {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.bumper img.mask {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
}

.bumper .face {
  position: absolute;
  display: block;
}

.bumper .face span {
  display: block;
}

.bumper .bumper-joep {
  width: 26%;
  bottom: 18%;
  left: 11%;
  z-index: 4;
}

.bumper .bumper-joep>span {
  transform: rotate(-4deg);
}

.bumper .bumper-tim {
  width: 19%;
  bottom: 22%;
  left: 38%;
  z-index: 2;
}

.bumper .bumper-tim>span {
  transform: rotate(24deg);
}



/* Love */

.love {
  width: clamp(15rem, 58%, 22rem);
  display: block;
  margin-inline: auto;
  position: relative;
}

@media (hover:hover) {
  .js .love {
    cursor: pointer;
    transition: transform 150ms;
  }

  .js .love:hover {
    transform: scale(1.02);
  }
}

.js .love:active {
  transition: none;
  transform: translateY(2px);
  opacity: .85;
}


.love .gijs, .love .joep {
  display: block;
  width: 50%;
  position: relative;
  padding-bottom: 10%;
}

.love .face {
  display: block;
  position: relative;
  width: 65%;
  bottom: 0;
}

.love .hand {
  position: absolute;
  width: 55%;
  bottom: 0;
}

.love .gijs {
  left: 0%;
}

.love .gijs .face {
  transform: rotate(13deg);
  transform-origin: left bottom;
}

.love .gijs .hand {
  right: -3%;
}

.love .joep {
  position: absolute;
  top: 0;
  right: 0%;
}

.love .joep .face {
  margin-left: auto;
  transform: rotate(-12deg);
  transform-origin: right bottom;
}

.love .joep .hand {
  left: -3%;
}

.love svg {
  position: absolute;
  width: 25%;
  left: 37.5%;
  bottom: 10%;
  transform: scale(0);
}


/* Form head */

.audit {
  --head: clamp(5.5rem, 16vw, 8rem);
  position: relative;
  padding-top: calc(var(--head) * 1.35);
}

.audit .tim {
  display: block;
  width: var(--head);
  position: absolute;
  top: calc(var(--head) * -.25);
  left: 0;
}

@media (min-width: 768px) {
  .audit {
    padding-top: 0;
    padding-right: var(--head);
  }

  .audit .tim {
    top: 0;
    left: auto;
    right: 0;
  }
}

.js .audit .tim {
  opacity: .001;
  cursor: pointer;
}

.js .audit .tim:active {
  opacity: .85 !important;
  margin-top: 2px;
}

.audit .face picture:first-child img {
  position: relative;
}

.audit .face picture:nth-child(2) img, .audit .face picture:nth-child(3) img {
  position: absolute;
  top: -1px;
  left: 0;
}

.audit .face picture:nth-child(3) {
  top: -2px;
}

.audit .hand {
  width: 112%;
  position: absolute;
  top: 32%;
  left: -8%;
}

.audit .hand .sun, .audit .hand.switch .regular {
  opacity: .01;
}

.audit .hand .sun {
  position: absolute;
  top: 0;
  left: 0;
}

.audit .hand.switch .sun {
  opacity: 1;
}



/* Form */

.form-arrow {
  width: clamp(2em, 13vw, 3em);
  position: absolute;
  left: calc(var(--head) + 1rem);
  top: calc(var(--head) * .75);
  transform: rotate(-6deg);
}

@media (min-width: 768px) {
  .form-arrow {
    top: 0;
    left: 0;
    position: relative;
    transform: translate(-35%, -25%) rotate(-6deg);
  }
}

.form {
  position: relative;
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

ul.form li {
  padding-left: 0;
  position: relative;
}

ul.form li:not(:last-child) {
  margin-bottom: 1.5rem;
}

.form label {
  display: inline-block;
  font-size: .875em;
  margin-bottom: .375em;
  transition: 200ms ease-in-out;
}

.form li:has(input:focus) label {
  color: var(--green);
  letter-spacing: .05em;
}

.form input {
  display: block;
  width: 100%;
  max-width: 28rem;
  border: 0;
  background-color: var(--white);
  padding: .5em 0 .5em .5em;
  font-family: inherit;
  font-size: clamp(16px, 5vw, 22px);
  border-radius: .25rem;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .1), 0 0 0 1px var(--blue);
  color: var(--black);
  font-weight: var(--bold);
  transition: 200ms ease-in-out;
}

.form input:focus {
  outline: 5px solid var(--green);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
  max-width: 30rem;
}

.form input::placeholder {
  font-weight: var(--regular);
  font-size: .875em;
  opacity: 1;
  color: var(--gray);
}

.form button {
  font-family: inherit;
  font-size: 1em;
}

.hf-message.hf-message-success {
  display: none;
}
