body {
  --colour-white: white;
  --colour-lightgrey: #DDDDDD;
  --colour-black: black;
  --colour-orange: #faa252;
  --colour-teal: #59BFB9;
  --colour-red: #FC6E83;
  --colour-yellow: #F4D339;
  --colour-green: #29d985;
  --colour-purple: #8e7de4;

  --color-teal-light: #8CCCC8;

  --header-height: 96px;
  --header-icon-size: 64px;
  --header-gutter: 32px;
  --footer-height: 512px;
  --section-height: 768px;
  --signup-section-height: 968px;
  --wave-height: 72px;

  --header-z-index: 10;
  --modal-z-index: 15;

  --max-content-width: 1280px;

  --gutter-xtiny: 4px;
  --gutter-tiny: 8px;
  --gutter-small: 16px;
  --gutter-medium: 24px;
  --gutter-large: 36px;
  --gutter-huge: 72px;


  --font-size-heading: 32px;
  --font-size-subheading: 24px;
  --font-size-body: 18px;

  position: relative;
  overflow-x: hidden;

  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: white;
}
/* Clear styles */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: unset;
}

button {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

h2 {
  font-size: var(--font-size-heading);
}

a {
  color: var(--colour-white);

  &:hover {
    text-decoration: none;
  }
}

button {
  border: unset;
  margin: unset;
  background: unset;
}

section {
  position: relative;
  padding: var(--gutter-huge);
  gap: var(--gutter-huge);
  height: var(--section-height);
  overflow: hidden;
  /* & > * { */
    /* Ensures all children same size */
    /* flex: 1 1 0; */
  /* } */
}

section:first-of-type {
  margin-top: var(--header-height);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: var(--header-gutter);
  box-shadow: 0 -6px 10px 5px rgba(0,0,0,0.5);

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  
  z-index: var(--header-z-index);
}

footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: var(--gutter-huge);
  gap: var(--gutter-huge);
  height: var(--footer-height);
}

details {
  color: var(--colour-black);
  width: 100%;

  border: 1px solid var(--colour-teal);
  padding: var(--gutter-medium);
  border-radius: var(--gutter-small);

  margin-bottom: var(--gutter-large);

  background-color: var(--color-teal-light);
  
  & summary {
    position: relative;
    font-size: var(--font-size-subheading);
    font-weight: bold;
    list-style: none;
    
    /* Adds a margin to the content beneath the summary */
    + * {
      margin-top: var(--gutter-small);
    }

    &::-webkit-details-marker {
      display: none;
    }

    &::after {
      position: absolute;
      content: '';
      display: block;
      width: 18px;
      height: 18px;

      top: 50%;
      right: 0;

      transform: translate(-50%, -50%) rotate(-90deg);
      background-image: url(../assets/chevron.svg);
      background-position: center center;
      background-size: contain;
    }
  }

  & *:not(summary) {
    font-size: var(--font-size-body);
  }
}

.email {
  color: black;
}

details[open] {
  background-color: var(--colour-white);
  border-color: var(--colour-lightgrey);

  & summary:after {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

.title-section {}

.heading {
  font-size: var(--font-size-heading);
}

.subheading {
  font-size: var(--font-size-subheading);
}

.bg-red {
  background: var(--colour-red);
}

.bg-purple {
  background: var(--colour-purple);
}

.bg-orange {
  background: var(--colour-orange);
}

.bg-teal {
  background: var(--colour-teal);
}

.bg-green {
  background: var(--colour-green);
}

.bg-yellow {
  background: var(--colour-yellow);
}

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

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

.text-purple {
  color: var(--colour-purple);
}

.text-black {
  color: var(--colour-black);
}

.text-red {
  color: var(--colour-red);
}

.text-teal {
  color: var(--colour-teal);
}

.text-orange {
  color: var(--colour-orange);
}

.text-yellow {
  color: var(--colour-yellow);
}

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

.section-half {
  height: calc(var(--section-height) / 2);
}

.section-one-half {
  height: calc(var(--section-height) * 1.5);
}

.yarn-icon {
  width: calc(var(--header-height) * (2 / 3));
  height: calc(var(--header-height) * (2 / 3));
}

.button-rounded {
  padding: var(--gutter-medium);
  border-radius: var(--gutter-large);
  color: var(--colour-white);
  font-weight: bold;
  font-size: 16px;

  &:hover {
    text-decoration: underline;
    cursor: pointer;
  }
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: var(--gutter-medium);
}


.centered-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.start-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.centered-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.padded-flex {
  padding: var(--gutter-medium);
  gap: var(--gutter-medium);
}

.padded-flex-large {
  padding: var(--gutter-large);
  gap: var(--gutter-huge);
}
.card-small {
  padding: var(--gutter-small);
  border-radius: var(--gutter-small);
}

.card-medium {
  padding: var(--gutter-medium);
  border-radius: var(--gutter-medium);
}

.card-large {
  padding: var(--gutter-large);
  border-radius: var(--gutter-large);
}

.gap-small {
  gap: var(--gutter-small);
}

.gap-medium {
  gap: var(--gutter-medium);
}

.gap-large {
  gap: var(--gutter-huge);
}

.wave-teal {
  position: absolute;

  width: 100%;
  min-width: 700px;
  height: 50%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.wave-section {
  position: absolute;

  width: 100%;
  height: var(--wave-height);
  bottom: 0;
  left: 0;
}

.wave-section-inverse {
  position: absolute;

  width: 100%;
  height: var(--wave-height);
  top: 0;
  left: 0;
}

.wave-offset {
  &::after {
    display: block;
    content: '';
    min-height: var(--wave-height);
  }
}

.wave-offset-inverse {
  &::before {
    display: block;
    content: '';
    min-height: var(--wave-height);
  } 
}

.footer-container-left {
  text-align: left;
  font-size: var(--font-size-subheading);
  flex-basis: 70%;
}

.footer-container-right {
  text-align: right;
  font-size: var(--font-size-subheading);
  font-weight: bold;
  flex-basis: 30%;
}


.section-half-container {
  margin: 0 auto;
  max-width: 1024px;
  height: 100%;
  padding: var(--gutter-huge);
  border-radius: var(--gutter-large);

  & p {
    font-size: var(--font-size-subheading);
  }
}

.signup-section {
  height: var(--signup-section-height);

  & > h2 {
    text-align: center;
  }
}

.signup-phone {
  height: 600px;
}

.signup-form-container {
  max-width: 500px;
  min-width: 378px;

  & > h3 {
    margin-bottom: var(--gutter-large);
    text-align: center;
    max-width: 378px;
    font-weight: 400;
  }
}

.signup-form {
  padding: var(--gutter-large);
  background: white;
  border-radius: var(--gutter-medium);
}


.modal-tc-button {
  text-decoration: underline;
  cursor: pointer;

  &:hover {
    text-decoration: unset;
  }
}

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--modal-z-index);

  background-color: rgba(34, 34, 34, 0.5);
  pointer-events: none;
  opacity: 0;

  & button {
    text-decoration: underline;
    cursor: pointer;

    &:hover {
      text-decoration: unset;
    }
  }
}

.modal-container-visible {
  /* visibility: visible !important; */
  opacity: 1;
  pointer-events: auto !important;
}

.modal-content {
  position: relative
  ;
  background: var(--colour-white);
  width: 600px;
  padding: var(--gutter-large);
  border-radius: 16px;

  overflow-y: auto;
  max-height: 95vh;

  & > a,
  & > p {
    color: var(--colour-black);
    margin: var(--gutter-small);
  }

  & > a {
    display: block;
  }
}

.modal-close-button {
  position: absolute;
  top: var(--gutter-small);
  right: var(--gutter-small);
}


.circle-background {
  --bg-circle-url: url(../assets/circle-bg-index.svg);
  background-image: var(--bg-circle-url);
  background-size: cover;
  background-position: top;
}

.socials-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
}

/* Used with large image to prevent content reflow */
.pair-container {
  max-width: 512px; 
}

.circle {
  position: absolute;
  --size: 128px;
  width: 0;
  height: 0;
  padding: var(--size);
  border-radius: var(--size);
}

.policy-column {
  max-width: calc(768px + 2 * var(--gutter-large));
  margin: calc(var(--gutter-large) + var(--header-height)) auto;
  padding: var(--gutter-large);

  & ol {
    padding: unset;
  }

  & li,
  & p {
    margin: var(--gutter-medium) 0;
  }
}

.subscribe-container {
  position: relative;

  margin-bottom: 72px;

  & > img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: scaleY(-1) translateY(-70%);
  }
}

.hidden-responsive {}

.hamburger-icon {
  display: none;
}

.header-link-container {
  display: flex;
  flex-direction: row;
  gap: var(--gutter-medium);
  align-items: center;
}

.header-links {
  display: flex;
  flex-direction: row;
  gap: var(--gutter-medium);
  align-items: center;
  justify-content: center;
}

.header-link {
  cursor: pointer;
  &:hover {
    text-decoration: none;
  }
}

.header-link-active {
  pointer-events: none;
  background: var(--colour-teal);
  text-decoration: none;
  padding: var(--gutter-tiny);
  border-radius: var(--gutter-tiny);
  font-weight: bold;
}

.app-badges-header {
  & > a {
    cursor: pointer;
  }
}

@media screen and (width <=1024px) {
  body {
    --font-size-heading: 24px;
    --font-size-subheading: 18px;  
    --header-height: 64px;
  }

  .scaled-image {
    zoom: 0.5;
  }

  .scaled-image-large {
    zoom: 0.75;
  }

  section {
    height: calc(1.75 * var(--section-height));
  }

  footer {
    height: calc(2 * var(--footer-height));

    & .footer-container {
      text-align: center;
    }
  }
  
  .section-half-container {
    padding: var(--gutter-small);
  }

  .title-section {
    /* Prevents resize of top hero seciton to be 2 * section height */
    height: calc(var(--section-height) * 0.65) !important;
  }

  .centered-row {
    flex-direction: column;
  }

  .section-half {
    height: calc(var(--section-height) * (3/4));
  }

  .section-one-half {
    height: calc(var(--section-height) * 3);
  }

  .section-video {
    height: calc(var(--section-height) * (3/4));
  }
    
  .signup-section {
    height: calc(1.35 * var(--signup-section-height));

    & > div {
      gap: unset;
    }
  }

  .subscribe-container > img {
    display: none;
  }

  .hidden-responsive {
    display: none;
  }

  .hamburger-icon {
    display: block;
    width: 32px;
    height: 32px;
    cursor: pointer;
  }

  .header-links {
    --menu-width: 400px;
    display: block !important;
    position: absolute;
    height: calc(100vh - var(--header-height));
    width: var(--menu-width);
    top: var(--header-height);
    right: calc(-1.2 * var(--menu-width));

    flex-direction: column;
    justify-content: start;
    background: var(--colour-orange);
    gap: unset;

    pointer-events: none;
    transition: right 0.2s;

    box-shadow: -2px 4px 10px rgba(0,0,0,0.5);
  }

  .header-links-open {
    right: 0;
    pointer-events: unset !important;
  }

  .header-link {
    border-bottom: 1px solid var(--colour-white);
    height: var(--gutter-huge);
    width: 100%;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header-link-active {
    background: unset;
    border-bottom: 1px solid var(--colour-white);
    height: var(--gutter-huge);
    width: 100%;
    border-radius: unset;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--colour-teal);
  }

  #signup-header {
    display: none;
  }

  .app-badges-header {
    display: none;
  }
}